Jump to content
  • entries
    10
  • comments
    7
  • views
    5,690

Adding Players


arwanderer

275 views

After displaying the ball, the next section of the book covers player sprites, but no movement yet.  Since each demo builds upon the previous one, typing the code has become easier and some of the instruction sets are starting to make sense to me instead of just appearing to be a random set of three letters.  I'd recommend that anyone doing this for the first time type up each program from beginning to end instead of just copy/pasting work from the previous one.  This has helped me quite a bit.

 

After finishing the program, I compiled it, then ran it in Stella and got this:

 

#$91.jpg

Well, that wasn't quite what I wanted as the top part of the screen was supposed to be blue and the bottom half a sand color...and equally divided.  For about 10 minutes, I meticulously compared my code to the example in the book and couldn't figure out what I had done incorrectly.  After a few more times of looking things over, I noticed that I typed "LDX #$91" instead of "LDX #91" near the end of the program.  After correcting this, it displayed properly.

 

players demo.jpg

Edited by arwanderer

  • Like 1

0 Comments


Recommended Comments

There are no comments to display.

Guest
Add a comment...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...