-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
81 lines (81 loc) · 2.44 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8"/>
<title>Railways of America, an 18×× Game</title>
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Open+Sans"/>
<link rel="stylesheet" href="css/base.css"/>
<script>
// For anything requiring a loaded dependency
window.onReady = function(cb){
var c=0,a=function(){if(!c){if(document.readyState=='complete'){cb();c=true}}}
if(Element.prototype.addEventListener)document.addEventListener('readystatechange',a)
else if(Element.prototype.attachEvent)document.attachEvent('onreadystatechange',a)
};
// Build Basic Game Object
window.game18xx={scale:{x:.3,y:.3},defaults:{}}
</script>
<script src="res/phaser-arcade-physics.min.js" async></script>
<script src="res/zepto.min.js" async></script>
<script src="res/polyfill.js" async></script>
<script src="js/components.js" async></script>
<script src="js/operating.js" async></script>
<script src="js/mainmenu.js" async></script>
<script src="js/track.js" async></script>
<script src="js/world.js" async></script>
<script src="js/load.js" async></script>
<script>
// Wait for document ready
window.onReady(function() {
game18xx.phaser = new Phaser.Game(800, 520, Phaser.CANVAS, 'map')
game18xx.phaser.state.add('Boot', game18xx.Boot)
game18xx.phaser.state.add('Load', game18xx.Load)
game18xx.phaser.state.add('MainMenu', game18xx.MainMenu)
// game18xx.phaser.state.add('GameStart', game18xx.GameStart)
// game18xx.phaser.state.add('rndStock', game18xx.rndStock)
game18xx.phaser.state.add('rndOperating', game18xx.rndOperating)
// game18xx.phaser.state.add('rndEnd', game18xx.rndEnd)
// game18xx.phaser.state.add('GameEnd', game18xx.GameEnd)
game18xx.phaser.state.start('Boot')
})
</script>
</head>
<body>
<header>
<h1>Railways of America</h1>
<h2>An 18×× Game</h2>
</header>
<main>
In <u>Railways of America</u> you are an 18th century robber baron building and managing railroad companies for your own financial gains.
</main>
<aside id="players">
<h1>Players</h1>
<section><h1>Sam Grundman</h1>
<ul>
<li>$6000</li>
<li>B&O: 50 Shares, President</li>
<li>Boston: 30 Shares</li>
<li>Yadkin Valley</li>
</ul>
</section>
</aside>
<aside id="companies">
<h1>Companies</h1>
<section><h1>Yadkin Valley</h1>
<ul>
</ul>
</section>
</aside>
<aside id="railways">
<h1>Railways</h1>
<section><h1>B&O</h1>
<ul>
</ul>
</section>
</aside>
<section id="map">
</section>
<section id="market">
</section>
</body>
</html>