From 08ce26c9f20283ff4a052ffec35aa80d891b625a Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Sun, 28 Feb 2010 09:32:24 +0000 Subject: [PATCH] Haywire: Implemented a first version of the "crazy bomb". Sprites and bode are based on Mr. Bomb, of course. Haywire behaves like Mr. Bomb until jumped upon. If jumped upon, he will run around (walk with twice the speed) for five seconds, then explode. While running around Haywire will iterate through a number of different colors. When jumped upon - even when already ticking - Haywire is stunned for half a second. This does not interrupt the explosion timer, though. SVN-Revision: 6443 --- data/images/creatures/haywire/haywire.sprite | 43 +++++++ data/images/creatures/haywire/iced-left.png | Bin 0 -> 3978 bytes data/images/creatures/haywire/left-0.png | Bin 0 -> 3406 bytes data/images/creatures/haywire/left-1.png | Bin 0 -> 3514 bytes data/images/creatures/haywire/left-2.png | Bin 0 -> 3624 bytes data/images/creatures/haywire/ticking-0.png | Bin 0 -> 3365 bytes data/images/creatures/haywire/ticking-1.png | Bin 0 -> 3493 bytes data/images/creatures/haywire/ticking-2.png | Bin 0 -> 3577 bytes data/images/creatures/haywire/ticking-3.png | Bin 0 -> 3405 bytes data/images/creatures/haywire/ticking-4.png | Bin 0 -> 3439 bytes data/images/creatures/haywire/ticking-5.png | Bin 0 -> 3624 bytes src/badguy/haywire.cpp | 162 +++++++++++++++++++++++++++ src/badguy/haywire.hpp | 50 +++++++++ src/supertux/object_factory.cpp | 2 + 14 files changed, 257 insertions(+) create mode 100644 data/images/creatures/haywire/haywire.sprite create mode 100644 data/images/creatures/haywire/iced-left.png create mode 100644 data/images/creatures/haywire/left-0.png create mode 100644 data/images/creatures/haywire/left-1.png create mode 100644 data/images/creatures/haywire/left-2.png create mode 100644 data/images/creatures/haywire/ticking-0.png create mode 100644 data/images/creatures/haywire/ticking-1.png create mode 100644 data/images/creatures/haywire/ticking-2.png create mode 100644 data/images/creatures/haywire/ticking-3.png create mode 100644 data/images/creatures/haywire/ticking-4.png create mode 100644 data/images/creatures/haywire/ticking-5.png create mode 100644 src/badguy/haywire.cpp create mode 100644 src/badguy/haywire.hpp diff --git a/data/images/creatures/haywire/haywire.sprite b/data/images/creatures/haywire/haywire.sprite new file mode 100644 index 000000000..14ec19791 --- /dev/null +++ b/data/images/creatures/haywire/haywire.sprite @@ -0,0 +1,43 @@ +(supertux-sprite + (action + (name "left") + (fps 10.0) + (hitbox 5 8 32 32) + (images "left-0.png" + "left-1.png" + "left-2.png" + "left-1.png")) + + (action + (name "right") + (fps 10.0) + (hitbox 5 8 32 32) + (mirror-action "left")) + + (action + (name "iced-left") + (hitbox 3 12 31.8 31.8) + (images "iced-left.png")) + + (action + (name "iced-right") + (hitbox 7 12 31.8 31.8) + (mirror-action "iced-left")) + + (action + (name "ticking-left") + (fps 10.0) + (hitbox 5 8 32 32) + (images "ticking-0.png" + "ticking-1.png" + "ticking-2.png" + "ticking-3.png" + "ticking-4.png" + "ticking-5.png")) + + (action + (name "ticking-right") + (fps 10.0) + (hitbox 5 8 32 32) + (mirror-action "ticking-left")) +) diff --git a/data/images/creatures/haywire/iced-left.png b/data/images/creatures/haywire/iced-left.png new file mode 100644 index 0000000000000000000000000000000000000000..d6021baeb65eb32bddfb542c4e4579419f8f341f GIT binary patch literal 3978 zcmV;54|VW~P)WFU8GbZ8({Xk{QrNlj4iWF>9@01oa+L_t(o!_}DwRFzk@ z#}mi+oFrq^Bs#W=+}aN@7xb}4LiE;Tq$g6JFejx=v;I9d|2)OUd*1R z?VLH+)YpRGSBzS){_~&P|G{Fpk-v%^-|Ux^U48KIqHAVR#XNyuidSw`Oa1w4Cv%US z+PldkA!?kWg)P~5h#S`L{h#+AU%K1V z>n}cVdzp2})vB+~{?LBmdc#u9Z}TD_d4hoJG%27P?EUJna(?6FYW8gmp4 zu~b6{8EuOn$u`SLR2N$YP2b`bAEz6!^Pjuh&Y)4>lDcwY6X3*UC!`o6!T z>yG67oqLk}=99N(=(;u1;iH~2k41w~<(Hs`k?=(XsZGF_8Q?etb5Q02#ZyqI!Yl(1 z1m~8)J6#MTzgT!D?nFd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zplNUO>@<73*>q0|mT_l{=ShRBCE@g+qM!IIrgB(c%0=g>XyR z#i4nGAT2V7Wbs;x%20MAMTgsYI!RK7Mey==lA449d@^MAinw#7MKNaO^;WyWDeWOdQpO%MN&qx>P^g%rAWF50n{CQ zF>#$HW@}jTW==Hv{45OspH6MJ`VegeY`_w)f+2QpBDO5Abp~4$7B1} z?TK8wp475gBo**O(3(y9iDi0xgU(-qI5C1{~ za2Fa=N%W&~B>v)>9;+SVFtX2OWIp_aO}yy$JY!NJhL72c%~89YI_{U_gF#Pe#oV_!l0y;#W{}&mpZu zBJY{-m}-~i-Jp9ai?vHSYnw_(5oAoDWRA4%DP1Rs0XEwc!58>Lyf{zK|=l(qnJEH zQSGt6CzrQK)B{pkV|;^PR}DGf`$LEJZ|p-a8bhG&Bv(lKNK)u;@4aX}%|_Ic_a8mu zl(DbZk#5E)I!8j2)ko4cq5q(La&P@#e#m)N5wI-1c=$`g)qm% kX|FWxoke#3M!r7&7Y(K+)sN$ND*ylh07*qoM6N<$f?27QX8-^I literal 0 HcmV?d00001 diff --git a/data/images/creatures/haywire/left-0.png b/data/images/creatures/haywire/left-0.png new file mode 100644 index 0000000000000000000000000000000000000000..ca50a0167539378d46fcf1ea832efaec8809c20a GIT binary patch literal 3406 zcmV-U4YBfxP)Px#24YJ`L;(K){{a7>y{D4^000SaNLh0L01FcU01FcV0GgZ_00007bV*G`2igK0 z2sSvdb5{KT0013yMObu0Z*6U5Zgc=ca%Ew3Wn>_CX>@2HRA^-&M@dak?_?!z000c7 zNkl@|pL6*r{mti7+9W>j^Cw-#!`gi~(91L5)s~290Myly-f48} zJC46sC&(-ZU^iL4nH~D7^mSTmJ<#*ZT%;? zOOi}&nfxFPJ&(&+#8-(6o6XmMoA~;_!mNcYO&b9aLWsjSpM8-fmR@JE}H+LTfnL!T{QzT6vZT*{Bn`sDJ04mam?VNF?Y|K|_%1t%_1t0wrjtb-Rg0<7A^qIT9cY}!p$Ao6+ zs~5O#M33&LCE7;|`*D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cmV?d00001 diff --git a/data/images/creatures/haywire/left-1.png b/data/images/creatures/haywire/left-1.png new file mode 100644 index 0000000000000000000000000000000000000000..ee83bdc417a0670f8fc9ab2a58518e176ec1955c GIT binary patch literal 3514 zcmV;r4Mp;aP)Px#24YJ`L;(K){{a7>y{D4^000SaNLh0L01FcU01FcV0GgZ_00007bV*G`2igK0 z2saBBxCW{K0013yMObu0Z*6U5Zgc=ca%Ew3Wn>_CX>@2HRA^-&M@dak?_?!z000dU zNklj`D#L(s8)o1P%$zybefHVc_4WhI2r?km zFYWtr@3sEx|E~94>;1nAKF{K%6?y%e>*epyc~}5!fcSn-{A*IIoA5pxYnwkE{h<0+ z`H-UA$~^+e0Z^B5m7IM;lXP}=%HbFNX!elw+*p*Su3jpQw1@_nYPT@-vxrTrKOuz2 zZGcrPcd?x=*4Nfy2;Kl7MT1R@&*EEyQ@OkzKx=*PoH=tojn6gw%V7L+LGnNF7VZIlCBgxS9yF??&6d9L)=!6N4o!k5?Q4IW+i5JS$Aa6%M2YG z>nZk^2z5Z-&2hfE000fpk=*NCEo&hnq>W7_>rgBgNi^;as15ML>fiBm-e3nFdsGiw z*u*xy3AeGvP=A3DjsQ1tyNqEhWr_?o?8IwwczM?{7B61Rf&~lINH|Zre>|(czm}MQ zT_>-`Gw$%91NU#OyVwjzWH?HvUz`x&%mbGGvNmVV94idNxs8pDuN)F|4);FNq1*rB zwllxRDSuLrjQ0T>w_ow&A1&dD?N4&W&1agcCY`4To`YL@ZlJNT@fQ;&O!($Opz~R{ zrt{`I&S*Z@CFsuJXAQ;PfKshWIV{l^_E8FQ#0?&%Uh(Lv$7pYuz{{1TH6U}4`}24x ze0JfTwi;5fTcHNQ+pZ|(BKqAjTkAK|XKkgXss!34)B#?q%G+C3^Fh3}p+>Pf68B;I z#`xJbf1W@9JEe$}ko2I9BuA&(c(Sqrj}Q+B2bW5+NZ9CejD0NY;V zNpw(8D|w1k8DJ+n*-bBbog-`ru$yd_^*w`9iq6hX7A#nxMg;}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$weQ3QeZFLVln`$MbO}v`&O-L=aSof-03tz_Gw1L&&C0 zn?^Q08Oe8XJ7ZCj#GbEFn}H>>(ageP-y-N8EK@saA~j95C=tAZk61CX?SsVZGB<2Y zQs_4vcpMTt9C`wuZc|00UkBD#iQfLe^ypPzsxjf=X=>-wT{NCw#7(D3G}fY23`W|R zK>^-ik-?4=T>2T8VqZk(TZXpRqqBkT4^%ieuT0zL)a&3sez=1dTOZ=Ly+0rdglGS< z#MyHj5O)G2zonvvi7Q3_{vMLGdE)gphplEEywD{dDA6fb*T!q|MK6p5ZG(uyF9|_a v8Bs<>WmLLek3EM30#B&=!eIOVEsOsHy(T*HEH7>w00000NkvXXu0mjfm5M^z literal 0 HcmV?d00001 diff --git a/data/images/creatures/haywire/ticking-1.png b/data/images/creatures/haywire/ticking-1.png new file mode 100644 index 0000000000000000000000000000000000000000..9e7912ad02f2d320c30c7f7a244431a6f69608ec GIT binary patch literal 3493 zcmV;W4O;SvP)Px#24YJ`L;xTFC;(^O3U}B5000SaNLh0L01FcU01FcV0GgZ_00007bV*G`2igK0 z2?Pv%b({_W0013yMObu0Z*6U5Zgc=ca%Ew3Wn>_CX>@2HRA^-&M@dak?_?!z000d9 zNklLA! zCMIUJwW+b1RK-=(bVa*r9qg(LlN3p`s2EVhN7bT;Fb_ar9?YF#=FWZo?(hDd=k$-u zjEsy(wOy;#}HhQ9WSxNZA{{$DQV#sw|xnpR6o$1$D- z-d??W^+TCVX1*A8Dt)k0i`GSmflXLB#kQ9Q87@>}TXF9ES=S=q4Rh2v-ueu}jE$}E z_ycgXXP8`RI&~Gik}VM#L!MfTzHu!iDxmwQB%5wv)7E1E2qDBt=kb>R3;pE>EA_5o zoBsBWT0MVFRG+`t(0pdQa~bb`^NS2$J)24ZDdjyYR;>6C`5(W^a3seP1=zE1nT9DDYMICedM_fQAP96|ytSQy!t zFm6K`Tc|p_gIs0+&zGdqHkVym-nax%tx*7sQWC8-W?W$vl4P@aj7T+OSMhJ|F0%7i z;Pg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wBLg?t}VoKu~LTfFO$)vI@>t!kB?KL$u z?Waxj-mCb0)S#`df{W&@sAbmDB~-Lti7OVMa0peNDpKIP=rBYnN#F$pC6A(AB9qI| zf8-!9JiCLPJF-llHC=!0+p9!XqMlst9nwSld1Lz^Pd{%{KY7aQ_4V~%>Fn$rKBYK2 z(f;9D=Bj}0Gv=BNfApQ}ai^@rAdW$vNSGsZhEZ-Fq9OM7jB_t1lyz5e!`f;Sf+FCX$F?pj_B0Y-A!p78P0+2q}Vuz^@<( z6ZnCF4oy%3Av8*Zk0#JQfh8!F6t3@*&*qsoPcX7WpJ7UF$U0-f_tZoK!R-rI)e%Wd zCKmZoS@LKQMhs;)gKH6~E;-PCI%sDfmbFuCbNtv zI&i6<2U0*3Fb#zvilA*=r-<(rv0a;DA;fdzC>=#c>VO)gk)XLrg5ZMF4*h`6Fr z6_>~EPw-4zJtsaZOSgkpgdhiA_X$}k1noOxyuGEoVBP||1VdI?fDLA0C@aZ32}*t? zo?k_-6u~M=tb!t+4LEpM6KI~9h|`2wf6inoO-Xj~C75&OLfs^2sDZi~sH%l{to-yZ zaLS{4Ai&E(ItN)BQu%VW=PgL(z$!{YKL#R-lyNYk{N|ayacWTrLEI#el1a9Qb=u`= zYAxrRf_-y84|8TiyaH#yYEYX&>jM2}iQa4Wvgby-IF>R74(Z%yy`!{T z9MM8(3da=aasgMz10|&>XEB=EX%d9M8d7NW@qVTRtp!p-BnlN(aA>zWC71sO=m*Rr Tji{!E00000NkvXXu0mjfwl1MQ literal 0 HcmV?d00001 diff --git a/data/images/creatures/haywire/ticking-2.png b/data/images/creatures/haywire/ticking-2.png new file mode 100644 index 0000000000000000000000000000000000000000..e61c8f43f63a6e01ff6ca5dd223857ead7eb274e GIT binary patch literal 3577 zcmVXwP)Px#24YJ`L;xTFC;(^O3U}B5000SaNLh0L01FcU01FcV0GgZ_00007bV*G`2igK0 z2?j6iB#-_80013yMObu0Z*6U5Zgc=ca%Ew3Wn>_CX>@2HRA^-&M@dak?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LYY=z$=JEV|y^PWjz!kn1lK$}a=&jM_(r*$)<0kxG6r^RjLqw!N`h=lE4?^rn5sO0NQXw3ly2&SD zl`JB6XBATIpy+UHL=)ycu^DF?GpeWHDVafB$g$c5N5TL}s@s**!*BhvhUPBp@k_ae87I*=;5riK20m5@AI}xc+ zqQ`X7N?;Qs_`>nXZ1&P)C)!rbRPu+zA4fmpI>hIYBry-3Kb2DWLU z1DZF2T>AxI7E0Lpo&cqD8OGlD8Z!@vL;5O|XE6VH7nr;*?KnuKC%J$(Ht#Fz}K zp$6(}2R`W-q>h8s!2^gNfa^ovf^r4&ec*bKEkdOXCVVl)m6zYZ{AE{@wLa!ouirr-+DFUVMOuS-XwpDL5Q}_}3hy(7 z+|Y}XW9>|8&6+iIc6V|6>bt2JI?S8_=@i6cU>MA4eVHHr>_<$WJdftKclrINPm&Kl zrnH5pG{4}aa4`1K`4dO@1gV<#r8g8hRwyRQuOB}yMGCLylDj8S!7o) zXlw^o;71>RZhG`@R#r);?Rc@}`A+IjsbE%DldP{nh!_l(F^K@2z6yOE2bg<}Nu?*E z^L@!D??n@VuFq9C&z&;P(9d*&XP?;2Yy0l!o$TX8fnviA789q{q0HKYe+~dj3=kKB z+{fLdYRV)s2FJg3ruJ&^p88ygo;`I!qPH&VgpoosKq-M|DWol=)RhPwCDOGT;)vr| j;3#}g(bxW`?c)Ce8M$zZS(CSk00000NkvXXu0mjf&(M7c literal 0 HcmV?d00001 diff --git a/data/images/creatures/haywire/ticking-4.png b/data/images/creatures/haywire/ticking-4.png new file mode 100644 index 0000000000000000000000000000000000000000..a1215f9d3f8ce8b20f70fa867795f0b4b44f17e4 GIT binary patch literal 3439 zcmV-#4UqDQP)Px#24YJ`L;xTFC;(^O3U}B5000SaNLh0L01FcU01FcV0GgZ_00007bV*G`2igK0 z2?QlS#{^;k0013yMObu0Z*6U5Zgc=ca%Ew3Wn>_CX>@2HRA^-&M@dak?_?!z000ce zNklC0qC*yVzl%xCV^P%Z`b0upz;ant`bY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&gX|U_TvLQ0y0os7}QB;X1g=E~| z*h1W~P|8M`04&4MNyJXx&2zDHsrB;K+uQllt$#o!>(_SIZmHd)lwI3cV?YdAha^)r z>9oQMBP=H%G-aZy5K+bR48_cw6G)!W^P{_YR!+Z)dXm%>Xgfd2k#{uJSUp(npr_Q* zkA$ENiaf39y)68)#ggTVshd{jomY1<+#k~Wi->Ao@C(8~r#aQL(Z@}GPI~mb*}8M} zHx{$@flb&XIOM;^w*K`T-s7@&+q-nWR-kaypzA{JeEb^LKG2Cxf^Pp+wjEth`|PxX$I_buN0=x5{OjzxF{KooXDQ4vv&0nyOdqVZg;{%({1v@y!8 zD{Vo6d)y#08j_=qQo2@^G(y944NBn-8pND^oULoMUu$q;P*)EJcbkvp@_$w*g}ult R1=j!o002ovPDHLkV1f^0nJ@qV literal 0 HcmV?d00001 diff --git a/data/images/creatures/haywire/ticking-5.png b/data/images/creatures/haywire/ticking-5.png new file mode 100644 index 0000000000000000000000000000000000000000..ec3abc99c5a56f7654048cf1705741831f2a2b72 GIT binary patch literal 3624 zcmV+@4%hLCP)Px#24YJ`L;xTFC;(^O3U}B5000SaNLh0L01FcU01FcV0GgZ_00007bV*G`2igK0 z2?Y#fZmmxM0013yMObu0Z*6U5Zgc=ca%Ew3Wn>_CX>@2HRA^-&M@dak?_?!z000et zNkleV|mB)X5?|t{ZCp}Bg&$7IL7rbJ;5*v!efH#>CJhnrT5by-zKn7An zYBB?psxV|o!lX#RWE`MK06R7iG7~BU2b;x=!#Z*Bf)`l^d6zB8+TW)8?tZ)HgDl}i zWRzk)OwO0veY@-5|32sRIj0-`H;Hz1s}uj8Q?GvS6$M}bggAp_ijdyf3nactfz%$ zg5fqv(p3(5`bMu}iCWATC?mxlw(>l`Kq-X~0^m%#ldl@4rZ1bUG9wLTkO&&>UFwAc z-%_`49HjWnA|s_oQKX&zZ^eogZeQnm{%!is#dP zEYsyQ`aJB*)w9qaien2!wFFNHideK)b`md-L-#3Q5CVrh?KH72znXkl zq)(xl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d6D(!Sfp2aiC$*TW4~XEgS|Gyy<@IjxY1$SrWVn{7-4c2O^3gHVMSCncXlSyk0wH41 z7oH?uF{I-_0jn)S#~?$7a#AEHBS8Ws6pkn{@u83T{F3F|JZUu=2JOxvp8fbvgwnB` z0>^4k;uj@DCdSA%NE){I0Kc!@5-$IX3g@9?L`C4KlVfKNDOd5qeL){3dWZ`_`^PPm zRTN324NP5Vdo~9OVA_0L8Rlul +// Copyright (C) 2010 Florian Forster +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + +#include "audio/sound_manager.hpp" +#include "badguy/bomb.hpp" +#include "badguy/haywire.hpp" +#include "object/explosion.hpp" +#include "object/player.hpp" +#include "sprite/sprite.hpp" +#include "sprite/sprite_manager.hpp" +#include "supertux/object_factory.hpp" +#include "supertux/sector.hpp" +#include "util/reader.hpp" + +#define TIME_EXPLOSION 5.0 +#define TIME_STUNNED 0.5 + +Haywire::Haywire(const Reader& reader) : + WalkingBadguy(reader, "images/creatures/haywire/haywire.sprite", "left", "right"), + is_exploding(false), + is_stunned(false) +{ + walk_speed = 80; + max_drop_height = 16; + + //Prevent stutter when Tux jumps on Mr Bomb + sound_manager->preload("sounds/explosion.wav"); + + //Check if we need another sprite + if( !reader.get( "sprite", sprite_name ) ){ + return; + } + if( sprite_name == "" ){ + sprite_name = "images/creatures/haywire/haywire.sprite"; + return; + } + //Replace sprite + sprite = sprite_manager->create( sprite_name ); +} + +/* Haywire created by a dispenser always gets default sprite atm.*/ +Haywire::Haywire(const Vector& pos, Direction d) : + WalkingBadguy(pos, d, "images/creatures/haywire/haywire.sprite", "left", "right"), + is_exploding(false), + is_stunned(false) +{ + walk_speed = 80; + max_drop_height = 16; + sound_manager->preload("sounds/explosion.wav"); +} + +HitResponse +Haywire::collision(GameObject& object, const CollisionHit& hit) +{ + return WalkingBadguy::collision(object, hit); +} + +HitResponse +Haywire::collision_player(Player& player, const CollisionHit& hit) +{ + return WalkingBadguy::collision_player(player, hit); +} + +bool +Haywire::collision_squished(GameObject& object) +{ + Player* player = dynamic_cast(&object); + if (player && player->is_invincible()) { + player->bounce (*this); + kill_fall(); + return true; + } + + if (is_stunned) { + player->bounce (*this); + return true; + } + + if (!is_exploding) { + set_action ((dir == LEFT) ? "ticking-left" : "ticking-right", /* loops = */ -1); + walk_left_action = "ticking-left"; + walk_right_action = "ticking-right"; + set_walk_speed (160); + time_until_explosion = TIME_EXPLOSION; + is_exploding = true; + } + + time_stunned = TIME_STUNNED; + is_stunned = true; + + player->bounce (*this); + return true; +} + +void +Haywire::active_update(float elapsed_time) +{ + if (is_exploding) { + if (elapsed_time >= time_until_explosion) { + kill_fall (); + return; + } + else + time_until_explosion -= elapsed_time; + } + + if (is_stunned) { + if (time_stunned > elapsed_time) { + time_stunned -= elapsed_time; + return; + } + else { /* if (time_stunned <= elapsed_time) */ + elapsed_time -= time_stunned; + time_stunned = 0.0; + is_stunned = false; + } + } + + WalkingBadguy::active_update(elapsed_time); +} + +void +Haywire::kill_fall() +{ + if(is_valid()) { + remove_me(); + Explosion* explosion = new Explosion(get_bbox().get_middle()); + Sector::current()->add_object(explosion); + } + + run_dead_script(); +} + +void +Haywire::freeze() +{ + WalkingBadguy::freeze(); + sprite->set_action(dir == LEFT ? "iced-left" : "iced-right"); +} + +bool +Haywire::is_freezable() const +{ + return true; +} + +/* vim: set sw=2 sts=2 et : */ +/* EOF */ diff --git a/src/badguy/haywire.hpp b/src/badguy/haywire.hpp new file mode 100644 index 000000000..7acb3cfe2 --- /dev/null +++ b/src/badguy/haywire.hpp @@ -0,0 +1,50 @@ +// SuperTux +// Copyright (C) 2006 Matthias Braun +// Copyright (C) 2010 Florian Forster +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + +#ifndef HEADER_SUPERTUX_BADGUY_HAYWIRE_HPP +#define HEADER_SUPERTUX_BADGUY_HAYWIRE_HPP + +#include "badguy/walking_badguy.hpp" + +class Haywire : public WalkingBadguy +{ +public: + Haywire(const Reader& reader); + Haywire(const Vector& pos, Direction d); + + void kill_fall(); + HitResponse collision(GameObject& object, const CollisionHit& hit); + HitResponse collision_player(Player& player, const CollisionHit& hit); + + void active_update(float elapsed_time); + + void freeze(); + bool is_freezable() const; + +protected: + bool collision_squished(GameObject& object); + +private: + bool is_exploding; + float time_until_explosion; + bool is_stunned; + float time_stunned; +}; + +#endif /* HEADER_SUPERTUX_BADGUY_HAYWIRE_HPP */ + +/* EOF */ diff --git a/src/supertux/object_factory.cpp b/src/supertux/object_factory.cpp index 669bdf49d..5ee076e93 100644 --- a/src/supertux/object_factory.cpp +++ b/src/supertux/object_factory.cpp @@ -36,6 +36,7 @@ #include "badguy/flame.hpp" #include "badguy/flyingsnowball.hpp" #include "badguy/ghosttree.hpp" +#include "badguy/haywire.hpp" #include "badguy/igel.hpp" #include "badguy/jumpy.hpp" #include "badguy/kamikazesnowball.hpp" @@ -182,6 +183,7 @@ ObjectFactory::init_factories() add_factory("flame"); add_factory("flyingsnowball"); add_factory("ghosttree"); + add_factory("haywire"); add_factory("igel"); add_factory("jumpy"); add_factory("kamikazesnowball"); -- 2.11.0