Skip navigation
NintendoAge
Welcome, Guest! Please Login or Join
Loading...

Parallax scrolling on the NES The easy way :)

Nov 28, 2014 at 5:57:11 PM
Vectrex28 (129)
avatar
(CD-i Kraid) < Master Higgins >
Posts: 7781 - Joined: 07/28/2012
Japan
Profile
Before looking at this, you have to know how to properly use Sprite Zero, otherwise you probably won't understand much. Check out Bunnyboy's Advanced Nerdy Nights tutorials if you need help on this. You should have completed the regular NN too

So I made a little parallax scrolling demo since I had some free time and someone asked a question about it.
Nothing spectacular really, it's just about having a sprite zero hit (My sprite zero is under the "P" in Parallax) and then doing multiple delayed loops for each scrolng background. Also, you can modify the PPU registers in each scrolling background part. Try to put

  LDA #%10011110   ; Intensify blues, Enable sprites, enable background, no clipping on left side
  STA $2001

before

  LDA scroll+3 ;Scroll the first sea row
  STA $2005
  LDA #$00 ;No vertical scrolling for today - It involves $2006, and he called it quits
  STA $2005

and then

  LDA #%00011110 ; Enable sprites, enable background, no clipping on left side
  STA $2001

before

  LDA scroll+6 ;Finally, scroll the planks - all done
  STA $2005
  LDA #$00 ;No vertical scrolling for today - It involves $2006, and he called it quits
  STA $2005

It shows that sprite zero isn't only for scrolling - This makes the sea bluer (Remember the first NN tutorial with $2001). It can also make a neat transparency effect - check out the flood in Noah's Ark for the NES

Long story short, here's the demo. Disregard my silly copyright, it's a public domain demo, feel free to tinker with it / distribute it as much as you want.


-------------------------
"Energy Tanks, Missiles, Power Bombs... You want it? It's yours my friend! As long as you have enough credits!"



Edited: 11/28/2014 at 06:00 PM by Vectrex28

Nov 28, 2014 at 9:59:36 PM
MadnessVX (1)
avatar
< Tourian Tourist >
Posts: 40 - Joined: 07/12/2013
Texas
Profile
Thanks for sharing this! Definitely going to check this out tonight.

Nov 28, 2014 at 10:20:50 PM
KHAN Games (89)
avatar
(Kevin Hanley) < Master Higgins >
Posts: 8081 - Joined: 06/21/2007
Florida
Profile
Great job other than spelling parallax wrong in the demo, you goober.

-------------------------

gauauu: look, we all paid $10K at some point in our lives for the privilege of hanging out with Kevin


Nov 29, 2014 at 4:13:26 AM
Vectrex28 (129)
avatar
(CD-i Kraid) < Master Higgins >
Posts: 7781 - Joined: 07/28/2012
Japan
Profile
Originally posted by: KHAN Games

Great job other than spelling parallax wrong in the demo, you goober.


Oopsidoodle. This makes it look like on of those engrish translations XD

-------------------------
"Energy Tanks, Missiles, Power Bombs... You want it? It's yours my friend! As long as you have enough credits!"


Jan 19, 2015 at 4:57:58 AM
user (6)

< El Ripper >
Posts: 1462 - Joined: 05/30/2014
Profile
Originally posted by: Vectrex280996

Long story short, here's the demo.

Looks really good for just a demo.
With few little corrections, it would be good enough to be an original starting screen for a game!