From 8d5e7c10ff1ec7899d8b032531143ea661cf0207 Mon Sep 17 00:00:00 2001 From: Aaron Mueller Date: Sat, 6 Dec 2014 17:42:23 +0100 Subject: [PATCH 1/2] Start with the amount indicator --- src/entities/tile.coffee | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/entities/tile.coffee b/src/entities/tile.coffee index 7a0857e..8692fbd 100644 --- a/src/entities/tile.coffee +++ b/src/entities/tile.coffee @@ -22,8 +22,7 @@ class Tile extends BaseEntity name = app.layerIndexToName(@currentLayer) app.game.resources[name] += 1 else - @currentLayer += 1 - + @currentLayer += 1 moveIn: -> @isActive = true @@ -42,7 +41,11 @@ class Tile extends BaseEntity # app.layer.drawImage app.images.selected, x*8, y*8 if @isActive app.layer.drawImage app.images.active, x*8, y*8 + # Draw the status indicator. + for i in [0..5] + color = "#0a0" + color = "#0f0" if i == 5 + app.layer.setPixel(color, x*8+1+i, y*8+6) - # Draw the status indicator. From 0029492f18591e0fc48f24aa4b1225ebc48add89 Mon Sep 17 00:00:00 2001 From: Jonas1989 Date: Sat, 6 Dec 2014 17:57:29 +0100 Subject: [PATCH 2/2] add entities --- public/images/Thumbs.db | Bin 0 -> 8192 bytes public/images/entities.png | Bin 344 -> 371 bytes 2 files changed, 0 insertions(+), 0 deletions(-) create mode 100644 public/images/Thumbs.db diff --git a/public/images/Thumbs.db b/public/images/Thumbs.db new file mode 100644 index 0000000000000000000000000000000000000000..cd81e3766d3ea761cbb5cf1c096035c31e0a7b91 GIT binary patch literal 8192 zcmeI02T)W=w}9^qLy{qbWEe7t0t1o+NrJ$lC?F_E&L}y9NR9@w2m(q@qJXHNWI>Q1 zSrExtK$7JA_jUEXt-o~N?yFa?>aW@}_0i!r_nbc6efxBGw3Cmf71NJF|0dE94s>ux z2;u#q9s%+&--HZ;kRSt>4-O9xf3Jifko`yggFLVgY=y@d9zzsJaRK<>%LE`L1RMbn z0nh+q00{tY|Bw9Vdq4xS2R|1G11UmwAa#N~!RY>VISO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WP81Fo)Rx!MY+K~#k#t9}Zuhg;NIN~=1 z6?hWh@9g;Mx|qtJ3!7w4oiKYNi>TdyXuCx0(YQ`2ojR0Un08;Bg=)vg?q~(;J3q0w z(RF^4&g@lu-E-3G?col6grVMNFODcPfTNavP%I|LEoT*)TM*YL4O-j$=$BgV$FCfg zwQ0pfcj!wqWjFU?E(&LMhJ!hkc^0E}>fyvOX(URq1|@=8enlS>(cOCL!|cZa#|2NS zt;qhdJCOE`Og4xm0>L(m)49^A`=NH<^6_Wxn<=PtwHQjT@&Q^rdOqZ`za35qDP9_S zO_{Kd<#Qi_y8%J;AgVgf;~LcIiethjD}ZV=_3*HK;5)M{tvvY$V7Fc~TQu7=ioUUV?5L#w7SC`|AVpce{R- o{ILJW{oz+^9*63(X#Y>_$AEYIbAR}Me1G_>arvkI|HlLW0{fe>H2?qr literal 0 HcmV?d00001 diff --git a/public/images/entities.png b/public/images/entities.png index 77130d8a6532a29558849af80098c3c4d0ceaf9d..8f23c135715fce2bef853efed47dfeaaff835db2 100644 GIT binary patch delta 284 zcmV+%0ptGI0`mfp83+ad0047(di0SYA_h4Td}(VMkx49n=}AOER9M69lQC|>KoCXW zSe6orG@;1>asbZ21(0jF0Cl9$;bJL~QgZ>Q;V3ykt`V8WKaCA6K?1S3o8PTQyYpuM z9}~YS%N3Ut!j#N<07$~jqPip`ks_OyUjq2~9!G`u!3Kau_=qo@LDY4f1dzAQ*W0(K zFe%0dh*rCQR3a`0D0^8q_~`c zu9e@?(6WqTwui=ZsrnbjyDbP|8m-;=`Q^2bnxvnuUF!NBhSQ^7>MDc|-~bNb01n^) i4&VR|-~bNLwf+FQiA=fQ0InGT00005Z%r8+C@DE|o1?>=?fY;NjMw{)m&CyYy%k;}_U5$L#lMcz_xB{I0n_f)X+F{Cc zsnIY876?*gz_ByO&Z=uybh&ijZN7nQaA#gG)We}SLK_W=@PiJCwVTC)WuFyQza@%- z`WYxGr-eacv50}3yoW#&LNF#1Mn(ygKnavU36wwylwcUXRO~%w(e@b!00000NkvXX Hu0mjf4Ulh>