simplewindow test project
This commit is contained in:
1
simplewindow-test/.gitignore
vendored
Normal file
1
simplewindow-test/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export/
|
4
simplewindow-test/.haxerc
Normal file
4
simplewindow-test/.haxerc
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"version": "4.3.1",
|
||||
"resolveLibs": "scoped"
|
||||
}
|
6
simplewindow-test/.vscode/extensions.json
vendored
Normal file
6
simplewindow-test/.vscode/extensions.json
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"recommendations": [
|
||||
"openfl.lime-vscode-extension",
|
||||
"redhat.vscode-xml"
|
||||
]
|
||||
}
|
21
simplewindow-test/.vscode/launch.json
vendored
Normal file
21
simplewindow-test/.vscode/launch.json
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"version": "0.2.0",
|
||||
"configurations": [
|
||||
{
|
||||
"name": "Build + Debug",
|
||||
"type": "lime",
|
||||
"request": "launch"
|
||||
},
|
||||
{
|
||||
"name": "Debug",
|
||||
"type": "lime",
|
||||
"request": "launch",
|
||||
"preLaunchTask": null
|
||||
},
|
||||
{
|
||||
"name": "Macro",
|
||||
"type": "haxe-eval",
|
||||
"request": "launch"
|
||||
}
|
||||
]
|
||||
}
|
13
simplewindow-test/.vscode/settings.json
vendored
Normal file
13
simplewindow-test/.vscode/settings.json
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"search.exclude": {
|
||||
"export/**/*.hx": true
|
||||
},
|
||||
"[haxe]": {
|
||||
"editor.formatOnSave": true,
|
||||
"editor.formatOnPaste": true,
|
||||
"editor.codeActionsOnSave": {
|
||||
"source.sortImports": true
|
||||
}
|
||||
},
|
||||
"haxe.enableExtendedIndentation": true
|
||||
}
|
13
simplewindow-test/.vscode/tasks.json
vendored
Normal file
13
simplewindow-test/.vscode/tasks.json
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"version": "2.0.0",
|
||||
"tasks": [
|
||||
{
|
||||
"type": "lime",
|
||||
"command": "test",
|
||||
"group": {
|
||||
"kind": "build",
|
||||
"isDefault": true
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
88
simplewindow-test/Project.xml
Normal file
88
simplewindow-test/Project.xml
Normal file
@@ -0,0 +1,88 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<project xmlns="http://lime.software/project/1.0.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://lime.software/project/1.0.2 http://lime.software/xsd/project-1.0.2.xsd">
|
||||
|
||||
<!-- _________________________ Application Settings _________________________ -->
|
||||
|
||||
<app title="FlxProject" file="FlxProject" main="Main" version="0.0.1" company="HaxeFlixel" />
|
||||
|
||||
<!--The flixel preloader is not accurate in Chrome. You can use it regularly if you embed the swf into a html file
|
||||
or you can set the actual size of your file manually at "FlxPreloaderBase-onUpdate-bytesTotal"-->
|
||||
<app preloader="flixel.system.FlxPreloader" />
|
||||
|
||||
<!--Minimum without FLX_NO_GAMEPAD: 11.8, without FLX_NO_NATIVE_CURSOR: 11.2-->
|
||||
<set name="SWF_VERSION" value="11.8" />
|
||||
|
||||
<!-- ____________________________ Window Settings ___________________________ -->
|
||||
|
||||
<!--These window settings apply to all targets-->
|
||||
<window width="640" height="480" fps="60" background="#000000" hardware="true" vsync="false" />
|
||||
|
||||
<!--HTML5-specific-->
|
||||
<window if="html5" resizable="false" />
|
||||
|
||||
<!--Desktop-specific-->
|
||||
<window if="desktop" orientation="landscape" fullscreen="false" resizable="true" />
|
||||
|
||||
<!--Mobile-specific-->
|
||||
<window if="mobile" orientation="landscape" fullscreen="true" width="0" height="0" />
|
||||
|
||||
<!-- _____________________________ Path Settings ____________________________ -->
|
||||
|
||||
<set name="BUILD_DIR" value="export" />
|
||||
<source path="source" />
|
||||
<assets path="assets" />
|
||||
|
||||
<!-- _______________________________ Libraries ______________________________ -->
|
||||
|
||||
<haxelib name="flixel" />
|
||||
|
||||
<haxelib name="kiss" />
|
||||
<haxelib name="kiss-flixel" />
|
||||
<haxelib name="kiss-tools" />
|
||||
|
||||
<!--In case you want to use the addons package-->
|
||||
<!--<haxelib name="flixel-addons" />-->
|
||||
|
||||
<!--In case you want to use the ui package-->
|
||||
<!--<haxelib name="flixel-ui" />-->
|
||||
|
||||
<!--In case you want to use nape with flixel-->
|
||||
<!--<haxelib name="nape-haxe4" />-->
|
||||
|
||||
<!-- ______________________________ Haxedefines _____________________________ -->
|
||||
|
||||
<!--Enable the Flixel core recording system-->
|
||||
<!--<haxedef name="FLX_RECORD" />-->
|
||||
|
||||
<!--Disable the right and middle mouse buttons-->
|
||||
<!--<haxedef name="FLX_NO_MOUSE_ADVANCED" />-->
|
||||
|
||||
<!--Disable the native cursor API on Flash-->
|
||||
<!--<haxedef name="FLX_NO_NATIVE_CURSOR" />-->
|
||||
|
||||
<!--Optimise inputs, be careful you will get null errors if you don't use conditionals in your game-->
|
||||
<haxedef name="FLX_NO_MOUSE" if="mobile" />
|
||||
<haxedef name="FLX_NO_KEYBOARD" if="mobile" />
|
||||
<haxedef name="FLX_NO_TOUCH" if="desktop" />
|
||||
<!--<haxedef name="FLX_NO_GAMEPAD" />-->
|
||||
|
||||
<!--Disable the Flixel core sound tray-->
|
||||
<!--<haxedef name="FLX_NO_SOUND_TRAY" />-->
|
||||
|
||||
<!--Disable the Flixel sound management code-->
|
||||
<!--<haxedef name="FLX_NO_SOUND_SYSTEM" />-->
|
||||
|
||||
<!--Disable the Flixel core focus lost screen-->
|
||||
<!--<haxedef name="FLX_NO_FOCUS_LOST_SCREEN" />-->
|
||||
|
||||
<!--Disable the Flixel core debugger. Automatically gets set whenever you compile in release mode!-->
|
||||
<haxedef name="FLX_NO_DEBUG" unless="debug" />
|
||||
|
||||
<!--Enable this for Nape release builds for a serious peformance improvement-->
|
||||
<haxedef name="NAPE_RELEASE_BUILD" unless="debug" />
|
||||
|
||||
<!-- _________________________________ Custom _______________________________ -->
|
||||
|
||||
<!--Place custom nodes like icons here (higher priority to override the HaxeFlixel icon)-->
|
||||
</project>
|
0
simplewindow-test/assets/data/data-goes-here.txt
Normal file
0
simplewindow-test/assets/data/data-goes-here.txt
Normal file
0
simplewindow-test/assets/images/images-go-here.txt
Normal file
0
simplewindow-test/assets/images/images-go-here.txt
Normal file
0
simplewindow-test/assets/music/music-goes-here.txt
Normal file
0
simplewindow-test/assets/music/music-goes-here.txt
Normal file
0
simplewindow-test/assets/sounds/sounds-go-here.txt
Normal file
0
simplewindow-test/assets/sounds/sounds-go-here.txt
Normal file
3
simplewindow-test/haxe_libraries/flixel-addons.hxml
Normal file
3
simplewindow-test/haxe_libraries/flixel-addons.hxml
Normal file
@@ -0,0 +1,3 @@
|
||||
# @install: lix --silent download "haxelib:/flixel-addons#3.1.0" into flixel-addons/3.1.0/haxelib
|
||||
-cp ${HAXE_LIBCACHE}/flixel-addons/3.1.0/haxelib/
|
||||
-D flixel-addons=3.1.0
|
3
simplewindow-test/haxe_libraries/flixel-ui.hxml
Normal file
3
simplewindow-test/haxe_libraries/flixel-ui.hxml
Normal file
@@ -0,0 +1,3 @@
|
||||
# @install: lix --silent download "haxelib:/flixel-ui#2.5.0" into flixel-ui/2.5.0/haxelib
|
||||
-cp ${HAXE_LIBCACHE}/flixel-ui/2.5.0/haxelib/
|
||||
-D flixel-ui=2.5.0
|
4
simplewindow-test/haxe_libraries/flixel.hxml
Normal file
4
simplewindow-test/haxe_libraries/flixel.hxml
Normal file
@@ -0,0 +1,4 @@
|
||||
# @install: lix --silent download "haxelib:/flixel#5.3.0" into flixel/5.3.0/haxelib
|
||||
# @run: haxelib run-dir flixel "${HAXE_LIBCACHE}/flixel/5.3.0/haxelib"
|
||||
-cp ${HAXE_LIBCACHE}/flixel/5.3.0/haxelib/
|
||||
-D flixel=5.3.0
|
5
simplewindow-test/haxe_libraries/haxe-strings.hxml
Normal file
5
simplewindow-test/haxe_libraries/haxe-strings.hxml
Normal file
@@ -0,0 +1,5 @@
|
||||
# @install: lix --silent download "haxelib:/haxe-strings#7.0.3" into haxe-strings/7.0.3/haxelib
|
||||
-cp ${HAXE_LIBCACHE}/haxe-strings/7.0.3/haxelib/src/
|
||||
-D haxe-strings=7.0.3
|
||||
--macro hx.strings.internal.Macros.addDefines()
|
||||
--macro hx.strings.internal.Macros.configureNullSafety()
|
5
simplewindow-test/haxe_libraries/hscript.hxml
Normal file
5
simplewindow-test/haxe_libraries/hscript.hxml
Normal file
@@ -0,0 +1,5 @@
|
||||
# @install: lix --silent download "haxelib:/hscript#2.5.0" into hscript/2.5.0/haxelib
|
||||
# @run: haxelib run-dir hscript "${HAXE_LIBCACHE}/hscript/2.5.0/haxelib"
|
||||
-cp ${HAXE_LIBCACHE}/hscript/2.5.0/haxelib/
|
||||
-D hscript=2.5.0
|
||||
--macro keep('IntIterator')
|
10
simplewindow-test/haxe_libraries/kiss-flixel.hxml
Normal file
10
simplewindow-test/haxe_libraries/kiss-flixel.hxml
Normal file
@@ -0,0 +1,10 @@
|
||||
-lib kiss
|
||||
-lib kiss-tools
|
||||
-lib flixel
|
||||
-lib flixel-addons
|
||||
-lib flixel-ui
|
||||
-lib lime
|
||||
-lib openfl
|
||||
-cp ${SCOPE_DIR}/..//src/
|
||||
-D kiss-flixel=0.0.0
|
||||
--macro Sys.println("haxe_libraries/kiss-flixel.hxml:9: [Warning] Using dev version of library kiss-flixel")
|
4
simplewindow-test/haxe_libraries/kiss-tools.hxml
Normal file
4
simplewindow-test/haxe_libraries/kiss-tools.hxml
Normal file
@@ -0,0 +1,4 @@
|
||||
# @install: lix --silent download "gh://github.com/kiss-lang/kiss-tools#a01cc6b76a2dfd7dcb72ee201fec1064ee050795" into kiss-tools/0.0.0/github/a01cc6b76a2dfd7dcb72ee201fec1064ee050795
|
||||
-lib kiss
|
||||
-cp ${HAXE_LIBCACHE}/kiss-tools/0.0.0/github/a01cc6b76a2dfd7dcb72ee201fec1064ee050795/src/
|
||||
-D kiss-tools=0.0.0
|
12
simplewindow-test/haxe_libraries/kiss.hxml
Normal file
12
simplewindow-test/haxe_libraries/kiss.hxml
Normal file
@@ -0,0 +1,12 @@
|
||||
# @install: lix --silent download "gh://github.com/kiss-lang/kiss#9e916a482393c4aa45dfce0e63b4c53403d66238" into kiss/0.0.1/github/9e916a482393c4aa45dfce0e63b4c53403d66238
|
||||
# @run: haxelib run-dir kiss "${HAXE_LIBCACHE}/kiss/0.0.1/github/9e916a482393c4aa45dfce0e63b4c53403d66238"
|
||||
-lib haxe-strings
|
||||
-lib hscript
|
||||
-lib tink_json
|
||||
-lib tink_macro
|
||||
-lib tink_syntaxhub
|
||||
-lib uuid
|
||||
-cp ${HAXE_LIBCACHE}/kiss/0.0.1/github/9e916a482393c4aa45dfce0e63b4c53403d66238/src
|
||||
-D kiss=0.0.1
|
||||
-w -WUnusedPattern
|
||||
--macro kiss.KissFrontend.use()
|
6
simplewindow-test/haxe_libraries/lime.hxml
Normal file
6
simplewindow-test/haxe_libraries/lime.hxml
Normal file
@@ -0,0 +1,6 @@
|
||||
# @install: lix --silent download "haxelib:/lime#8.0.1" into lime/8.0.1/haxelib
|
||||
# @run: haxelib run-dir lime "${HAXE_LIBCACHE}/lime/8.0.1/haxelib"
|
||||
-cp ${HAXE_LIBCACHE}/lime/8.0.1/haxelib/src
|
||||
-D lime=8.0.1
|
||||
--macro lime._internal.macros.DefineMacro.run()
|
||||
-lib ndll:${HAXE_LIBCACHE}/lime/8.0.1/haxelib/ndll/
|
5
simplewindow-test/haxe_libraries/openfl.hxml
Normal file
5
simplewindow-test/haxe_libraries/openfl.hxml
Normal file
@@ -0,0 +1,5 @@
|
||||
# @install: lix --silent download "haxelib:/openfl#9.2.1" into openfl/9.2.1/haxelib
|
||||
# @run: haxelib run-dir openfl "${HAXE_LIBCACHE}/openfl/9.2.1/haxelib"
|
||||
-cp ${HAXE_LIBCACHE}/openfl/9.2.1/haxelib/src
|
||||
-D openfl=9.2.1
|
||||
--macro openfl.utils._internal.ExtraParamsMacro.include()
|
3
simplewindow-test/haxe_libraries/tink_core.hxml
Normal file
3
simplewindow-test/haxe_libraries/tink_core.hxml
Normal file
@@ -0,0 +1,3 @@
|
||||
# @install: lix --silent download "haxelib:/tink_core#2.1.0" into tink_core/2.1.0/haxelib
|
||||
-cp ${HAXE_LIBCACHE}/tink_core/2.1.0/haxelib/src
|
||||
-D tink_core=2.1.0
|
4
simplewindow-test/haxe_libraries/tink_json.hxml
Normal file
4
simplewindow-test/haxe_libraries/tink_json.hxml
Normal file
@@ -0,0 +1,4 @@
|
||||
# @install: lix --silent download "haxelib:/tink_json#0.11.0" into tink_json/0.11.0/haxelib
|
||||
-lib tink_typecrawler
|
||||
-cp ${HAXE_LIBCACHE}/tink_json/0.11.0/haxelib/src
|
||||
-D tink_json=0.11.0
|
4
simplewindow-test/haxe_libraries/tink_macro.hxml
Normal file
4
simplewindow-test/haxe_libraries/tink_macro.hxml
Normal file
@@ -0,0 +1,4 @@
|
||||
# @install: lix --silent download "haxelib:/tink_macro#1.0.1" into tink_macro/1.0.1/haxelib
|
||||
-lib tink_core
|
||||
-cp ${HAXE_LIBCACHE}/tink_macro/1.0.1/haxelib/src
|
||||
-D tink_macro=1.0.1
|
3
simplewindow-test/haxe_libraries/tink_priority.hxml
Normal file
3
simplewindow-test/haxe_libraries/tink_priority.hxml
Normal file
@@ -0,0 +1,3 @@
|
||||
-D tink_priority=0.1.3
|
||||
# @install: lix --silent download "gh://github.com/haxetink/tink_priority#ea736d31dc788aae703a2aa415c25d5b80d0e7d1" into tink_priority/0.1.3/github/ea736d31dc788aae703a2aa415c25d5b80d0e7d1
|
||||
-cp ${HAXE_LIBCACHE}/tink_priority/0.1.3/github/ea736d31dc788aae703a2aa415c25d5b80d0e7d1/src
|
6
simplewindow-test/haxe_libraries/tink_syntaxhub.hxml
Normal file
6
simplewindow-test/haxe_libraries/tink_syntaxhub.hxml
Normal file
@@ -0,0 +1,6 @@
|
||||
# @install: lix --silent download "gh://github.com/haxetink/tink_syntaxhub#b6ea4966bbdee4d176ac8dd5d2d8ae3b362b2f86" into tink_syntaxhub/0.6.0/github/b6ea4966bbdee4d176ac8dd5d2d8ae3b362b2f86
|
||||
-lib tink_macro
|
||||
-lib tink_priority
|
||||
-cp ${HAXE_LIBCACHE}/tink_syntaxhub/0.6.0/github/b6ea4966bbdee4d176ac8dd5d2d8ae3b362b2f86/src
|
||||
-D tink_syntaxhub=0.6.0
|
||||
--macro tink.SyntaxHub.use()
|
4
simplewindow-test/haxe_libraries/tink_typecrawler.hxml
Normal file
4
simplewindow-test/haxe_libraries/tink_typecrawler.hxml
Normal file
@@ -0,0 +1,4 @@
|
||||
# @install: lix --silent download "haxelib:/tink_typecrawler#0.7.0" into tink_typecrawler/0.7.0/haxelib
|
||||
-lib tink_macro
|
||||
-cp ${HAXE_LIBCACHE}/tink_typecrawler/0.7.0/haxelib/src
|
||||
-D tink_typecrawler=0.7.0
|
3
simplewindow-test/haxe_libraries/uuid.hxml
Normal file
3
simplewindow-test/haxe_libraries/uuid.hxml
Normal file
@@ -0,0 +1,3 @@
|
||||
# @install: lix --silent download "haxelib:/uuid#2.4.1" into uuid/2.4.1/haxelib
|
||||
-cp ${HAXE_LIBCACHE}/uuid/2.4.1/haxelib/src
|
||||
-D uuid=2.4.1
|
15
simplewindow-test/hxformat.json
Normal file
15
simplewindow-test/hxformat.json
Normal file
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"lineEnds": {
|
||||
"leftCurly": "both",
|
||||
"rightCurly": "both",
|
||||
"objectLiteralCurly": {
|
||||
"leftCurly": "after"
|
||||
}
|
||||
},
|
||||
"sameLine": {
|
||||
"ifElse": "next",
|
||||
"doWhile": "next",
|
||||
"tryBody": "next",
|
||||
"tryCatch": "next"
|
||||
}
|
||||
}
|
4
simplewindow-test/source/AssetPaths.hx
Normal file
4
simplewindow-test/source/AssetPaths.hx
Normal file
@@ -0,0 +1,4 @@
|
||||
package;
|
||||
|
||||
@:build(flixel.system.FlxAssets.buildFileReferences("assets", true))
|
||||
class AssetPaths {}
|
13
simplewindow-test/source/Main.hx
Normal file
13
simplewindow-test/source/Main.hx
Normal file
@@ -0,0 +1,13 @@
|
||||
package;
|
||||
|
||||
import flixel.FlxGame;
|
||||
import openfl.display.Sprite;
|
||||
|
||||
class Main extends Sprite
|
||||
{
|
||||
public function new()
|
||||
{
|
||||
super();
|
||||
addChild(new FlxGame(0, 0, PlayState));
|
||||
}
|
||||
}
|
23
simplewindow-test/source/PlayState.kiss
Normal file
23
simplewindow-test/source/PlayState.kiss
Normal file
@@ -0,0 +1,23 @@
|
||||
(import flixel.FlxState)
|
||||
(import kiss_flixel.SimpleWindow)
|
||||
(extends FlxState)
|
||||
|
||||
(method &override :Void create []
|
||||
(super.create)
|
||||
(showMenu)
|
||||
)
|
||||
|
||||
(method showMenu []
|
||||
(SimpleWindow.promptForChoice "Testing SimpleWindow" ["Vertical" "Menu" "Quit"]
|
||||
->:Void choice
|
||||
(case choice
|
||||
("Vertical"
|
||||
null)
|
||||
("Menu"
|
||||
null)
|
||||
("Quit"
|
||||
(Sys.exit 0))
|
||||
(never otherwise))))
|
||||
|
||||
(method &override :Void update [:Float elapsed]
|
||||
(super.update elapsed))
|
Reference in New Issue
Block a user