From 4aff16516e362583dabd0898cd71fe53c8bd6df3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ruben=20M=C3=BCller?= Date: Thu, 18 Apr 2013 21:52:22 +0200 Subject: [PATCH] added the player paddle lives --- dev/lib/game/entities/paddle-player.js | 7 ++++++- dev/media/paddle-player_sheet.png | Bin 0 -> 5501 bytes doc/TODO | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 dev/media/paddle-player_sheet.png diff --git a/dev/lib/game/entities/paddle-player.js b/dev/lib/game/entities/paddle-player.js index 22de6d2..fa55120 100644 --- a/dev/lib/game/entities/paddle-player.js +++ b/dev/lib/game/entities/paddle-player.js @@ -6,7 +6,12 @@ ig.module( ) .defines(function(){ EntityPaddlePlayer = EntityPaddle.extend({ - animSheet: new ig.AnimationSheet('media/paddle-player.png', 30, 120), + animSheet: new ig.AnimationSheet('media/paddle-player_sheet.png', 30, 120), + /*anim: null, + + init: function(){ + this.anim = new ig.Animation( this.animSheet, 0.1, [0,1,2,3,4] ); + },*/ update: function(){ if (ig.input.state('up')) { diff --git a/dev/media/paddle-player_sheet.png b/dev/media/paddle-player_sheet.png new file mode 100644 index 0000000000000000000000000000000000000000..ca9f86bcf05d63edb959a73884b79e3cb17e1e32 GIT binary patch literal 5501 zcmbVQc{tQ>*GEK_C|hKiWY5glX6z*UE@UUejC~d}!;qySNs`M$iqkcW_`^R%V?{&R%&7AN3J#)^v&;2={bARudL|bbUE_Pvd1_lN$GgCu5 z`ZbgO31>S@mpnEcJoJkY-pCnmkM_kAU|0l$J{;|h0GJ_Reh51R3?32EiO^+vefiJBSEkO8&EhBL-%H2(AEpbzTu0(}Tuu7;Kn<1v{5HV{ z=}7!Z%Gt^mV1ULV01%K0&__{82>^wHlvE*5sFDIeSy4$DtVn-Dfl8{H5U8fI8sMLo z1bsFv+*i}i(D-+@uMe}JMx1`dZ|z)B!RFcNvN zuHV);ydC0y()f?oIEM%f0&IuCp+m7g^m_Q7{_9M~?!QlTU`Wq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{?Z&n2NtFB!k_nuin&aksu z95yflx;^~0Dy0@!xH)1fc&G6DD_3?SM6BO;kvC7(23y4*?o3E zzLOn}B~%+`TCjFPSYPyFpCuzc%Soc9u~HkoC?NwYnzXBK}Au!xFV0@x#k?Y%w zIq!i?&lyiTHyB_*-!3Ys#9Cd2>Yv-22E*|EXcr}N)lo`%El=!^MadKg^{*$Mo>{DgzXSW%llbRf0ngP zOxF8cIWAX!U~H*Mg>O+*Q)$!U$D zvjb(XrZ*>O!vU7b+g^~I=R%1WbH!GoEAb=#0Z1ZSMGTQEGO}JbDuGMVqpS31!-f}+ z9w|cHZADW2G(?z-Qs`3M1F!q=#`c<5)z{^1b?aNA#`)x1T(P=p+I?X#7N?7p$Gjj^ z%yKV`{XF=MPin*bFC52~c;$-OmT??&d~Ln8ARm)ka9DVgfx4~+Q~qfD26?D|s%ZZ< z2b~p@bq_k%T7K=@OvaXYj*N#ZZ(UTQdT*HBEo9B`3re8HF|X5qK63wh2eV8OYnusM z_|Y);vEsmUq7GuT@U~^oM?KfF3HxiDM%ma+avr?}$g^x+!ufn{2sz4SnS9zxv;pkS zxzPALc666=>8Dfr^qaw!X+0?KJsqKYY|pLpQb)#Dw}91A8#xzW_8oU6Y^k^QOVyul z_wJ4#9AA%&dO6%VWq&o~=FupW%<+}J{+95?={kjm947kHAVe$X;d15p?(W2owjw8i z*{qqT&4~6xXx?@7W*3m7!kXCA#_mC3oBNvea`N(&mR{70l1ksDYcj;0nf(@qLkvSk Wa}%$GX`u&yh?*H$8&;h2iv1TVOdS&d literal 0 HcmV?d00001 diff --git a/doc/TODO b/doc/TODO index a7e5e37..d57505b 100644 --- a/doc/TODO +++ b/doc/TODO @@ -3,7 +3,7 @@ Initial release ## GFX * Game over screen (change main background) * Highscore-Screen -* Font for score (search fo a tool and make it fancy) +* Font for score (search fo a tool and make it fancy) => 999999 ## Sound * Background-tune! (http://www.nosoapradio.us/)