EmpireIndustries wrote:
Done with my program! It's a jousting game with knights.
Hey, great first attempt!
I took a peek at your source code and made an observation. I see that all of your SPOFS statements appear to be hard coded. It looks like your are moving 2 pixels at a time. Here is a way to make this type of thing more manageable. I will use your sprite #2 for this example:
LOCX = 174
@MOVELOOP
SPOFS 2,LOCX,82
LOCX = LOCX - 2
IF LOCX < 96 GOTO @EXITLOOP
VSYNC1
GOTO @MOVELOOP
@EXITLOOP
'All done moving this knight. Move on to next task
By doing this, you can cut down on all of those @LABEL's and GOSUB calls. You can experiment with putting your collision detection code within this movement loop as well.
Keep up your work, and each revision will get better and better!










