Jump to content



2

scroll jumping and score weirdness


7 replies to this topic

#1 tschak909 OFFLINE  

tschak909

    Chopper Commander

  • 159 posts
  • Location:USA

Posted Sun Mar 11, 2007 12:57 AM

So far the kernel seems to be coming along very nicely, I was finally able to implement a smooth scrolling algorithm by unrolling everything.... but I have some other problems that have come up:

* The first digit for the score is garbled, not sure why.. it's looking like a mangled pointer somehow....
* The scroll completes, then starts at the very beginning again. I suspect this is because i am updating state during overscan.. do I need to move the bounds enforcement (basically the AND), in-kernel?

I am pasting source and a screenshot.. but I'm showing some progress!

salmonrun_06.png

and the current code:
Attached File  salmonrun_070311.zip   36.88K   50 downloads

Until next time!

-Thom

#2 SeaGtGruff OFFLINE  

SeaGtGruff

    River Patroller

  • 4,543 posts
  • Location:Georgia, USA

Posted Sun Mar 11, 2007 1:42 AM

View Posttschak909, on Sun Mar 11, 2007 2:57 AM, said:

* The first digit for the score is garbled, not sure why.. it's looking like a mangled pointer somehow....
Yes, this is where it gets mangled:
SCOREPTR5		= $CC; ...
SCANCOUNTER3		= $CD; and another counter...
The one-byte counter SCANCOUNTER3 is overlapping the two-byte pointer SCOREPTR5.

Michael

#3 SeaGtGruff OFFLINE  

SeaGtGruff

    River Patroller

  • 4,543 posts
  • Location:Georgia, USA

Posted Sun Mar 11, 2007 1:59 AM

This is also looks wrong:

PF1DATA			= $81; 32 bytes of PF1.
PF2DATA			= $A0; 32 bytes of PF2.
SCANCOUNTER		= $C0; a scanline counter.
If PF1DATA is supposed to be 32 bytes, then PF2DATA should start at $A1, and SCANCOUNTER should start at $C1, with everything after that getting shifted 1 byte as well.

Michael

#4 tschak909 OFFLINE  

tschak909

    Chopper Commander

  • 159 posts
  • Location:USA

Posted Sun Mar 11, 2007 2:49 AM

ahhh! thanks, yeah.. that would do it! :-D

#5 Andrew Davie OFFLINE  

Andrew Davie

    Stargunner

  • 1,314 posts
  • Location:Tasmania

Posted Sun Mar 11, 2007 4:06 AM

View Posttschak909, on Sun Mar 11, 2007 5:57 PM, said:

So far the kernel seems to be coming along very nicely, I was finally able to implement a smooth scrolling algorithm by unrolling everything.... but I have some other problems that have come up:

* The first digit for the score is garbled, not sure why.. it's looking like a mangled pointer somehow....
* The scroll completes, then starts at the very beginning again. I suspect this is because i am updating state during overscan.. do I need to move the bounds enforcement (basically the AND), in-kernel?

I am pasting source and a screenshot.. but I'm showing some progress!

Attachment attachment

and the current code:
Attachment attachment

Until next time!

-Thom

To avoid this sort of variable clashing, I suggest you try the following...


				SEG.U variables
				ORG $80

; define your variables here
; this is an uninitialised segment -- the assembler will calculate addresses, but create no actual data in the binary

; examples...
GAME_STATUS		ds 1		 ; 1 byte for this var!
PF1DATA			ds 32	   ; 32 for this one
PF2DATA			ds 32	   ; and this

; this allows you to insert/remove variables at will, and resize, without having to recalculate!
; in other words, let the assembler calculate the locations of stuff, you just state how big they are!
  
			SEG code
			ORG $F000

 ; rest of your program here



#6 SeaGtGruff OFFLINE  

SeaGtGruff

    River Patroller

  • 4,543 posts
  • Location:Georgia, USA

Posted Sun Mar 11, 2007 11:21 AM

Excellent idea, Andrew! I need to start doing that, too.

Michael

#7 gambler172 OFFLINE  

gambler172

    River Patroller

  • 2,060 posts
  • none
  • Location:germany

Posted Sun Mar 11, 2007 11:35 AM

Hi Thom
The old Salmon Run on the VCS?
Greeaatt :)
Cannot wait to see a playable bin.
greetings gambler172

#8 tschak909 OFFLINE  

tschak909

    Chopper Commander

  • 159 posts
  • Location:USA

Posted Sun Mar 11, 2007 3:33 PM

Yes indeed, i was always a huge fan of that game (and ALL of Bill Williams' stuff!), and I want to do a solid port (I think we can even improve on the graphics a bit since it is very vertically oriented!)

I'm progressing very quickly on this, quite amazing considering this is my first game attempt on the VCS!




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users