From: Peter Todd Subject: Re: Explosion Forces To: pingus-devel@lists.deus.net Date: Mon, 15 Nov 1999 19:32:42 -0500 Reply-To: retep@penguinpowered.com Resent-From: pingus-devel@lists.deus.net > > I fixed the problem and changed things a bit. I removed the y_pos > > -= and changed the jump speed to jump up and to the left. > > I fixed the thing again, the Pingus are now jumping in the correct > direction (makes quite fun to let the Pingus jump around ;-). The > forces are really cool for that kind of stuff, I'll try to implement a > catapult trap in the next days. Cool! > > Explosions are broken. I'll have to take a good look at that. > > Ok. Fixed the explosions. I was making the pingu go straight down into the ground. A simple - sign fixed things. Now the pingu get blown away from the explosion.? pingus/data/images/themes Index: pingus/src/FVec.cc =================================================================== RCS file: /home/mbn/public_cvsroot/pingus/src/FVec.cc,v retrieving revision 1.3 diff -u -r1.3 FVec.cc --- FVec.cc 1999/11/13 20:51:29 1.3 +++ FVec.cc 1999/11/16 00:30:20 @@ -54,9 +54,10 @@ tmpv.x -= imod; dist = abs(p.y - ip.y); - imod = iinten * ((isize - dist) / isize); + imod = -(iinten * ((isize - dist) / isize)); // cout << " y = " << imod << "\n"; + if (p.y > ip.y) tmpv.y += imod;