2D beat and up algorithm??

BlitzMax Forums/BlitzMax Programming/2D beat and up algorithm??

Joestick(Posted 2009) [#1]
Hi, any body have a idea where i start!!

The question is:
what´s the best way to order Z axis of each sprit on screen!!?

Thank's!!!!


TaskMaster(Posted 2009) [#2]
Draw them back to front. Either keep them sorted or sort them before drawing.


Joestick(Posted 2009) [#3]
Thank's


MGE(Posted 2009) [#4]
Streets of rage, Double Dragon, etc, are actually some of the easiest games to code. A simple sort render routine based on y location combined with a simple {if dist of 2 sprites are close enough} then compare frames to determine action. (hit, block, etc.) Throw in code for a few picksups, weapons, baddies, etc, boom....nothing but level editing from that point on. ;)