MAMEWorld >> Programming
View all threads Index   Threaded Mode Threaded  

Pages: 1

Ocuatrec
MAME Fan
Reged: 06/22/16
Posts: 1
Send PM


Collecting Info from PacMan
#355886 - 06/22/16 01:16 PM


Hey,
I've been working of a project in which I need to extract quite a lot of info from my PacMan current game. I've already been messing around with PacMan ROM and RAM maps but I haven't been able to discover how to get the info for the current level I'm playing (walls, dots). Is there any specific place I can look into to get this kind of info?

I'm using the PacMan (Midway) version.

All and any help is welcome.



Stolistic
MAME Fan
Reged: 10/07/07
Posts: 28
Send PM


Re: Collecting Info from PacMan new [Re: Ocuatrec]
#355887 - 06/22/16 04:32 PM


You could start by looking at a commented version of the source code:

https://web.archive.org/web/200902270830.../PacmanASM.html



Hurray Banana
My unique Teaching style
Reged: 10/30/04
Posts: 35
Loc: England
Send PM


Re: Collecting Info from PacMan new [Re: Ocuatrec]
#355894 - 06/22/16 08:20 PM


> Hey,
> I've been working of a project in which I need to extract quite a lot of info from my
> PacMan current game. I've already been messing around with PacMan ROM and RAM maps
> but I haven't been able to discover how to get the info for the current level I'm
> playing (walls, dots). Is there any specific place I can look into to get this kind
> of info?
>
> I'm using the PacMan (Midway) version.
>
> All and any help is welcome.

You need to look at the tile ram as all the walls and dots are tiles. The top right hand corner of the playable tilemap area starts at $4040, the next 32 bytes refer to the 32 rows of the right hand column. The column to the left of the right hand column starts at $4060 and so on (28 columns or 32 rows).

Bottom left of playable tile ram area is at address $43bf

You may also need to look at the pallete ram where a byte (lower nibble only counts) matching each tile exists to state which pallete is used to draw the tile. just add $400 to the Tile ram address to get the equivalent pallete address.


Pages: 1

MAMEWorld >> Programming
View all threads Index   Threaded Mode Threaded  

Extra information Permissions
Moderator:  Pi 
0 registered and 54 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 2103