Problem with step 1, tutorial 1: Code cannot run
Hi everyone,
I'm trying to follow the instructionn in step 1: http://gamequeryjs.com/documentation/first-tutorial/first-tutorial-step-1/
(I'm copying the code to be exact. I want to make it run first and then go through the code and try to understand what it's doing).
Here's my html file: http://paste.ubuntu.com/7727632/
My engine.js file: http://paste.ubuntu.com/7727627/
However, when I click on "Click here to show the demo", nothing happen. Also, when I go to http://gamequeryjs.com/demos/3/background1.png, it just shows a blank white page??? Can anyone help me?
I'm trying to follow the instructionn in step 1: http://gamequeryjs.com/documentation/first-tutorial/first-tutorial-step-1/
(I'm copying the code to be exact. I want to make it run first and then go through the code and try to understand what it's doing).
Here's my html file: http://paste.ubuntu.com/7727632/
My engine.js file: http://paste.ubuntu.com/7727627/
However, when I click on "Click here to show the demo", nothing happen. Also, when I go to http://gamequeryjs.com/demos/3/background1.png, it just shows a blank white page??? Can anyone help me?
Comments
I can see many possible explanation for what's happening here but without the full source I can't say for sure:
- Maybe the background of your game is white. If it's the case the stars may be there but not visible since they are white on a transparent background.
- If when you click the "start the game" link the link doesn't disappear after a while it could be that the engine file is not linked properly and simply doesn't get executed.
To help you find what can be the problem I would recommend using your favorite browser's developers tools.
I also have been having problems getting anything in the first tutorial to run properly. Have been deconstructing and trying to piece back together but no joy