From 7587665a056d83fb26f6ffc7f3a3039d1a23e14e Mon Sep 17 00:00:00 2001 From: LMH Date: Sun, 28 Jul 2013 10:11:31 -1000 Subject: [PATCH] Animated eyes of icecrusher to follow Tux --- data/images/creatures/icecrusher/iceblock.xcf | Bin 0 -> 18761 bytes .../creatures/icecrusher/iceblock_lefteye.png | Bin 0 -> 258 bytes data/images/creatures/icecrusher/iceblock_main.png | Bin 0 -> 9678 bytes .../creatures/icecrusher/iceblock_righteye.png | Bin 0 -> 258 bytes .../creatures/icecrusher/iceblock_whites.png | Bin 0 -> 522 bytes data/images/creatures/icecrusher/icecrusher.sprite | 19 ++++++- src/object/icecrusher.cpp | 61 ++++++++++++++++++++- src/object/icecrusher.hpp | 6 ++ 8 files changed, 82 insertions(+), 4 deletions(-) create mode 100644 data/images/creatures/icecrusher/iceblock.xcf create mode 100644 data/images/creatures/icecrusher/iceblock_lefteye.png create mode 100644 data/images/creatures/icecrusher/iceblock_main.png create mode 100644 data/images/creatures/icecrusher/iceblock_righteye.png create mode 100644 data/images/creatures/icecrusher/iceblock_whites.png diff --git a/data/images/creatures/icecrusher/iceblock.xcf b/data/images/creatures/icecrusher/iceblock.xcf new file mode 100644 index 0000000000000000000000000000000000000000..2183ca2601f5beea79445a47871e974cac0c708e GIT binary patch literal 18761 zcmd_S30PEDwl-X+&_ttA)1A&ucgIdTN!x8llQza^;yh2_Jb*I_D1#`IBZ!D|64YoM zP(ejRQD#t}3MhtRD#j{`n&%m6pk`|R);?f5x!w2s|L6Pf^F8-@{?b!tueJBP_d072 zwbt7Eus{6Z;g62(3;QT6JSvm`pUrS>KneJ~0~dzD*Kgq(wdm@Id+37nyKs$wYX)5J z4X07L-$D89aDRJ0R6BLwp@RoQqvL@lpv>Pajtvct4-NU~Xn6dAkCv|tSch^Z;6=j^ z2Ja7@x<58N1o5CWM)+G?{PC#JkKztRg@;Uj>u+KE_Z^Bl6#LQN@Y~eb{dN?&GC=qK8|dr&kN)cff*y-I9K0_)djCh$Ubh9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~2JO#I>hw=EmqUIm99WEPLdB7?&XtKKGjMsWWwx*GPH-PO^* zBTOQAzQ}+LZBND*Xevy&2|M1Nn-d5h5@^ zE1i5s_*bnZ6TkoOGJD2v42=ri7ax8o`lEp0IDF2$o?NdddNRzF|2KcCW*n45ShN^` zfeqn*{PQk+zh)0{2rC?rcs*aC_)7RwM=R$JXAbjMP6ZzP&7GAq;DY57H)VWaWBb6s O^MM`h1J=*>^Zx?;wkY`k literal 0 HcmV?d00001 diff --git a/data/images/creatures/icecrusher/iceblock_lefteye.png b/data/images/creatures/icecrusher/iceblock_lefteye.png new file mode 100644 index 0000000000000000000000000000000000000000..017978fb29fef5dd11b4f909e92d26d91ea09bb2 GIT binary patch literal 258 zcmeAS@N?(olHy`uVBq!ia0vp^p+FqO!3HE%Kg@Upq}Y|gW!U_%O?XxI14-? ziy0WWg+Z8+Vb&Z8pdfpRr>`sfU3N)PE7eX`u8%+=+02lL66gHf+|;}hAeVu`xhOTU zBsE2$JhLQ2!QIn0AVn{g9VnjW>EaktaqI0>L#_q`0oQ~5>1R8)f6~d^veBf~O(2zR zn!~COUA|0UGhoDrDbtor`tmqu(i!%WFU8GbZ8()Nlj2>E@cM*03ZNKL_t(|+U=ZqlwU`6 z=RZ~Tw%^*DTHV@rS+*A2vcbk+VjFM7fK7}rNhX;Ak_=%xSqVcX0p=tjCkr@XSOQGI z31GrDX0@>mSOIKfY#H0KEL*ZbkeC;}AF`p!rHPXGTXh%4Uo zM+%4l{hg2gUF-jfP%r=OKPX#kzEleRt2eG##(~iZ5*1*x49{0IW~WIS4U`{}r3qOa zBb3CXDb^Zv5~oIIQfC^IrP>&sVUgAv4JfSj^7#qC0y4j~nfIDShz!s|NQJ;isXXcV zN_h&YJfnip7eXR^AFB;s7~=T>I*kd6MT(U!vQ#5Hk3c7^9q8q$p<(KAdZ!Tb#_xXo z{k8uiLcQ{L{&0~o`uM8lOZfF)zM3uT*HDN;0;Mq4VvI#f;ePU4*!c20!MiBn1UA8jq3kQ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!QIn0AVn{g9VnjW>EaktaqI0>L%s$D0oQ}_=TCKR|D7y$E}h@&xk>KJj)+5gD?G1EdbZQ9^Va^Fm2aPZ{yw{S&&s-b em}&-w2l{O7LW+}fd|zvV1U+5-T-G@yGywp_NKPUE literal 0 HcmV?d00001 diff --git a/data/images/creatures/icecrusher/iceblock_whites.png b/data/images/creatures/icecrusher/iceblock_whites.png new file mode 100644 index 0000000000000000000000000000000000000000..c7b1fd038223da30c06dd301a2e052c5b1257e12 GIT binary patch literal 522 zcmeAS@N?(olHy`uVBq!ia0vp^p+FqO!3HE%Kg@Upq}Y|gW!U_%O?XxI14-? ziy0WWg+Z8+Vb&Z8pdfpRr>`sfU3N)PYsvkE?&d%t+02lL66gHf+|;}hAeVu`xhOTU zBsE2$JhLQ2!QIn0AVn{goq>Td&(p;*q~g}wTZVp2juLGT^S5j=nAmjaS{QF@loX%i zA=w2RmOmAkBGb?&Jwd>GYmhXTbyDZWLtggW=5Y;Ytp0zpGrj3^?`~vTSvV8eA_#F{ ze#oVS9C@!@(@GRyhFt1glI*GL$$s^`oocSiUazW&UvyqNUdr`)*&O^!dQ!daogU1uDNu%4Ew#)HXkM}zh!Y}YS!R{00h z?)RJh-OaeDY_aeE-X)jHjq){@hAmkUZ~8|t@3r;PE%KSa_Os9U7kO-k@hdHdE1_Ff zoMs4|esR$`CYQObT~WHLp0l#geID^+^Y{K8-`BI*>KME*2)}UagN + #include "audio/sound_manager.hpp" #include "badguy/badguy.hpp" -//#include "math/random_generator.hpp" #include "object/camera.hpp" #include "object/particles.hpp" #include "object/player.hpp" #include "sprite/sprite.hpp" +#include "sprite/sprite_manager.hpp" #include "supertux/object_factory.hpp" #include "supertux/sector.hpp" @@ -38,11 +40,14 @@ const float PAUSE_TIME_LARGE = 1.0; } IceCrusher::IceCrusher(const Reader& reader) : - MovingSprite(reader, "images/creatures/icecrusher/icecrusher.sprite", LAYER_OBJECTS, COLGROUP_STATIC), + MovingSprite(reader, "images/creatures/icecrusher/icecrusher.sprite", LAYER_OBJECTS, COLGROUP_STATIC), state(IDLE), start_position(), physic(), cooldown_timer(0.0), + lefteye(), + righteye(), + whites(), ic_size(NORMAL) { // TODO: icecrusher hitting deserves its own sounds- @@ -55,6 +60,13 @@ IceCrusher::IceCrusher(const Reader& reader) : float sprite_width = sprite->get_width (); if (sprite_width >= 128.0) ic_size = LARGE; + + lefteye = sprite_manager->create(sprite_name); + lefteye->set_action("lefteye"); + righteye = sprite_manager->create(sprite_name); + righteye->set_action("righteye"); + whites = sprite_manager->create(sprite_name); + whites->set_action("whites"); } /* @@ -221,6 +233,23 @@ IceCrusher::update(float elapsed_time) } } +void +IceCrusher::draw(DrawingContext& context) +{ + context.push_target(); + context.set_target(DrawingContext::NORMAL); + sprite->draw(context, get_pos(), layer); + if(!(state == CRUSHING)) // Remove if eyes are to be animated during crushing + { + // draw icecrusher's eyes slightly behind + lefteye->draw(context, get_pos()+eye_position(false), layer-1); + righteye->draw(context, get_pos()+eye_position(true), layer-1); + // draw the whites of icecrusher's eyes even further behind + whites->draw(context, get_pos(), layer-2); + } + context.pop_target(); +} + bool IceCrusher::found_victim() { @@ -237,4 +266,32 @@ IceCrusher::found_victim() return false; } +Vector +IceCrusher::eye_position(bool right) +{ + if(!(state == CRUSHING)) + { + Player* player = Sector::current()->get_nearest_player (this->get_bbox ()); + if(player) + { + // Icecrusher focuses on approximate position of player's head + const float player_focus_x = (player->get_bbox().p2.x + player->get_bbox().p1.x) * 0.5; + const float player_focus_y = player->get_bbox().p2.y * 0.25 + player->get_bbox().p1.y * 0.75; + // Icecrusher's approximate origin of line-of-sight + const float crusher_origin_x = (get_bbox().p2.x + get_bbox().p1.x) * 0.5; + const float crusher_origin_y = (get_bbox().p2.y + get_bbox().p1.y) * 0.5; + // Line-of-sight displacement from icecrusher to player + const float displacement_x = player_focus_x - crusher_origin_x; + const float displacement_y = player_focus_y - crusher_origin_y; + const float displacement_mag = pow(pow(displacement_x, 2.0) + pow(displacement_y, 2.0), 0.5); + // Determine weighting for eye displacement along x given icecrusher eye shape + int weight = ((displacement_x > 0) == right) ? 1 : 4; + + return Vector(displacement_x/displacement_mag * weight, displacement_y/displacement_mag * 2 - 2); + } + } + + return Vector(0,0); +} + /* EOF */ diff --git a/src/object/icecrusher.hpp b/src/object/icecrusher.hpp index 224ee79ab..1b3844873 100644 --- a/src/object/icecrusher.hpp +++ b/src/object/icecrusher.hpp @@ -34,6 +34,7 @@ public: virtual HitResponse collision(GameObject& other, const CollisionHit& hit); virtual void collision_solid(const CollisionHit& hit); virtual void update(float elapsed_time); + virtual void draw(DrawingContext& context); #if 0 const Vector& get_speed() const @@ -56,6 +57,11 @@ protected: Player* get_nearest_player(); bool found_victim(); void set_state(IceCrusherState state, bool force = false); + Vector eye_position(bool right); + + SpritePtr lefteye; + SpritePtr righteye; + SpritePtr whites; private: enum IceCrusherSize { -- 2.11.0