blackgames Posted March 18, 2014 Share Posted March 18, 2014 Hallo Community, at first - sorry for my bad english.I'm new to Phaser and I love it. Its an easy an fun framework! I have one question at this time:can I put the state-managemend process in one file? in the examples is in the html-part an include for boot.js, preloader.js etc.I have put the syntax in one file and the console says that phaser has no definition for boot.js. Or i have to make a state-managmend in the update function with switch functions? for examples with a var 0 = boot, 1 = preload .... I hope you can read this german-english :-) Thanks! Link to comment Share on other sites More sharing options...
valueerror Posted March 18, 2014 Share Posted March 18, 2014 have a look at the source of my demo game... all states in one filehttp://test.xapient.net/phaser/ALL/ Zaidar 1 Link to comment Share on other sites More sharing options...
rich Posted March 18, 2014 Share Posted March 18, 2014 Sure you can put all States in one file. It's just easier for you to manage if you split them up imho. If you do put them all in one file, be careful about the order in which you include them. Link to comment Share on other sites More sharing options...
blackgames Posted March 18, 2014 Author Share Posted March 18, 2014 Thank you valuerror, thank you rich! It works fine for me. how easy it can be, if you know what are you doing Link to comment Share on other sites More sharing options...
Recommended Posts