1
1
<?xml version =" 1.0" encoding =" utf-8" ?>
2
2
<project >
3
- <!-- _________________________ Application Settings _________________________ -->
3
+ <!-- NMML reference: https://gist.github.com/1763850 -->
4
4
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" />
6
7
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" />
11
10
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" />
14
14
15
- <!-- ____________________________ Window Settings ___________________________ -->
15
+ <!-- classpath, haxe libs -->
16
+ <source path =" src" />
17
+ <haxelib name =" openfl" />
18
+ <haxelib name =" actuate" />
19
+ <haxelib name =" spritesheet" />
16
20
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" />
19
26
20
- <!-- HTML5-specific -->
21
- <window if = " html5 " resizable = " false " / >
27
+ <!-- optimize output
28
+ <haxeflag name="-dce full" /> -- >
22
29
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 >
0 commit comments