-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
48 lines (40 loc) · 3.11 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
<!DOCTYPE html>
<html>
<head>
<title>Evolution Game</title>
<link rel="stylesheet" type="text/css" href="css/style.css"></link>
<script type="text/javascript" src="js/functions/draw_graph.js"></script>
<script type="text/javascript" src="js/functions/rgb.js"></script> <!-- rgb() function to make colors easier to work with -->
<script type="text/javascript" src="js/functions/CanvasRenderingContext2D/fill_circle.js"></script> <!-- gives the canvas context a function to draw a filled in circle, analogous to the existing fillRect function -->
<script type="text/javascript" src="js/functions/debug.js"></script> <!-- allows us to print debug messages into a div with id="debug" -->
<script type="text/javascript" src="js/fps_counter.js"></script> <!-- frame counter class -->
<!-- these files add destroy() methods to existing javascript objects, so that object.destroy() can be consistently used for all objects, whether user-defined or not -->
<!-- otherwise, native javascript objects would have to use the delete keyword and look inconsistent -->
<script type="text/javascript" src="js/functions/Audio/stop.js"></script>
<script type="text/javascript" src="js/classes/bg_population.js"></script> <!-- container class for background organisms. contains functions to select an organism and reproduce -->
<script type="text/javascript" src="js/classes/bg_organism.js"></script> <!-- organism class for organisms that exist off screen and reproduce between game phases -->
<script type="text/javascript" src="js/classes/active_organism.js"></script> <!-- organism class for organisms on the screen, which interact with the player during game phases -->
<script type="text/javascript" src="js/modes/play_mode.js"></script> <!-- the mode that the game is actually played in -->
<script type="text/javascript" src="js/modes/loading_mode.js"></script>
<script type="text/javascript" src="js/modes/title_mode.js"></script>
<script type="text/javascript" src="js/GameState/request_animation_frame.js"></script>
<script type="text/javascript" src="js/GameState/game_state.js"></script>
<script type="text/javascript" src="js/GameState/resources.js"></script>
<script type="text/javascript" src="js/GameState/sprite.js"></script>
<script type="text/javascript" src="js/GameState/animation.js"></script>
<script type="text/javascript" src="js/sprite_info.js"></script>
<script type="text/javascript" src="layouts/title.js"></script>
<script type="text/javascript" src="js/main.js"></script>
</head>
<body onload="main()">
<div><!--
--><canvas id="graph0"></canvas><!--
--><canvas id="graph1"></canvas><!--
--><canvas id="graph2"></canvas><!--
--></div>
<div id="score" style="font-size:45px; margin-top:570px; margin-left:10px;"></div>
<div id="debug"></div>
<div id="game_container"><noscript>You have javascript turned off, or your browser doesn't support javascript. You need javascript for this game to run. Sorry! :(</noscript></div>
<div id="framerate" style="margin-left:10px;"></div>
</body>
</html>