1 decade ago by paulh
Having some problems now my code base has gotten bigger an my noob errors are starting to take roost.
I think i need some sort of event manager/controller because all my classes/entiites just flow on from each other, which is getting quite spaghetti, like.
i guess i want something like this:
2. What is and how do you do a callback in impact (not for loading)?
3. how when i call a class do i just pass back the data i want into the location that requested it (callback?)?
What/where should i searching for to find something:
event manager/event dispatcher/game engine controller?
I think i need some sort of event manager/controller because all my classes/entiites just flow on from each other, which is getting quite spaghetti, like.
i guess i want something like this:
init : function(){ this.setupgame(); // when finished do this: this.seuplevel(); //when finished do this: this.get_playerstats(); this.set_up_gameplay(); this_spawn_waves(); //when x has finished : this.calculate_results(); this.display.results(); this.create_next_level
2. What is and how do you do a callback in impact (not for loading)?
3. how when i call a class do i just pass back the data i want into the location that requested it (callback?)?
What/where should i searching for to find something:
event manager/event dispatcher/game engine controller?