Muddling out hollywoo-flixel basics
This commit is contained in:
17
haxelib.json
Normal file
17
haxelib.json
Normal file
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"name": "hollywoo-flixel",
|
||||
"description": "",
|
||||
"classPath": "src/",
|
||||
"dependencies": {
|
||||
"kiss": "",
|
||||
"hollywoo": ""
|
||||
},
|
||||
"url": "https://github.com/NQNStudios/kisslang",
|
||||
"contributors": [
|
||||
"NQNStudios"
|
||||
],
|
||||
"version": "0.0.0",
|
||||
"releasenote": "",
|
||||
"tags": [],
|
||||
"license": "LGPL"
|
||||
}
|
8
src/hollywoo_flixel/FlxActorSprite.hx
Normal file
8
src/hollywoo_flixel/FlxActorSprite.hx
Normal file
@@ -0,0 +1,8 @@
|
||||
package hollywoo_flixel;
|
||||
|
||||
import kiss.Prelude;
|
||||
import kiss.List;
|
||||
import flixel.FlxSprite;
|
||||
|
||||
@:build(kiss.Kiss.build())
|
||||
class FlxActorSprite extends FlxSprite {}
|
0
src/hollywoo_flixel/FlxActorSprite.kiss
Normal file
0
src/hollywoo_flixel/FlxActorSprite.kiss
Normal file
11
src/hollywoo_flixel/FlxDirector.hx
Normal file
11
src/hollywoo_flixel/FlxDirector.hx
Normal file
@@ -0,0 +1,11 @@
|
||||
package hollywoo_flixel;
|
||||
|
||||
import kiss.Prelude;
|
||||
import kiss.List;
|
||||
import hollywoo.Director;
|
||||
import hollywoo.Stage;
|
||||
|
||||
import hollywoo_flixel.FlxStageState;
|
||||
|
||||
@:build(kiss.Kiss.build())
|
||||
class FlxDirector implements Director<FlxSetState, FlxStagePosition, FlxStageFacing, FlxScreenPosition, FlxActorSprite> {}
|
7
src/hollywoo_flixel/FlxDirector.kiss
Normal file
7
src/hollywoo_flixel/FlxDirector.kiss
Normal file
@@ -0,0 +1,7 @@
|
||||
(defNew [])
|
||||
|
||||
(method :Void showSet [:FlxSetState set :Appearance appearance :Continuation cc]
|
||||
(print "Shneezy"))
|
||||
|
||||
(method :Void showCharacter [:Character<FlxStagePosition,FlxStageFacing,FlxActorSprite> character :Appearance appearance :Continuation cc]
|
||||
(print "Character shneezy"))
|
8
src/hollywoo_flixel/FlxSetState.hx
Normal file
8
src/hollywoo_flixel/FlxSetState.hx
Normal file
@@ -0,0 +1,8 @@
|
||||
package hollywoo_flixel;
|
||||
|
||||
import kiss.Prelude;
|
||||
import kiss.List;
|
||||
import flixel.FlxState;
|
||||
|
||||
@:build(kiss.Kiss.build())
|
||||
class FlxSetState extends FlxState {}
|
5
src/hollywoo_flixel/FlxSetState.kiss
Normal file
5
src/hollywoo_flixel/FlxSetState.kiss
Normal file
@@ -0,0 +1,5 @@
|
||||
(method &override :Void create []
|
||||
(super.create))
|
||||
|
||||
(method &override :Void update [:Float elapsed]
|
||||
(super.update elapsed))
|
28
src/hollywoo_flixel/FlxStageState.hx
Normal file
28
src/hollywoo_flixel/FlxStageState.hx
Normal file
@@ -0,0 +1,28 @@
|
||||
package hollywoo_flixel;
|
||||
|
||||
import flixel.FlxState;
|
||||
import hollywoo.Stage;
|
||||
|
||||
enum FlxStagePosition {
|
||||
Left;
|
||||
Right;
|
||||
}
|
||||
|
||||
enum FlxStageFacing {
|
||||
Left;
|
||||
Right;
|
||||
}
|
||||
|
||||
enum FlxScreenPosition {
|
||||
UpperLeft;
|
||||
UpperRight;
|
||||
LowerLeft;
|
||||
LowerRight;
|
||||
LowerCenter;
|
||||
UpperCenter;
|
||||
}
|
||||
|
||||
typedef FlxStage = Stage<FlxSetState, FlxStagePosition, FlxStageFacing, FlxScreenPosition, FlxActorSprite>;
|
||||
|
||||
@:build(kiss.Kiss.build())
|
||||
class FlxStageState extends FlxState {}
|
11
src/hollywoo_flixel/FlxStageState.kiss
Normal file
11
src/hollywoo_flixel/FlxStageState.kiss
Normal file
@@ -0,0 +1,11 @@
|
||||
(prop &mut :FlxDirector director)
|
||||
(prop &mut :FlxStage stage)
|
||||
|
||||
(method &override :Void create []
|
||||
(super.create)
|
||||
(set director (new FlxDirector))
|
||||
//(this.run)
|
||||
)
|
||||
|
||||
(method &override :Void update [:Float elapsed]
|
||||
(super.update elapsed))
|
Reference in New Issue
Block a user