habit puzzle game beta
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
<project>
|
<project>
|
||||||
<!-- _________________________ Application Settings _________________________ -->
|
<!-- _________________________ Application Settings _________________________ -->
|
||||||
|
|
||||||
<app title="FlxProject" file="FlxProject" main="Main" version="0.0.1" company="HaxeFlixel" />
|
<app title="Habit Puzzles" file="HabitPuzzles" main="Main" version="0.0.1" company="NQNStudios" />
|
||||||
|
|
||||||
<!--The flixel preloader is not accurate in Chrome. You can use it regularly if you embed the swf into a html file
|
<!--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"-->
|
or you can set the actual size of your file manually at "FlxPreloaderBase-onUpdate-bytesTotal"-->
|
||||||
@@ -40,6 +40,8 @@
|
|||||||
<haxelib name="kiss-flixel" />
|
<haxelib name="kiss-flixel" />
|
||||||
<haxelib name="datetime" />
|
<haxelib name="datetime" />
|
||||||
<haxeflag name="--macro" value="kiss.Kiss.setup()" />
|
<haxeflag name="--macro" value="kiss.Kiss.setup()" />
|
||||||
|
<assets path="habits" />
|
||||||
|
<assets path="puzzles" />
|
||||||
|
|
||||||
<!--In case you want to use the addons package-->
|
<!--In case you want to use the addons package-->
|
||||||
<!--<haxelib name="flixel-addons" />-->
|
<!--<haxelib name="flixel-addons" />-->
|
||||||
|
@@ -102,9 +102,7 @@
|
|||||||
(let [rewardSprite
|
(let [rewardSprite
|
||||||
(new FlxSprite 0 0
|
(new FlxSprite 0 0
|
||||||
(BitmapData.fromFile
|
(BitmapData.fromFile
|
||||||
(joinPath
|
currentRewardFile.path))]
|
||||||
(Path.directory m.textFile)
|
|
||||||
currentRewardFile.path)))]
|
|
||||||
(when rewardSprites
|
(when rewardSprites
|
||||||
(remove rewardSprites))
|
(remove rewardSprites))
|
||||||
(rewardSprite.setGraphicSize FlxG.width 0)
|
(rewardSprite.setGraphicSize FlxG.width 0)
|
||||||
|
@@ -11,7 +11,12 @@ class Main extends Sprite
|
|||||||
super();
|
super();
|
||||||
addChild(new FlxGame(0, 0, HabitState, 1, 60, 60, true));
|
addChild(new FlxGame(0, 0, HabitState, 1, 60, 60, true));
|
||||||
var t:HabitState = cast FlxG.state;
|
var t:HabitState = cast FlxG.state;
|
||||||
t.setModel(new HabitModel(Sys.args()[0]));
|
var habitFile = if (Sys.args().length > 0 && Sys.args()[0].length > 0) {
|
||||||
|
Sys.args()[0];
|
||||||
|
} else {
|
||||||
|
"habits/default.txt";
|
||||||
|
};
|
||||||
|
t.setModel(new HabitModel(habitFile));
|
||||||
t.model.save();
|
t.model.save();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user