Skip to content

Commit 1dfa5e0

Browse files
Pure OpenFL migration
1 parent d857436 commit 1dfa5e0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+63314
-276
lines changed

Project.xml

+21-74
Original file line numberDiff line numberDiff line change
@@ -1,83 +1,30 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<project>
3-
<!-- _________________________ Application Settings _________________________ -->
3+
<!-- NMML reference: https://gist.github.com/1763850 -->
44

5-
<app title="TheDuel" file="TheDuel" main="Main" version="0.0.1" company="eCode" />
5+
<!-- metadata, make sure 'package' is at least 3 segments (ie. com.mycompany.myproject) -->
6+
<meta title="TheDuelOpenFL" package="TheDuelOpenFL" version="1.0.0" company="eCode" />
67

7-
<!--The flixel preloader is not accurate in Chrome. You can use it regularly if you embed the swf into a html file
8-
or you can set the actual size of your file manually at "FlxPreloaderBase-onUpdate-bytesTotal"-->
9-
<app preloader="CustomPreloader" if="web" />
10-
<!--<app preloader="flixel.system.FlxPreloader" />>
8+
<!-- output -->
9+
<app main="Main" file="TheDuelOpenFL" path="bin" />
1110

12-
<!--Minimum without FLX_NO_GAMEPAD: 11.8, without FLX_NO_NATIVE_CURSOR: 11.2-->
13-
<set name="SWF_VERSION" value="11.8" />
11+
<window background="#333333" fps="60" />
12+
<window width="512" height="288" unless="mobile" />
13+
<window orientation="landscape" vsync="false" antialiasing="0" if="cpp" />
1414

15-
<!-- ____________________________ Window Settings ___________________________ -->
15+
<!-- classpath, haxe libs -->
16+
<source path="src" />
17+
<haxelib name="openfl" />
18+
<haxelib name="actuate" />
19+
<haxelib name="spritesheet" />
1620

17-
<!--These window settings apply to all targets-->
18-
<window width="512" height="228" fps="60" background="#333333" hardware="true" vsync="true" />
21+
<!-- assets -->
22+
<icon path="assets/openfl.svg" />
23+
<assets path="assets/img" rename="img" />
24+
<assets path="assets/sound" rename="sound" />
25+
<assets path="assets/font" rename="font" />
1926

20-
<!--HTML5-specific-->
21-
<window if="html5" resizable="false" />
27+
<!-- optimize output
28+
<haxeflag name="-dce full" /> -->
2229

23-
<!--Desktop-specific-->
24-
<window if="desktop" orientation="landscape" fullscreen="false" resizable="true" />
25-
26-
<!--Mobile-specific-->
27-
<window if="mobile" orientation="landscape" fullscreen="true" width="0" height="0" />
28-
29-
<!-- _____________________________ Path Settings ____________________________ -->
30-
31-
<set name="BUILD_DIR" value="export" />
32-
<classpath name="source" />
33-
<assets path="assets" />
34-
35-
<!-- _______________________________ Libraries ______________________________ -->
36-
37-
<haxelib name="flixel" />
38-
39-
<!--In case you want to use the addons package-->
40-
<!--<haxelib name="flixel-addons" />-->
41-
42-
<!--In case you want to use the ui package-->
43-
<!--<haxelib name="flixel-ui"/>-->
44-
45-
<!--In case you want to use nape with flixel-->
46-
<!--<haxelib name="nape" />-->
47-
48-
<!-- ______________________________ Haxedefines _____________________________ -->
49-
50-
<!--Enable the Flixel core recording system-->
51-
<!--<haxedef name="FLX_RECORD" />-->
52-
53-
<!--Disable the right and middle mouse buttons-->
54-
<!--<haxedef name="FLX_NO_MOUSE_ADVANCED" />-->
55-
56-
<!--Disable the native cursor API on Flash-->
57-
<!--<haxedef name="FLX_NO_NATIVE_CURSOR" />-->
58-
59-
<!--Optimise inputs, be careful you will get null errors if you don't use conditionals in your game-->
60-
<haxedef name="FLX_NO_MOUSE" if="mobile" />
61-
<haxedef name="FLX_NO_KEYBOARD" if="mobile" />
62-
<haxedef name="FLX_NO_TOUCH" if="desktop" />
63-
<!--haxedef name="FLX_NO_GAMEPAD" /-->
64-
65-
<!--Disable the Flixel core sound tray-->
66-
<!--<haxedef name="FLX_NO_SOUND_TRAY" />-->
67-
68-
<!--Disable the Flixel sound management code-->
69-
<!--<haxedef name="FLX_NO_SOUND_SYSTEM" />-->
70-
71-
<!--Disable the Flixel core focus lost screen-->
72-
<!--<haxedef name="FLX_NO_FOCUS_LOST_SCREEN" />-->
73-
74-
<!--Disable the Flixel core debugger. Automatically gets set whenever you compile in release mode!-->
75-
<haxedef name="FLX_NO_DEBUG" unless="debug" />
76-
77-
<!--Enable this for Nape release builds for a serious peformance improvement-->
78-
<haxedef name="NAPE_RELEASE_BUILD" unless="debug" />
79-
80-
<!-- _________________________________ Custom _______________________________ -->
81-
82-
<!--Place custom nodes like icons here (higher priority to override the HaxeFlixel icon)-->
83-
</project>
30+
</project>

