From 183e27d2207d2df4512142f950e88b9f2aacacf2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ruben=20M=C3=BCller?= Date: Sun, 7 Dec 2014 18:12:47 +0100 Subject: [PATCH] Cursor! --- public/images/cursor.png | Bin 0 -> 953 bytes public/styles.css | 1 + src/app.coffee | 2 +- src/hud.coffee | 3 +++ 4 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 public/images/cursor.png diff --git a/public/images/cursor.png b/public/images/cursor.png new file mode 100644 index 0000000000000000000000000000000000000000..49ad2c429ba04c8d7bac7f947d0caa6a4b1f5549 GIT binary patch literal 953 zcmaJ=zi!h&9JZiBP#Ph`1k=f7072~7jh*Hc(>k_GEY(qzL?UAx`;u6xea5~JCnM@W zpMYmzfEQqZ6{+w5OiYNaFTlWE8m9~d%l6&<^nKs&@13=p&kNfRwmFU~*bTEy*Bk7+ z$^JjiFB){YPpls4;31j03F34g4-l|JcZAx=_2)0Ypc=GQiC6XcgJ+MY&H{Sdjd{IqExL`nT9MEDWaIpBjRSo zDBaB!Oq6;_5R(8$fGN5IJS7@WBfU%^jMuVJx+)Vbn3%b-Cje0Atzd06TBUhxsh^)1LwK_M^`C;4j;L^i- z^if3TJ)wi$CvQ*brFdeSdN=z%_ - @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