Stuff
This commit is contained in:
parent
c947c4ac08
commit
cc95f8f36f
4 changed files with 11 additions and 9 deletions
|
@ -7,12 +7,6 @@
|
|||
<script src="vendors/jquery-1.11.1.min.js"></script>
|
||||
<script src="vendors/canvasquery.js"></script>
|
||||
<script src="vendors/playground.js"></script>
|
||||
<style>
|
||||
html, body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<script src="app.js"></script>
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
html, body {
|
||||
background-color: #eee;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
|
@ -16,4 +16,4 @@ class Tile extends Base_entity
|
|||
# TODO: digging deeper?
|
||||
|
||||
render: ->
|
||||
# TODO: render me
|
||||
app.layer.fillStyle("#fff").fillRect(0, 0, 8, 8);
|
|
@ -5,8 +5,8 @@ app = playground({
|
|||
smoothing: false,
|
||||
|
||||
createTestTiles: ->
|
||||
testTile1 = new Tile
|
||||
testTile2 = new Tile
|
||||
@testTile1 = new Tile
|
||||
@testTile2 = new Tile
|
||||
|
||||
create: ->
|
||||
@createTestTiles()
|
||||
|
@ -19,4 +19,7 @@ app = playground({
|
|||
|
||||
render: ->
|
||||
this.layer.clear("#000");
|
||||
|
||||
@testTile1.render()
|
||||
@testTile2.render()
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue