Impact

This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact

1 decade ago by RomainT

Hi,

I developed methods to persist the player profession on a server and I would like to pass extra data to the game init method. How can I do that ?

Thanks,

1 decade ago by OMATASE

I did that very thing with prototyping.

Once I got the ajax result from the server I did:

MyGame.prototype.play = play;

play was the JSON result from the server.
Page 1 of 1
« first « previous next › last »