This repository has been archived by the owner on Jun 12, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
/
index.html
114 lines (95 loc) · 4.39 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
<!doctype html>
<html lang="pt-pt">
<head>
<meta charset="iso-8859-1" />
<title>Curvatron</title>
<link href='style.css' rel='stylesheet' type='text/css'>
<link rel="shortcut icon" href="favicon.ico"/>
<script type="text/javascript" src="js/phaser.min.js"></script>
<script type="text/javascript" src="js/FileSaver.min.js"></script>
<script type="text/javascript" src="js/canvas-toBlob.js"></script>
<script type="text/javascript" src="js/CanvasInput.min.js"></script>
<script type="text/javascript" src="js/buzz.min.js"></script>
<script type="text/javascript" src="src/states/Boot.js"></script>
<script type="text/javascript" src="src/states/PreloadMenu.js"></script>
<script type="text/javascript" src="src/states/Menu.js"></script>
<script type="text/javascript" src="src/states/Multiplayer.js"></script>
<script type="text/javascript" src="src/states/SetKeys.js"></script>
<script type="text/javascript" src="src/states/PreloadGame.js"></script>
<script type="text/javascript" src="src/states/SinglePlayer.js"></script>
<script type="text/javascript" src="src/states/GameMananger.js"></script>
<script type="text/javascript" src="src/states/Stats.js"></script>
<script type="text/javascript" src="src/states/Settings.js"></script>
<script type="text/javascript" src="src/states/Editor.js"></script>
<script type="text/javascript" src="src/states/LevelSelector.js"></script>
<script type="text/javascript" src="src/states/CustomLevels.js"></script>
<script type="text/javascript" src="src/states/EndCutscene.js"></script>
<script type="text/javascript" src="src/states/Credits.js"></script>
<script type="text/javascript" src="src/modes/Normal.js"></script>
<script type="text/javascript" src="src/modes/Endless.js"></script>
<script type="text/javascript" src="src/modes/Creative.js"></script>
<script type="text/javascript" src="src/modes/Adventure.js"></script>
<script type="text/javascript" src="src/modes/MPNormal.js"></script>
<script type="text/javascript" src="src/entities/Player.js"></script>
<script type="text/javascript" src="src/entities/PowerUp.js"></script>
<script type="text/javascript" src="src/entities/Button.js"></script>
<script type="text/javascript" src="src/entities/ButtonList.js"></script>
<script type="text/javascript" src="src/entities/Screenshot.js"></script>
<script type="text/javascript" src="src/entities/obstacles/Rotator.js"></script>
<script type="text/javascript" src="src/entities/obstacles/Horizontal.js"></script>
<script type="text/javascript" src="src/entities/obstacles/Vertical.js"></script>
<script type="text/javascript" src="src/entities/obstacles/Checkpoint.js"></script>
<script type="text/javascript" src="src/Common.js"></script>
<script type="text/javascript" src="src/AlbumData.js"></script>
</head>
<body>
<script type="text/javascript">
(function() {
noGreenworks = false
try {
var greenworks = require('./greenworks')
} catch (err) {
noGreenworks = true
}
nonSteam = true
if (greenworks) {
greenworks.initAPI()
if (greenworks.initAPI()) nonSteam = false
}
var gui = require('nw.gui')
var win = gui.Window.get()
if (localStorage.getItem('fullscreen') === 'false') {
win.leaveFullscreen()
} else {
win.enterFullscreen()
}
baseW = 1920
baseH = 1080
baseRatio = 1920/1080
baseArea = 1440*1440
var winW = window.innerWidth
var winH = window.innerHeight
var winRatio = winW/winH
var height = Math.round(Math.sqrt(baseArea/winRatio))
var width = Math.round(winRatio*height)
game = new Phaser.Game(baseH, baseH, Phaser.CANVAS, "Curvatron")
game.state.add("Boot",boot)
game.state.add("PreloadMenu",preloadMenu)
game.state.add("Menu",menu)
game.state.add("Multiplayer",multiplayer)
game.state.add("SetKeys",setKeys)
game.state.add("Stats",stats)
game.state.add("Settings",settings)
game.state.add("SinglePlayer",singlePlayer)
game.state.add("PreloadGame",preloadGame)
game.state.add("GameMananger",gameMananger)
game.state.add("Editor",editor)
game.state.add("LevelSelector",levelSelector)
game.state.add("CustomLevels",customLevels)
game.state.add("EndCutscene",endCutscene)
game.state.add("Credits",credits)
game.state.start("Boot")
})()
</script>
</body>
</html>