| 1 | console.log("Game started!"); |
| 2 | window.onload = function() |
| 3 | { |
| 4 | var game = new Game(); |
| 5 | |
| 6 | var scene = new Scene(0, 0, 1, 1, Scene.DisplayModes.relativeToParent); |
| 7 | game.loadScene(scene); |
| 8 | |
| 9 | game.images = |
| 10 | { |
| 11 | arrow: new image("images/arrow.png"), |
| 12 | grass_light: new image("images/grass_light.png"), |
| 13 | grass_dark: new image("images/grass_dark.png") |
| 14 | } |
| 15 | |
| 16 | game.startGame(); |
| 17 | |
| 18 | scene.addObject(new GrassTiler(50, 50, game.images.arrow, 0)); |
| 19 | scene.addObject(new Arrow(50, 50, game.images.arrow, 0)); |
| 20 | } |