This commit is contained in:
Ruben Müller 2014-12-07 18:12:47 +01:00
parent 9388487309
commit 183e27d220
4 changed files with 5 additions and 1 deletions

BIN
public/images/cursor.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 953 B

View file

@ -2,6 +2,7 @@ html, body {
background-color: #eee;
margin: 0;
padding: 0;
cursor: none;
}
@font-face {

View file

@ -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: ->

View file

@ -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