Jump to content
  • entries
    10
  • comments
    7
  • views
    4,634

More Demos and Movement


arwanderer

302 views

On Sunday evening, I worked through the NUSIZx and Missile demos and finally the playfield on Tuesday before moving on to Chapter 3: Movement.

 

nusiz demo.jpg

missiles demo.jpg

pfdemo.jpg

I didn't have too much difficulty with the last demos in the graphics chapter and only had a few errors to correct each time before the program compiled correctly.  In Chapter 3, however, I am having some issues.  The ship sprite is not positioned correctly and, when it moves, it messes up the screen.  I've compared my code to the original several times, but still haven't pinpointed the exact problem.

movementdemo.jpg.d460f72c19cf2f3ecdcd73c6f45acd62.jpg

 

UPDATE+++

 

After having another look at the code, I discovered that, ONCE AGAIN, I had typed "LDA" where an "LDX" should have been!  Here's what the fixed code looks like and where the problem was:

 

    LDA XPOS
    LDX #0
    JSR x_position
   
    LDA XPOS2
    LDX #1
    JSR x_position
 
I'll have to pay more attention to this.  After making the changes, the program compiled and ran properly and smoothly on the emulator without issue.  Chapter 3 is complete, but I'm going to re-read it before moving onto Chapter 4: The Sound of Fun.

image.thumb.png.f7de43707f5eac1c94f12d472200c04f.png

 

Edited by arwanderer

2 Comments


Recommended Comments

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...