ff3:ff3us:doc:asm:fmt:npc

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
ff3:ff3us:doc:asm:fmt:npc [2016/03/13 09:07]
m06
ff3:ff3us:doc:asm:fmt:npc [2019/02/12 11:42] (current)
Line 8: Line 8:
  
 ^  Description          ^  Value    ^ ^  Description          ^  Value    ^
-Base offset (SNES   |  $C41A10 +Pointers (16-bit    |  $C41A10 
-Block size            |  $02      +Nr of Pointers (bytes) |  $01A0 ($0340)  
-Number of blocks      |  $01A0    +Data Address          |  $C41D52  
-Total size            |  $0340    |+Block size            |  $09      |
  
 The structure is a sequence of two-byte pointers. The index of the pointer is relative to the map number. The structure is a sequence of two-byte pointers. The index of the pointer is relative to the map number.
Line 21: Line 21:
 ===== Data ===== ===== Data =====
  
-^  Offset   ^Description                    ^ +^  Offset   ^ Description                    ^
-|  $00      |event address, low byte        | +|  $00      | event address, low byte        |
-|  $01      |event address, middle byte     | +|  $01      | event address, middle byte     |
-|  $02      |fields                         | +|  $02      |  $03  event address, high bits   | 
-|  :::      |$03 event address, high bits   | +|  :::      |  $1C  palette                    | 
-|  :::      |$1C palette                    | +|  :::      |  $20  ?background scrolls        | 
-|  :::      |$20 ?background scrolls        | +|  :::      |  $C0  bit identifier (see [[ff3:ff3us:doc:asm:fmt:npc#npc_flags|NPC Flags]]) 
-|  :::      |$C0 bit identifier             +|  $03      |  $01  bit identifier             | 
-|  $03      |fields                         | +|  :::      |  $FE  byte identifier            | 
-|  :::      |$01 bit identifier             | +|  $04      |  $7F  | X position                 | 
-|  :::      |$FE byte identifier            | +|  :::      |  $80  | Show rider in vehicle      | 
-|  $04      |fields                         | +|  $05      |  $3F  | Y position                 | 
-|  :::      |$7F position                 | +|  :::      |  $C0  | Speed                      | 
-|  :::      |$80 show rider in vehicle      | +|  $06      | [[ff3:ff3us:doc:asm:list:actorsprites |Actor Sprite]]                    |
-|  $05      |fields                         | +|  $07      |  $0F  movement type              | 
-|  :::      |$3F position                 | +|  :::      |  $30  map layer                  | 
-|  :::      |$C0 speed                      | +|  :::      |  $C0  vehicle                    | 
-|  $06      |[[ff3:ff3us:doc:asm:list:actorsprites |graphic set]]                    | +|  $08      |  $03  start direction            | 
-|  $07      |fields                         | +|  :::      |  $04  don't change graphic       | 
-|  :::      |$0F movement type              | +|  :::      |  $18  ?background layer          | 
-|  :::      |$30 map layer                  | +|  :::      |  $20  ?                          | 
-|  :::      |$C0 vehicle                    | +|  :::      |  $40  ?mirror graphics           | 
-|  $08      |fields                         | +|  :::      |  $80  ?                          |
-|  :::      |$03 start direction            | +
-|  :::      |$04 don't change graphic       | +
-|  :::      |$18 ?background layer          | +
-|  :::      |$20 ?                          | +
-|  :::      |$40 ?mirror graphics           | +
-|  :::      |$80 ?                          |+
  
 +===== NPC Flags =====
 +
 +As set of bits located at $1EE0 control NPC visibility.  "bit identifier" and "byte identifier" above index into these flags.  If the flag is set, the NPC is visible/active.
  • ff3/ff3us/doc/asm/fmt/npc.1457860069.txt.gz
  • Last modified: 5 years ago
  • (external edit)