1 decade ago by Hazneliel
I was studying this function from the BioLab game:
It starts the game with different settings depending on the device. What I cannot understand is how is that function, and where it is called from.
In my application I replaced this line:
with the
but it is never called, The canvas doesnt draw anything and I dont see any erros in the console. Could someone explain to me how do this works?
Thank you
BiolabGame.start = function() { ... }
It starts the game with different settings depending on the device. What I cannot understand is how is that function, and where it is called from.
In my application I replaced this line:
ig.main('#canvas', TitleScreen, 60, 160, 208, 2 * ig.ua.pixelRatio);
with the
MyGame.start = function() { ... }
but it is never called, The canvas doesnt draw anything and I dont see any erros in the console. Could someone explain to me how do this works?
Thank you