From cc95f8f36f62c278099cb422218d223a3901941f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ruben=20M=C3=BCller?= Date: Sat, 6 Dec 2014 09:59:01 +0100 Subject: [PATCH] Stuff --- public/index.html | 6 ------ public/styles.css | 5 +++++ src/entities/tile.coffee | 2 +- src/main.coffee | 7 +++++-- 4 files changed, 11 insertions(+), 9 deletions(-) diff --git a/public/index.html b/public/index.html index ef99bed..575e316 100644 --- a/public/index.html +++ b/public/index.html @@ -7,12 +7,6 @@ - diff --git a/public/styles.css b/public/styles.css index e69de29..af75eca 100644 --- a/public/styles.css +++ b/public/styles.css @@ -0,0 +1,5 @@ +html, body { + background-color: #eee; + margin: 0; + padding: 0; +} \ No newline at end of file diff --git a/src/entities/tile.coffee b/src/entities/tile.coffee index 6d30f1d..fed7472 100644 --- a/src/entities/tile.coffee +++ b/src/entities/tile.coffee @@ -16,4 +16,4 @@ class Tile extends Base_entity # TODO: digging deeper? render: -> - # TODO: render me \ No newline at end of file + app.layer.fillStyle("#fff").fillRect(0, 0, 8, 8); \ No newline at end of file diff --git a/src/main.coffee b/src/main.coffee index 9873203..ab446e1 100644 --- a/src/main.coffee +++ b/src/main.coffee @@ -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() })