I recently modified the NES101 tutorial by Michael Martin, and put in some of my own custom sprite and background graphics. I modified it so you can move around a hard coded meta sprite (2x8 tiles) with the cross bar.
The other day, I translated the p65 version to nesasm. After a bit of trial and error, I got it to the point it is now---it displays my hard coded meta sprite just fine, but the background tiles won't show up. As far as I can tell, the nesasm code is identical to the p65 code. I have no idea what could be going wrong.
I'm sure I'll get it eventually but if anyone has some advice it would be greatly appreciated. Or if you want to see the code let me know.
What could cause my background to not show up at all?
Moderator: Moderators
- GradualGames
- Posts: 1106
- Joined: Sun Nov 09, 2008 9:18 pm
- Location: Pennsylvania, USA
- Contact:
-
Celius
- Posts: 2159
- Joined: Sun Jun 05, 2005 2:04 pm
- Location: Minneapolis, Minnesota, United States
- Contact:
If you open FCEUXD or any emulator with a name table viewer, check if the tiles are on the name table. If they are, then it's either that the scroll isn't set correctly or that you forgot to enable the background in $2001. If they aren't on the name table, there's a problem when you try and write to the name table. Hope this helps.
- GradualGames
- Posts: 1106
- Joined: Sun Nov 09, 2008 9:18 pm
- Location: Pennsylvania, USA
- Contact:
can see nametable, only something is still wrong
Thanks for the advice.
I've verified using FCEUXD that I was writing to the nametable incorrectly. The nametable now shows up, but something is still wrong.
It appears the nametable is being loaded at an incorrect offset. It looks as though the load nametable routine is starting "somewhere in the middle" of my nametable, and loading from then on. The odd thing is, the p65 version does not have this problem.
I've verified using FCEUXD that I was writing to the nametable incorrectly. The nametable now shows up, but something is still wrong.
It appears the nametable is being loaded at an incorrect offset. It looks as though the load nametable routine is starting "somewhere in the middle" of my nametable, and loading from then on. The odd thing is, the p65 version does not have this problem.
- GradualGames
- Posts: 1106
- Joined: Sun Nov 09, 2008 9:18 pm
- Location: Pennsylvania, USA
- Contact: