ippa / jaws

Jaws - HTML5 canvas javascript 2D Game Framework
https://jawsjs.ippa.se
GNU Lesser General Public License v3.0
363 stars 75 forks source link

ADD: pass options to game state's setup() method #35

Closed janhancic closed 12 years ago

janhancic commented 12 years ago

jaws.start() and jaws.switchGameState() now accept a third parameter which is passed to game state's setup() method

ippa commented 12 years ago

I can seenhow this is usable but i dont get the variablename..it has nothing to do with game objects? I also need to test a small thning before merging.

janhancic commented 12 years ago

Maybe "game_state_setup_options" would be better, as in "options for setup() in a given game state".

ippa commented 12 years ago

indeed, could you rename it? afaik this doesn't break any old code since function foo() { .. }; foo(new_arguments); work just fine.

janhancic commented 12 years ago

Sorry for my late response, I was sick (still am) trough the weekend. I've renamed the variable now.