It is currently Fri Oct 20, 2017 8:23 pm

All times are UTC - 7 hours





Post new topic Reply to topic  [ 6 posts ] 
Author Message
PostPosted: Sat Jun 20, 2015 2:21 pm 
Offline

Joined: Wed Jun 10, 2015 8:20 pm
Posts: 4
Hey everyone, like everyone and their dog here :D I'm working on writing my own NES emulator using Haxe. Mostly it's working quite well, except for a handful of games with strange graphical glitches that I haven't been able to figure out. Such as Galaxian:

Image

After pressing "start", the game "begins" but you can't really tell right away - the controller moves the block of text at the bottom side to side (from "1 player" down to "all rights reserved") as if it were your ship, shots come from the "Y" in "2 players", and the enemies look like a garbled mess until they fly out of formation.

Not a bad ROM, because it works in every other emulator I've tried it in.

I'm at my wit's end trying to figure out what could be causing this, especially since no other games that I've tested have any similar problems. Anyone have an idea what could be going on?


Top
 Profile  
 
PostPosted: Sat Jun 20, 2015 3:18 pm 
Offline
User avatar

Joined: Sun Jan 22, 2012 12:03 pm
Posts: 5728
Location: Canada
I know Galaxian was one of the few games with an 8k PRG-ROM.

An iNES file should have the PRG-ROM doubled, I think, since the minimum spec is 16k, but how big is your file?


Top
 Profile  
 
PostPosted: Sat Jun 20, 2015 8:25 pm 
Online
User avatar

Joined: Fri Nov 19, 2004 7:35 pm
Posts: 3943
Sounds like a mirroring/scrolling issue.

_________________
Here come the fortune cookies! Here come the fortune cookies! They're wearing paper hats!


Top
 Profile  
 
PostPosted: Sat Jun 20, 2015 11:09 pm 
Offline

Joined: Wed Jun 10, 2015 8:20 pm
Posts: 4
You're right, it was an issue with my Y increment. I re-implemented exactly as specified in the wiki: http://wiki.nesdev.com/w/index.php/PPU_ ... ing_around and the problem was solved. Thanks!


Top
 Profile  
 
PostPosted: Wed Jun 24, 2015 6:11 pm 
Offline

Joined: Thu Aug 12, 2010 3:43 am
Posts: 1589
So the player is not a sprite? o.O Weird, since the player isn't in an area likely to cause overflow...


Top
 Profile  
 
PostPosted: Wed Jun 24, 2015 6:21 pm 
Offline

Joined: Sun Apr 13, 2008 11:12 am
Posts: 6289
Location: Seattle
Nope. The first 28 sprites are used for 7 opponents out of formation, the next 4 are for enemy explosions, the next 8 are all the bullets, and the last 24 are the background starfield.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 7 hours


Who is online

Users browsing this forum: AWJ, Google [Bot] and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group