-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgame.html
16 lines (14 loc) · 6.88 KB
/
game.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<html><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width" initial-scale="1"><title>CodeCraft | Demo</title><link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css"><link rel="stylesheet" media="screen" href="/assets/stylesheets/main.css"><link rel="shortcut icon" type="image/png" href="/assets/images/favicon.png">
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
<script async="" src="//www.google-analytics.com/analytics.js"></script><script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-66549646-2', 'auto');
ga('send', 'pageview');
</script>
</head><body onload="components.ReactInstaller().install()"><nav class="navbar navbar-inverse navbar-fixed-top"><div class="container"><div class="navbar-header"><button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar"><span class="sr-only">Toggle navigation</span><span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span></button><a class="navbar-brand" href="/">CodeCraft</a></div><div id="navbar" class="collapse navbar-collapse"><ul class="nav navbar-nav"><li><a href="/">Home</a></li><li><a href="/docs">Documentation</a></li><li class="active"><a href="/demo">Demo</a></li><li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">JavaScript (experimental)<span class="caret"></span></a><ul class="dropdown-menu"><li><a href="/tutorial">Tutorial</a></li><li><a href="/singleplayer">Singleplayer</a></li></ul></li></ul></div></div></nav><div id="react-container" class="fill" data-component-json="{"$type":"components.GameplayDemo"}"><div class="game-container" data-reactid=".0"><div style="float:left;width:350px;height:100%;background-color:#222;color:white;" data-reactid=".0.0"><div class="demo-sidebar" style="margin:10px;" data-reactid=".0.0.0"><h3 data-reactid=".0.0.0.0">Graphics</h3><div style="margin-bottom:7px;" data-reactid=".0.0.0.1"><strong data-reactid=".0.0.0.1.0">Target FPS: </strong><span data-reactid=".0.0.0.1.1">60</span></div><div style="margin-bottom:7px;" data-reactid=".0.0.0.2"><strong data-reactid=".0.0.0.2.0">Actual FPS: </strong><span data-reactid=".0.0.0.2.1">44</span></div><div class="form-inline" style="margin-bottom:7px;" data-reactid=".0.0.0.3"><select id="select-map" class="form-control" style="width:150px;" data-reactid=".0.0.0.3.0"><option selected="" value="Fancy Graphics" data-reactid=".0.0.0.3.0.$0">Fancy Graphics</option><option value="Fast Graphics" data-reactid=".0.0.0.3.0.$1">Fast Graphics</option></select></div><div class="form-inline" data-reactid=".0.0.0.4"><button id="button-hide-sidebar" type="button" class="btn btn-default" data-reactid=".0.0.0.4.0">Collapse Sidebar</button></div><h3 data-reactid=".0.0.0.5">Game Config</h3><div class="form-inline" style="margin-bottom:7px;" data-reactid=".0.0.0.6"><select id="Orange" class="form-control" style="border-color:orange;width:150px;" data-reactid=".0.0.0.6.0"><option value="Aggressive Replicator" data-reactid=".0.0.0.6.0.$0">Aggressive Replicator</option><option value="Confident Replicator" data-reactid=".0.0.0.6.0.$1">Confident Replicator</option><option selected="" value="Destroyer" data-reactid=".0.0.0.6.0.$2">Destroyer</option><option value="Greedy Replicator" data-reactid=".0.0.0.6.0.$3">Greedy Replicator</option><option value="Replicator" data-reactid=".0.0.0.6.0.$4">Replicator</option></select><span data-reactid=".0.0.0.6.1"> vs. </span><select id="Blue" class="form-control" style="border-color:blue;width:150px;" data-reactid=".0.0.0.6.2"><option value="Aggressive Replicator" data-reactid=".0.0.0.6.2.$0">Aggressive Replicator</option><option value="Confident Replicator" data-reactid=".0.0.0.6.2.$1">Confident Replicator</option><option value="Destroyer" data-reactid=".0.0.0.6.2.$2">Destroyer</option><option value="Greedy Replicator" data-reactid=".0.0.0.6.2.$3">Greedy Replicator</option><option selected="" value="Replicator" data-reactid=".0.0.0.6.2.$4">Replicator</option></select></div><div class="form-inline" style="margin-bottom:7px;" data-reactid=".0.0.0.7"><select id="select-map" class="form-control" style="width:150px;" data-reactid=".0.0.0.7.0"><option value="Large Map" data-reactid=".0.0.0.7.0.$0">Large Map</option><option selected="" value="Default Map" data-reactid=".0.0.0.7.0.$1">Default Map</option><option value="Small Map" data-reactid=".0.0.0.7.0.$2">Small Map</option></select></div><button id="button-restart-game" type="button" class="btn btn-default" data-reactid=".0.0.0.8">Restart Game</button><h3 data-reactid=".0.0.0.9">Controls</h3><p class="hotkeys-dark" data-reactid=".0.0.0.a"><kbd data-reactid=".0.0.0.a.0">W</kbd><span data-reactid=".0.0.0.a.1">,</span><kbd data-reactid=".0.0.0.a.2">A</kbd><span data-reactid=".0.0.0.a.3">,</span><kbd data-reactid=".0.0.0.a.4">S</kbd><span data-reactid=".0.0.0.a.5">,</span><kbd data-reactid=".0.0.0.a.6">D</kbd><span data-reactid=".0.0.0.a.7"> or click and drag to move camera</span><br data-reactid=".0.0.0.a.8"><kbd data-reactid=".0.0.0.a.9">Q</kbd><span data-reactid=".0.0.0.a.a">/</span><kbd data-reactid=".0.0.0.a.b">E</kbd><span data-reactid=".0.0.0.a.c"> or mouse wheel to zoom in/out</span><br data-reactid=".0.0.0.a.d"><kbd data-reactid=".0.0.0.a.e"><SPACEBAR></kbd><span data-reactid=".0.0.0.a.f"> to pause/resume</span><br data-reactid=".0.0.0.a.g"><kbd data-reactid=".0.0.0.a.h">1</kbd><span data-reactid=".0.0.0.a.i">/</span><kbd data-reactid=".0.0.0.a.j">2</kbd><span data-reactid=".0.0.0.a.k"> to toggle sight radius/weapons range</span><br data-reactid=".0.0.0.a.l"><kbd data-reactid=".0.0.0.a.m">F</kbd><span data-reactid=".0.0.0.a.n">/</span><kbd data-reactid=".0.0.0.a.o">R</kbd><span data-reactid=".0.0.0.a.p"> to increase/decrease game speed</span></p></div></div><div style="float:right;width:calc(100% - 350px);height:100%;" data-reactid=".0.1"><div class="full-height-rel" data-reactid=".0.1.0"><canvas id="webgl-canvas" tabindex="1" data-reactid=".0.1.0.0" width="450" height="591"></canvas><div id="text-container" tabindex="-1" data-reactid=".0.1.0.1"></div><div id="text-test-container" tabindex="-1" data-reactid=".0.1.0.2"></div></div></div></div></div><script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script><script