123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171 |
- <html>
- <head>
-
- <style>
- html,body {
- margin: 0px;
- padding: 0px;
- height: 100%;
- overflow-y: hidden;
- overflow-x: hidden;
- }
- .scribble-canvas {
- z-index: 500;
- position: absolute;
- left: 0px;
- top: 0px;
- }
-
- .canvas-layer {
- position: absolute;
- left: 0px;
- top: 0px;
- }
-
- #controls {
- position: fixed;
- top: 10px;
- left: 10px;
- z-index: 999;
- }
-
- #controls button {
- float: left;
- background-color: gray;
- }
- #controls button.active {
- background-color: orange;
- }
-
-
- .overlay {
- position:absolute;
- left: 0px;
- top: 0px;
- width: 1000px;
- height: 500px;
- z-index: 600;
- font-size: 50px;
- color: red;
- text-align: center;
- margin-top: 200px;
- }
-
-
- </style>
- <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js"></script>
- <script>
- // some initialization code
- Systems = {};
- Entities = {};
- images = [];
-
- </script>
-
- <script src="util.js"></script>
-
- <!-- <script src="behaviortree.js"></script> -->
-
- <script src="systems/movement.js"></script>
- <script src="systems/collisions.js"></script>
- <script src="systems/rendering.js"></script>
- <script src="systems/hud.js"></script>
- <script src="systems/ai.js"></script>
-
- <script src="game.js"></script>
-
- <script src="entities/people.js"></script>
- <script src="entities/buildings.js"></script>
- <script src="entities/organizations.js"></script>
-
- <script src="sp.js"></script>
- <script src="paths.js"></script>
- <script src="map.js"></script>
- <script src="mapgen.js"></script>
- <script src="lb.js"></script>
- <script>
- var clayers = [];
-
- $(function() {
- game = new Game();
-
- $('.canvas-layer').each(function() {
- clayers.push(this);
- });
-
- $(window).resize(resizeGame);
-
- resizeGame();
-
- $('.again').click(function(e) {
- e.preventDefault();
- $('.overlay').hide();
-
- game.loadLevel();
- game.loop();
- });
-
- });
-
-
-
- function resizeGame() {
- var w = $(window).width();
- var h = $(window).height();
-
-
-
- for(var i = 0; i < clayers.length; i++) {
-
- clayers[i].width = w;
- clayers[i].height = h;
-
- }
-
- // var m = new Map();
- // m.render();
- //
- }
-
-
-
- </script>
-
- </head>
- <body>
- <canvas width="300" height="300" id="tex-canvas" z-index="100" class="canvas-layer"></canvas>
- <canvas width="300" height="300" id="fixture-canvas" z-index="110" class="canvas-layer"></canvas>
- <canvas width="300" height="300" id="entity-canvas" z-index="200" class="canvas-layer"></canvas>
-
- <canvas width="300" height="300" id="hud-canvas" z-index="300" class="canvas-layer"></canvas>
-
-
-
- <div class="menu inventory" style="display:block">
-
-
-
-
-
- </div>
-
-
-
- <div class="overlay intro" style="display:none">
- Get ready to squeeze!
- <br>
- <button class="again">Play!</button>
- </div>
-
-
- </body>
|