Difference between revisions of "Ghosts 'N Goblins"

From NES Hacker Wiki
Jump to: navigation, search
(Memory Addresses: Added Armor, Zombie Carrying Baskets Item Drop, Cross Shooting Distance)
Line 77: Line 77:
 
  0715 - P1 Lives
 
  0715 - P1 Lives
 
  0716 - P2 Lives
 
  0716 - P2 Lives
 
+
891E - Zombies Carrying Baskets Item Drop
Still no idea where the armor flag is!
+
        01 - 200 Point Statue
 +
        02 - 5000 Point Item
 +
        03 - 10,000 Point Statue
 +
        04 - Extra Life
 +
        05 - Armor
 +
        06 - Fireball
 +
        07 - Axe
 +
        08 - Dagger
 +
        09 - Cross
 +
        0A - Lance
 +
        0B - Frog Statue
 +
        0C - Item +100 Points -30 Seconds
 +
        0D - Item +100 Points +1 Minute
 +
ED3B - Cross Shooting Distance (0A = Standard, 10 = Farther)
 +
E3D6 - Armor Status (C5 = Full Armor)
  
 
===Code===
 
===Code===

Revision as of 03:18, 21 March 2015

Ghosts 'N Goblins is a platform run-and-gun. You play Arthur in his quest to rescue princess Prin Prin from evil demonic forces. The game is excruciatingly difficult and you have to beat the game twice in order to see the ending.


Easy Cheats

Icon Addr Val Cmp Description
Icon-Lives-Infinite.png 0715 0A - P1 Infinite Lives
Icon-Lives-Infinite.png 0716 0A - P2 Infinite Lives
Icon-Weapon.png 053A 42 - Have Dagger
Icon-Weapon.png 053A 4F - Have Cross
Icon-Weapon.png 053A 40 - Have Spear
Icon-Weapon.png 053A 36 - Have Axe
Icon-Weapon.png 053A 44 - Have Torch
Icon-Invincible.png 0647 03 - Stay Invincible After Hit (Turn off to pickup items/Fall through some platforms)
Icon-Time.png 06FC 09 - Infinite Time
How do I use these?

North America

Ghosts 'N Goblins.png

Memory Addresses

0089 - Controller 1 input
008A - Controller 2 input
00CC - Active controller input
04E0 - P1 Score: 9xxxxxx
04E1 - P2 Score: 9xxxxxx
04E2 - P1 Score: x9xxxxx
04E3 - P2 Score: x9xxxxx
04E4 - P1 Score: xx9xxxx
04E5 - P2 Score: xx9xxxx
04E6 - P1 Score: xxx9xxx
04E7 - P2 Score: xxx9xxx
04E8 - P1 Score: xxxx9xx
04E9 - P2 Score: xxxx9xx
04EA - P1 Score: xxxxx9x
04EB - P2 Score: xxxxx9x
04EC - P1 Score: xxxxxx9
04ED - P2 Score: xxxxxx9
053A - Weapon
	36 - Axe
	40 - Spear
	42 - Dagger
	44 - Torch
	4F - Cross

	This value is to the graphic offset. Anything other than those
	specified will use a different graphic, but use the cross attack
	code. Some cool ones are:
	16 - Naked Arthur
	46 - Yashichi
	47 - Key
	48 - Armor
	49 - Jar
	56 - Fireball
	62 - Zombie Head
	77 - Frog
	A0 - Large Flame
	A1 - Small Flame
	A2 - Mini Flame
	AC - Orb
	BB - Raven
	FE - Aurthur's Head
	FF - The Status Bar

0599 - Player Y Position
05AF - Player X Position
05B1-05B7 - Enemy X Position
0607 - Player Y Delta
0647 - Invincibility Count (00-1E)
	Even numbers transparent, odd opaque.
	Setting this to 03 will keep you invincible after 
	you lose your armor, but you won't be able to pick 
	anything up and you will fall through moving platforms.
06CA-06FD - Status Bar string (each char is 2 bytes)
06F6 - Minutes
06FA - Seconds: 9x
06FC - Seconds: x9
0715 - P1 Lives
0716 - P2 Lives
891E - Zombies Carrying Baskets Item Drop
       01 - 200 Point Statue
       02 - 5000 Point Item
       03 - 10,000 Point Statue
       04 - Extra Life
       05 - Armor
       06 - Fireball
       07 - Axe
       08 - Dagger
       09 - Cross
       0A - Lance
       0B - Frog Statue
       0C - Item +100 Points -30 Seconds
       0D - Item +100 Points +1 Minute
ED3B - Cross Shooting Distance (0A = Standard, 10 = Farther)
E3D6 - Armor Status (C5 = Full Armor)

Code

Jumping

This is an excerpt from the jumping routine.

DDFA:A9 06     LDA #$06         ; Load A with 06. (Decreasing this is safe, but increasing causes player to fall through the floor.)
DDFC:9D 07 06  STA $0607,X      ; Store A into Object's Y Delta (When X is 0, it's the player).

Text

All of the cutscenes that have dialog use the main text table, but there is a smaller one used for the status bar.

Dialog

00=0
01=1
02=2
03=3
04=4
05=5
06=6
07=7
08=8
09=9
0A=A
0B=B
0C=C
0D=D
0E=E
0F=F
10=G
11=H
12=I
13=J
14=K
15=L
16=M
17=N
18=O
19=P
1A=Q
1B=R
1C=S
1D=T
1E=U
1F=V
20=W
21=X
22=Y
23=Z
24=©
25=!
26=.
27=♥

Game

00=0
01=1
02=2
03=3
04=4
05=5
06=6
07=7
08=8
09=9
0A=T
0B=I
0C=M
0D=E
0E=U
0F=P
1D=:


Japan

Ghosts 'N Goblins (J).png

Europe

Ghosts 'N Goblins (E).png