diff --git a/public/images/cursor.png b/public/images/cursor.png new file mode 100644 index 0000000..49ad2c4 Binary files /dev/null and b/public/images/cursor.png differ diff --git a/public/styles.css b/public/styles.css index 20f6605..588e35d 100644 --- a/public/styles.css +++ b/public/styles.css @@ -2,6 +2,7 @@ html, body { background-color: #eee; margin: 0; padding: 0; + cursor: none; } @font-face { diff --git a/src/app.coffee b/src/app.coffee index 8ddd661..f90657b 100644 --- a/src/app.coffee +++ b/src/app.coffee @@ -5,7 +5,7 @@ app = playground( smoothing: false, create: -> - @loadImages "layers", "active", "progress", "selected", "entities", "hud", "actions", "speechbubbles", "deadtiles", "layerdetails", "entitydetails", "buildinfo" + @loadImages "layers", "active", "progress", "selected", "entities", "hud", "actions", "speechbubbles", "deadtiles", "layerdetails", "entitydetails", "buildinfo", "cursor" @currentHoveredTile = new Tile ready: -> diff --git a/src/hud.coffee b/src/hud.coffee index 3e24573..f59d91b 100644 --- a/src/hud.coffee +++ b/src/hud.coffee @@ -18,6 +18,9 @@ app.game.hud = panelusage = 'resources' app.layer.drawImage app.images.hud, 0, 11*8 + # cursor + app.layer.drawImage app.images.cursor, app.game.mouseX, app.game.mouseY + if @buildinfo app.layer.drawRegion app.images.buildinfo, [0, 0, 106, 10], 1, 1 app.layer.drawRegion app.images.buildinfo, [0, 10, 106, 10], 1, 12