Hello again everybody,
After a long time i decided to work on my pong game again. The game is coming together nicely, But i could use some help.
Controls, sprites and collision dectection are al working fine but i got some trouble with the backgrounds/ gamemodes.
I want to switch backgrounds and gamemodes.( PUSH START on the StateTitle to go To the StatePlaying )
I'm following the Nerdy Nights tutorials so i'm using the 3 gamestates StateTitle, StatePlaying and State Gameover.
So i wrote this newbie code. When you push the start button you immediately turn off the screen and disable NMIs, draw the screen and then turn the screen on again when you are finished. it's turning the screen off in the middle of drawing. ( $2000 & $2001 ) It kinda works funny enough but this is not the way to go.
I read the NMI document from disch and it confirms i'm a newbie
To solve this problem i have to use varibles for $2000 and $2001 and use a waitframe. I kinda understand this i think. It's like using the Ram for the sprites i think.
But then the exsample shows another NMI exsample. So i read some more about NMI and another way to use it with a handle and then i see a better way to get your backgrounds in your code etc.etc.
In other words information overload !!
I just want to finish my pong game and after that i want to edit sound and experiment with multiballs and other stuff.
So could 1 of you push me on track again ?
What is the best way for a newbie to use the Vblank to switch game modes and backgrounds for simple 2 or 3 screen games ?
After a long time i decided to work on my pong game again. The game is coming together nicely, But i could use some help.
Controls, sprites and collision dectection are al working fine but i got some trouble with the backgrounds/ gamemodes.
I want to switch backgrounds and gamemodes.( PUSH START on the StateTitle to go To the StatePlaying )
I'm following the Nerdy Nights tutorials so i'm using the 3 gamestates StateTitle, StatePlaying and State Gameover.
So i wrote this newbie code. When you push the start button you immediately turn off the screen and disable NMIs, draw the screen and then turn the screen on again when you are finished. it's turning the screen off in the middle of drawing. ( $2000 & $2001 ) It kinda works funny enough but this is not the way to go.
I read the NMI document from disch and it confirms i'm a newbie
To solve this problem i have to use varibles for $2000 and $2001 and use a waitframe. I kinda understand this i think. It's like using the Ram for the sprites i think.
But then the exsample shows another NMI exsample. So i read some more about NMI and another way to use it with a handle and then i see a better way to get your backgrounds in your code etc.etc.
In other words information overload !!
I just want to finish my pong game and after that i want to edit sound and experiment with multiballs and other stuff.
So could 1 of you push me on track again ?
What is the best way for a newbie to use the Vblank to switch game modes and backgrounds for simple 2 or 3 screen games ?