Skip to content

Commit

Permalink
Merge branch 'master' of github.com:leedo/strugglin-rts
Browse files Browse the repository at this point in the history
  • Loading branch information
agonopol committed Sep 17, 2011
2 parents a81dafb + 6c0dc54 commit a55b683
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
2 changes: 2 additions & 0 deletions public/index.html
@@ -1,9 +1,11 @@
<html>
<head>
<link type="text/css" rel="stylesheet" href="/static/strugglin.css" />
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/prototype/1.7.0.0/prototype.js"></script>
<script type="text/javascript" src="/static/strugglin.js"></script>
</head>
<body>
<h1>Yo's Strugglin'</h1>
<canvas id="game"></canvas>
</body>
</html>
9 changes: 9 additions & 0 deletions public/strugglin.js
@@ -0,0 +1,9 @@
var Game = Class.create({
initialize: function(id) {
this.canvas = $(id);
}
});

document.observe("dom:loaded", function() {
var game = new Game("game");
});

0 comments on commit a55b683

Please sign in to comment.