TheDuel.hxproj renamed to TheDuelOpenFL.hxproj

+18-15
Original file line numberDiff line numberDiff line change
@@ -4,40 +4,43 @@
44
<output>
55
<movie outputType="CustomBuild" />
66
<movie input="" />
7-
<movie path="Project.xml" />
8-
<movie fps="30" />
9-
<movie width="640" />
10-
<movie height="480" />
7+
<movie path="project.xml" />
8+
<movie fps="0" />
9+
<movie width="0" />
10+
<movie height="0" />
1111
<movie version="1" />
1212
<movie minorVersion="0" />
1313
<movie platform="Lime" />
14-
<movie background="ffffff" />
14+
<movie background="#FFFFFF" />
15+
<movie preferredSDK=";3.1.3;" />
1516
</output>
1617
<!-- Other classes to be compiled into your SWF -->
1718
<classpaths>
18-
<class path="C:\HaxeToolkit\haxe\lib\flixel\4,2,1" />
19-
<class path="C:\HaxeToolkit\haxe\lib\openfl\3,6,1" />
20-
<class path="C:\HaxeToolkit\haxe\lib\lime\2,9,1" />
21-
<class path="source" />
22-
<class path="C:\HaxeToolkit\haxe\lib\openfl\3,6,1\extern" />
23-
<class path="export\html5\haxe" />
19+
<class path="C:\HaxeToolkit\haxe\lib\openfl\4,9,2" />
20+
<class path="C:\HaxeToolkit\haxe\lib\lime\4,0,3" />
21+
<class path="C:\HaxeToolkit\haxe\lib\actuate\1,8,7" />
22+
<class path="C:\HaxeToolkit\haxe\lib\spritesheet\1,2,0" />
23+
<class path="src" />
24+
<class path="C:\HaxeToolkit\haxe\lib\openfl\4,9,2\externs\core\openfl" />
25+
<class path="C:\HaxeToolkit\haxe\lib\openfl\4,9,2\externs\extras" />
26+
<class path="bin\html5\release\haxe" />
2427
</classpaths>
2528
<!-- Build options -->
2629
<build>
27-
<option directives="flixel=4.2.1&#xA;openfl=3.6.1&#xA;lime=2.9.1&#xA;HXCPP_QUIET&#xA;openfl-next&#xA;tools=2.9.1&#xA;FLX_NO_DEBUG&#xA;no-compilation&#xA;openfl-html5&#xA;canvas&#xA;NAPE_RELEASE_BUILD&#xA;lime-html5&#xA;html5&#xA;web&#xA;html5&#xA;display" />
30+
<option directives="openfl=4.9.2&#xA;lime=4.0.3&#xA;actuate=1.8.7&#xA;spritesheet=1.2.0&#xA;tools=4.0.3&#xA;howlerjs&#xA;no-compilation&#xA;openfl-html5&#xA;lime-html5&#xA;html5&#xA;web&#xA;html5&#xA;display" />
2831
<option flashStrict="False" />
2932
<option noInlineOnDebug="False" />
3033
<option mainClass="ApplicationMain" />
31-
<option enabledebug="False" />
32-
<option additional="--remap flash:openfl&#xA;--macro flixel.system.macros.FlxDefines.run()&#xA;--macro allowPackage(&quot;flash&quot;)" />
34+
<option enabledebug="True" />
35+
<option additional="--macro openfl._internal.utils.ExtraParams.include()&#xA;--macro lime.Lib.extraParams()&#xA;--remap flash:openfl" />
3336
</build>
3437
<!-- haxelib libraries -->
3538
<haxelib>
3639
<!-- example: <library name="..." /> -->
3740
</haxelib>
3841
<!-- Class files to compile (other referenced classes will automatically be included) -->
3942
<compileTargets>
40-
<compile path="source\Main.hx" />
43+
<compile path="src\Main.hx" />
4144
</compileTargets>
4245
<!-- Paths to exclude from the Project Explorer tree -->
4346
<hiddenPaths>

assets/font/5px.ttf

34.6 KB
Binary file not shown.

assets/img/TextBox.png

1.31 KB
Loading

assets/img/bg.png

7.91 KB
Loading

assets/img/enemy.png

1.97 KB
Loading

assets/img/enemyface.ase

3.12 KB
Binary file not shown.

assets/img/enemyface.png

1.35 KB
Loading

assets/img/facebg.png

774 Bytes
Loading

assets/img/player.png

1.76 KB
Loading

assets/img/playerface.png

1.34 KB
Loading

assets/img/ready.png

3.48 KB
Loading

assets/img/shoot.png

3.42 KB
Loading

0 commit comments

Comments
 (0)