From e2b531a6edbed112cf3633fc1f5e920dc6e88e62 Mon Sep 17 00:00:00 2001 From: neingeist Date: Mon, 25 Nov 2013 01:35:22 +0100 Subject: [PATCH] rocket --- asset/sprites/rocket01.png | Bin 0 -> 2227 bytes asset/src/rocket01.xcf | Bin 0 -> 4848 bytes data/sprites.json | 2 +- images/sprites.png | Bin 2102 -> 4129 bytes platformer.js | 15 +++++++-------- 5 files changed, 8 insertions(+), 9 deletions(-) create mode 100644 asset/sprites/rocket01.png create mode 100644 asset/src/rocket01.xcf diff --git a/asset/sprites/rocket01.png b/asset/sprites/rocket01.png new file mode 100644 index 0000000000000000000000000000000000000000..6efa7f93d6037bcfa3817e5541cef651bc207e88 GIT binary patch literal 2227 zcmV;k2u$~hP)WFU8GbZ8()Nlj2>E@cM*00yQ2Y#Y}R z$A9zoLraRLWlOS1eOfW?w9SVb*J^CXF7k2cp>}};L5mjXEkN2_S`=tbiIWHc0>nTL zK~NxR4+VNodvJSb4*?3JX^H_wr*PjCozQ(oQm@(kp^gZ?!4Bm7Vj4{sznM@dDGNCc% zIiT=$GbsS?_`YA>v!|qc_LS83{W9>*Enpimb2?!HoDeZTFBS`hBZns#8Y;4|u$Wt3 zt_^|C0dqiYGbQc@OmrQ{q=-4u*VkWo=-d1G(bLBPsMS_zG@6A<}VlpT{3Ns*gQ-SPF$*)T3CVMnl4IB^O1}ATXz@Wgr4@%v zyx7$hJTo{rSe!U`Kz{u63BGsiyOQh9;JOYYBSq=&?Pa;PLKxO_^?G!$)oP6ap8}Oz z6`Bozb^woy$Y3s)lhM(UGRBzh-!L$&L6X ziBhlErLs^lOG`_!waF~-UMkx$qw~OvjYf24=8KEZPY?8dBdmouj)SD8JB~wG3z?pp zX6B2F=YiLOzXMl0Wh6ih%mQbCYPDJ=ZZ_9I+HMu%W|L~Q3Q$e=&Ze@`3DEld?`|9K z+yt^7%yFF6?Cst_$JWV^K2Ktd!Sh^v&!g#k0QjDV=eZbTR=wceZDqLKzs3**0e*LO z?VjJAB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 diff --git a/asset/src/rocket01.xcf b/asset/src/rocket01.xcf new file mode 100644 index 0000000000000000000000000000000000000000..b1c728ca0514a4480a7721b2c1e3fcf4dd1d4b65 GIT binary patch literal 4848 zcma)9YfK#16`q-eeY3#M@(f;ff%1Mi1}C=SR!UV_u1!*7CGsPWV!Uj?JS>~2i7M4m zt2Aw1tx{VhREpv%w112N$Ec1I5<@Tv7&|r)JA|0mF8hE0#tYtEcG>B7XJ>diN=Dq} zoNvyZd(XM&JNI65dDSt)OQmIovhqq3g(n`ZfCzXZ(P$b!ESmiBzf%-xcywqXXezX5 zK_+%lu-}RQVPJ6PSjMEAIVUrmzhgzDr=4#()oWm$IXXJ4EeeF{PO@|v+ybd zT@OE?tN7mV!vg90(urdwrRCLT!)9?TfG{G$?9 z$;wqSSyR%NJZdyi4qGLMLnhx99~lJEPRxx^@g=5pRFK7q!4XCZ5@_V2n~o}KYATANDGlXfLgRP6H8S$nuJ}*}({#xV#UI?V*=~JM zY>*ROk$voj+u?BEIF_v-x-z@Ed(Lj3>#ojL5?!W0czM=tpS^rgFT?lTkF?%%IPSGR zLPb#Sv?iCs;c7}Fa%MA;n=^@=-Rhm0@wR3YIk%1Tdbze-A}77s-rCy!W)hJVDY-^t zZi)imq#1^yW6_u}%EcmF##5(^h#O0VQ40!+%D;X+AL|Fr6@rCJ>*`8FSVAZzHOpYJ zBr%72dk@7(zy$`ura?qk;v3h-#;(1d2#kgo?j4g1QppO(`@=O0j|| zD5XY$MV`_;oGX{6i?-=fdG5m+f~)fK-3by(Mg?dXyF;S&n>OjALm>l@QgdAW*3^{b6#V_H zppHYdJe+6j^8Y%%=%Ty4pEZ9p;^FWypUpn$;zGH_g(-*K4q(yla89{63Flp$ny@<@ zfM~~@-8SvxxPX7&Hg0n|dCUjQ&(WM`X+Z=T$36Sh{Ut8op0!zmb|H@W$$OlCa@>l6 zrZ6wsLGvG+nDQ))4_Pn(g%-l&vrCwRbJ{sFG&&0c0uS1|oDPT0GW=~nMcHip;55AX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N#~AiMd}%Bdp?VX3Ls?|DG~x2eJY#n<2crTZszs7$#l6r2#*`xtD$Q? znp`mUOHSs_RLEa=m!EkHX!IEoK#Gx>{W&|3dKaN#Wjf1k3dQex61gcX*lac=Ng_$| zGG21ywA(@V^JzjJ>61UB>5f9Y#e%&p7nc%`RW=_36sZ(CVB96c`zBE;j?Jd0FYA(wE52hCD^8tva=O|z7pROh1?vvCN>2+U7OEZ0R64k2caX2$W18m$@n8gJrT>o<^>nL<&4mz)fLmCUp_YU?upyKC1kLQdY>ffs>P zp^IPZI=|Hn5?d_ISmb7en!_Vu9UyS%I69&dv{`# zWn_cSk$*}4qZQ5r;U@15@E+j$>pc?JWP(kV=+Xol;Lub$^5DB)^WgUw@atZh@9K#5 zeW><-L#!^7kaP{B0>TgVO$vWIoc^ox7mvP0cQJ;14jEjnDLeDoQuuWR_(3b6^W801&S{uK=4vb zotx&81o48+s-XJ?n>us3;*#0?`Nw>CHIEB_twypleM}kqEHkoKlA2M?bEPsu@180- z$!plK`RE6=b+rwVq#zi;Z};IzH85_X%Hv5120rx|G5LMWRXQ-%-@M;j<^JI~3 z)5TO-k%_k$Xm{vnCJV;mF-*!9=sLXp$5io`lez25&zZcnHpChJK^X!#R=xBjD*d7YAejnSd2glOLO9UbDcm zUonll^3RHU-?(`3#C4#H?rJvy8pF9C=tnZ3_P_+zjdmdL<}%{R`qTdaq_qDLW7c;i QnE(I)07*qoM6N<$f*B9#Bme*a diff --git a/platformer.js b/platformer.js index 7c54f12..9058242 100644 --- a/platformer.js +++ b/platformer.js @@ -47,11 +47,11 @@ Q.Sprite.extend("Player",{ // hit.sprite is called everytime the player collides with a sprite this.on("hit.sprite",function(collision) { - // Check the collision, if it's the cake, you win! - if(collision.obj.isA("Cake")) { + // Check the collision, if it's the rocket, you win! + if(collision.obj.isA("Rocket")) { this.destroy(); - $( "#einladung" ).show( "slow" ); - Q.stageScene("ThereWillBeCake",1, { label: "You Won!" }); + $("#einladung").center(); + $("#einladung").show("slow"); } }); @@ -60,9 +60,9 @@ Q.Sprite.extend("Player",{ }); -Q.Sprite.extend("Cake", { +Q.Sprite.extend("Rocket", { init: function(p) { - this._super(p, { sheet: 'minecraft-cake' }); + this._super(p, { sheet: 'rocket' }); } }); @@ -155,8 +155,7 @@ Q.scene("level1",function(stage) { stage.insert(new Q.Starbug({ x: 600, y: 0 })); stage.insert(new Q.Neingeist({ x: 650, y: 0 })); - // Finally add the cake - stage.insert(new Q.Cake({ x: 146, y: 36 })); + stage.insert(new Q.Rocket({ x: 146, y: 32 })); }); // To display a game over / game won popup box,