-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
55 lines (50 loc) · 2.31 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>YASIC - Yet Another Space Invaders Clone</title>
<link rel="shortcut icon" type="image/png" href="assets/graphics/favicon.png">
<script src="src/lib/phaser.min.js"></script>
<script src="src/lib/cookies.min.js"></script>
<script src="src/lib/Shake.js"></script>
<script src="src/utils/Config.js"></script>
<script src="src/utils/TextButton.js"></script>
<script src="src/utils/TextSwitch.js"></script>
<script src="src/utils/Sound.js"></script>
<script src="src/utils/Menu.js"></script>
<script src="src/states/BootState.js"></script>
<script src="src/states/PreloaderState.js"></script>
<script src="src/states/BaseState.js"></script>
<script src="src/states/MainMenuState.js"></script>
<script src="src/states/SettingsState.js"></script>
<script src="src/states/CreditsState.js"></script>
<script src="src/states/GameState.js"></script>
<script src="src/states/GameOverState.js"></script>
<script src="src/entities/Projectile.js"></script>
<script src="src/entities/Gun.js"></script>
<script src="src/entities/Spacecraft.js"></script>
<script src="src/entities/Hero.js"></script>
<script src="src/entities/Enemy.js"></script>
<script src="src/entities/EnemyGroup.js"></script>
<script src="src/entities/Barrier.js"></script>
<script src="src/entities/SpecialEnemy.js"></script>
<style>
canvas { margin: 0 auto; }
</style>
</head>
<body>
<script>
(function(){
var game = new Phaser.Game(Config.MAP_WIDTH, Config.MAP_HEIGHT, Phaser.CANVAS, 'YASIC');
game.state.add('Boot', Invaders.Boot);
game.state.add('Preloader', Invaders.Preloader);
game.state.add('MainMenu', Invaders.MainMenu);
game.state.add('Settings', Invaders.Settings);
game.state.add('Credits', Invaders.Credits);
game.state.add('Game', Invaders.Game);
game.state.add('GameOver', Invaders.GameOver);
game.state.start('Boot');
})();
</script>
</body>
</html>