This commit is contained in:
Ruben Müller 2014-12-06 09:59:01 +01:00
parent c947c4ac08
commit cc95f8f36f
4 changed files with 11 additions and 9 deletions

View file

@ -7,12 +7,6 @@
<script src="vendors/jquery-1.11.1.min.js"></script> <script src="vendors/jquery-1.11.1.min.js"></script>
<script src="vendors/canvasquery.js"></script> <script src="vendors/canvasquery.js"></script>
<script src="vendors/playground.js"></script> <script src="vendors/playground.js"></script>
<style>
html, body {
margin: 0;
padding: 0;
}
</style>
</head> </head>
<body> <body>
<script src="app.js"></script> <script src="app.js"></script>

View file

@ -0,0 +1,5 @@
html, body {
background-color: #eee;
margin: 0;
padding: 0;
}

View file

@ -16,4 +16,4 @@ class Tile extends Base_entity
# TODO: digging deeper? # TODO: digging deeper?
render: -> render: ->
# TODO: render me app.layer.fillStyle("#fff").fillRect(0, 0, 8, 8);

View file

@ -5,8 +5,8 @@ app = playground({
smoothing: false, smoothing: false,
createTestTiles: -> createTestTiles: ->
testTile1 = new Tile @testTile1 = new Tile
testTile2 = new Tile @testTile2 = new Tile
create: -> create: ->
@createTestTiles() @createTestTiles()
@ -19,4 +19,7 @@ app = playground({
render: -> render: ->
this.layer.clear("#000"); this.layer.clear("#000");
@testTile1.render()
@testTile2.render()
}) })