Thursday, December 17, 2015

A Fighting Game in Javascript - What is different here?

I found a few results in Google from other developers trying to create fighting games in Javascript. So, what's different here?

There are similarities. For example, the usage of sprites. Don't be fooled, I am going to use "sprites" too. The difference is that in my case a sprite will be a 3D object frozen in a pose instead of an image file. Another difference is that the transition between those "sprites" will be smoothed out instead of a flat change.


This is how many real 3D games work, actually. It's mostly noticed in games that were previously in 2D, then converted to 3D, for example, Street Fighter IV and the brand new The King of Fighters XIV for PS2... I mean, PS4. Sprites from the old version are converted to poses in a 3D model, then put on a timeline (like sprites) for animation. The change between poses can be tweaked with tweens, formulas that provide things like acceleration and bouncing effects, adding to realism.

I haven't yet started working with Animation. At first, it will either be totally awesome or a complete disaster. ;-) We will see.

No comments:

Post a Comment