Skip to content

Commit 9be7315

Browse files
Adding FlxGameOfLife (#342)
* Adding FlxGameOfLife * smooth line drawing --------- Co-authored-by: Cameron Taylor <cameron.taylor.ninja@gmail.com>
1 parent dffd050 commit 9be7315

3 files changed

Lines changed: 685 additions & 0 deletions

File tree

Other/FlxGameOfLife/Project.xml

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<project xmlns="http://lime.software/project/1.0.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://lime.software/project/1.0.2 http://lime.software/xsd/project-1.0.2.xsd">
4+
5+
<!-- _________________________ Application Settings _________________________ -->
6+
7+
<app title="FlxGameOfLife" file="FlxGameOfLife" main="Main" version="0.0.1" company="HaxeFlixel" />
8+
9+
<!--The flixel preloader is not accurate in Chrome. You can use it regularly if you embed the swf into a html file
10+
or you can set the actual size of your file manually at "FlxPreloaderBase-onUpdate-bytesTotal"-->
11+
<app preloader="flixel.system.FlxPreloader" />
12+
13+
<!--Minimum without FLX_NO_GAMEPAD: 11.8, without FLX_NO_NATIVE_CURSOR: 11.2-->
14+
<set name="SWF_VERSION" value="11.8" />
15+
16+
<!-- ____________________________ Window Settings ___________________________ -->
17+
18+
<!--These window settings apply to all targets-->
19+
<window width="640" height="480" fps="60" background="#000000" hardware="true" vsync="false" />
20+
21+
<!--HTML5-specific-->
22+
<window if="html5" resizable="true" />
23+
24+
<!--Desktop-specific-->
25+
<window if="desktop" orientation="landscape" fullscreen="false" resizable="true" />
26+
27+
<!--Mobile-specific-->
28+
<window if="mobile" orientation="landscape" fullscreen="true" width="0" height="0" />
29+
30+
<!-- _____________________________ Path Settings ____________________________ -->
31+
32+
<set name="BUILD_DIR" value="export" />
33+
<source path="source" />
34+
<!-- <assets path="assets" /> -->
35+
36+
<!-- _______________________________ Libraries ______________________________ -->
37+
38+
<haxelib name="flixel" />
39+
40+
<!--In case you want to use the addons package-->
41+
<!--<haxelib name="flixel-addons" />-->
42+
43+
<!--In case you want to use the ui package-->
44+
<!--<haxelib name="flixel-ui" />-->
45+
46+
<!--In case you want to use nape with flixel-->
47+
<!--<haxelib name="nape-haxe4" />-->
48+
49+
<!-- ______________________________ Haxedefines _____________________________ -->
50+
51+
<!--Enable the Flixel core recording system-->
52+
<!--<haxedef name="FLX_RECORD" />-->
53+
54+
<!--Disable the right and middle mouse buttons-->
55+
<!--<haxedef name="FLX_NO_MOUSE_ADVANCED" />-->
56+
57+
<!--Disable the native cursor API on Flash-->
58+
<!--<haxedef name="FLX_NO_NATIVE_CURSOR" />-->
59+
60+
<!--Optimise inputs, be careful you will get null errors if you don't use conditionals in your game-->
61+
<haxedef name="FLX_NO_MOUSE" if="mobile" />
62+
<haxedef name="FLX_NO_KEYBOARD" if="mobile" />
63+
<haxedef name="FLX_NO_TOUCH" if="desktop" />
64+
<!--<haxedef name="FLX_NO_GAMEPAD" />-->
65+
66+
<!--Disable the Flixel core sound tray-->
67+
<haxedef name="FLX_NO_SOUND_TRAY" />
68+
69+
<!--Disable the Flixel sound management code-->
70+
<haxedef name="FLX_NO_SOUND_SYSTEM" />
71+
72+
<!--Disable the Flixel core focus lost screen-->
73+
<haxedef name="FLX_NO_FOCUS_LOST_SCREEN" />
74+
75+
<!--Disable the Flixel core debugger. Automatically gets set whenever you compile in release mode!-->
76+
<haxedef name="FLX_NO_DEBUG" unless="debug" />
77+
78+
<!--Enable this for Nape release builds for a serious peformance improvement-->
79+
<haxedef name="NAPE_RELEASE_BUILD" unless="debug" />
80+
81+
<!-- _________________________________ Custom _______________________________ -->
82+
83+
<!--Place custom nodes like icons here (higher priority to override the HaxeFlixel icon)-->
84+
</project>

Other/FlxGameOfLife/source/Main.hx

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
package;
2+
3+
import flixel.FlxGame;
4+
import openfl.display.Sprite;
5+
6+
class Main extends Sprite
7+
{
8+
public function new()
9+
{
10+
super();
11+
addChild(new FlxGame(0, 0, PlayState));
12+
}
13+
}

0 commit comments

Comments
 (0)