Super Pillow Fighter 2D- New 2d Fighter

What the…??

Is this JAVA?? And on a cell ph.?? :wonder:

‘Cause if it is something produced from the latest Java version, then I’ll be pretty impressed. I’m used to them looking like ColecoVision graphics or like early, early 8-bit NES games, & not like these at all (especially when we’re talkin’ bout cell ph. games). :pleased: These look more closer to Sega Genesis graphics or maybe even SNES. :wow:

They had a launch party for a cell phone game?? A cell phone game?? Wow. :looney:

Where are the stages set in pink girls rooms, saunas, locker rooms, etc.?

Dan, I’d be interested to know what sort of jump physics you used? Did you just use a standard physics equation and plug in velocity/acceleration variables?

Yeah, that’s pretty much it. Every character in the game has a 2d vector that holds the x/y position, and a 2d vector that holds the x/y velocity. Every frame, the y component of the velocity is adjusted by the time delta since the last frame multiplied by -9.8 (gravity).

velocity.y += TimeDelta * Gravity

Then another vector is created that holds the velocity multiplied by the time since last frame, which gives you the x/y distance that was travelled in the last frame. That vector is added to the position.

Vector2D distance = velocity * TimeDelta
position += distance

So to make the character jump, you set velocity.y to something like 10. The character will shoot up in the air. Since gravity is a negative number, as time goes by the velocity gets smaller and then goes negative. So you get a nice arc.

Also, I only multiply those numbers by the time delta because my game has a variable frame rate and speed. So it doesn’t matter if the game is running at 10 fps or 100 fps, the characters move at the same speed. If a game has a fixed framerrate at like 60 fps, you could probably skip that step.

Okay, I did a huge write up on all the tools and how to use them. You can grab the whole set and make your own characters or boards. The full version of SPF2D isn’t out yet because I’m waiting on some sound effects and music, but you can use the toolset on the demo.

You can download the toolset from: SPF2D Downloads

If you download it and try it out, let me know what you think or if you have any problems\questions.