Cursor!
This commit is contained in:
parent
9388487309
commit
183e27d220
4 changed files with 5 additions and 1 deletions
BIN
public/images/cursor.png
Normal file
BIN
public/images/cursor.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 953 B |
|
@ -2,6 +2,7 @@ html, body {
|
||||||
background-color: #eee;
|
background-color: #eee;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
|
cursor: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
@font-face {
|
@font-face {
|
||||||
|
|
|
@ -5,7 +5,7 @@ app = playground(
|
||||||
smoothing: false,
|
smoothing: false,
|
||||||
|
|
||||||
create: ->
|
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
|
@currentHoveredTile = new Tile
|
||||||
|
|
||||||
ready: ->
|
ready: ->
|
||||||
|
|
|
@ -18,6 +18,9 @@ app.game.hud =
|
||||||
panelusage = 'resources'
|
panelusage = 'resources'
|
||||||
app.layer.drawImage app.images.hud, 0, 11*8
|
app.layer.drawImage app.images.hud, 0, 11*8
|
||||||
|
|
||||||
|
# cursor
|
||||||
|
app.layer.drawImage app.images.cursor, app.game.mouseX, app.game.mouseY
|
||||||
|
|
||||||
if @buildinfo
|
if @buildinfo
|
||||||
app.layer.drawRegion app.images.buildinfo, [0, 0, 106, 10], 1, 1
|
app.layer.drawRegion app.images.buildinfo, [0, 0, 106, 10], 1, 1
|
||||||
app.layer.drawRegion app.images.buildinfo, [0, 10, 106, 10], 1, 12
|
app.layer.drawRegion app.images.buildinfo, [0, 10, 106, 10], 1, 12
|
||||||
|
|
Loading…
Reference in a new issue