2D beat and up algorithm??
BlitzMax Forums/BlitzMax Programming/2D beat and up algorithm??
| ||
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!!!! |
| ||
Draw them back to front. Either keep them sorted or sort them before drawing. |
| ||
Thank's |
| ||
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. ;) |