Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 16 metatile types
- 8 sprite types
- 12 global variables
- 16x16 metatile map, no scrolling
- maybe like 12 objects at once?
- metatile defintions have:
- graphic (stored per metatile)
- attributes:
- palette used
- solid all flag
- solid on top flag
- user flag 1
- user flag 2
- user flag 3
- user flag 4
- sprites definitions have:
- default art
- class (out of four)
- attributes:
- palette used
- stopped by solids
- solid
- sprite state bytes:
- position X low
- position X high
- position Y low
- position Y high
- speed X low
- speed X high
- speed Y low
- speed Y high
- variable A
- variable B
- variable C
- user flags (8)
- type
- additional flags: x flip, y flip, just created, invisible
- ...
- ...
- NES RAM map:
- 00xx - Variables
- 01xx - Stack and sound engine state
- 02xx - OAM buffer
- 03xx - Metatile map
- 04xx - \ Game state or initial state
- 05xx - /
- 06xx - \ Game information
- 07xx - /
- CHR RAM map:
- 00xx - Interface stuff
- 01xx - Interface stuff
- 02xx - Chicago font
- 03xx - Chicago font
- 04xx - Chicago font
- 05xx - Chicago font
- 06xx - Chicago font
- 07xx - Chicago font
- 08xx -
- 09xx -
- 0Axx -
- 0Bxx -
- 0Cxx - User metatile graphics (0-3)
- 0Dxx - User metatile graphics (4-7)
- 0Exx - User metatile graphics (8-11)
- 0Fxx - User metatile graphics (12-15)
- 10xx -
- 11xx -
- 12xx -
- 13xx -
- 14xx -
- 15xx -
- 16xx -
- 17xx -
- 18xx -
- 19xx -
- 1Axx -
- 1Bxx -
- 1Cxx - User sprite graphics
- 1Dxx - User sprite graphics
- 1Exx - User sprite graphics
- 1Fxx - User sprite graphics
- Nametable RAM map:
- 24xx - backup of the metatile map, copied here during gameplay and restored after
- 25xx -
- 26xx -
- 27xx -
- Movement styles:
- Player/Object 8 direction | directions allowed, walk speed, stopped by solids
- Player/Object platformer | walk speed, stopped by solids
- Ball | applies an X speed and Y speed each frame
- Conditions:
- always
- never
- OR
- NOT
- every X frames
- when [button] is pressed
- when [button] is released
- while [button] is pressed
- when object was just created
- is this touching [other object] (sets the other object as the other target)
- is this touching [metatile type]
- is this touching [solid/user flag 1,2,3,4] metatiles
- compare object's variable to other variable
- Actions:
- Variable identifier:
- NNNNnnnn
- ||||++++- source
- ++++----- destination
- 0: constant 8: G5
- 1: this A 9: G6
- 2: this B A: G7
- 3: this C B: G8
- 4: G1 C: G9
- 5: G2 D: G10
- 6: G3 E: G11
- 7: G4 F: G12
- actions are performed on a "target"; the target defaults to the the object that's checking conditions
- but can be changed. there's also an "other" object
- target this object
- target the other object
- target the first found object of a given type for this
- target the first found object of a given type for other
- this object's variable = this object's variable
- this object's variable +-*/= this object's variable
- this object's variable = other object's variable
- this object's variable +-*/= other object's variable
- other object's variable = this object's variable
- other object's variable +-*/= this object's variable
- stop
- bounce (in a random direction)
- bounce (180 degrees)
- destroy
- shoot object [type] [in a direction/any direction/towards other object]
- stop taking player input
- start taking player input
- play sound effect
- user flag [0-7] [on/off]
- horizontal flip [on/off]
- vertical flip [on/off]
- invisible on/off
- go straight [in a direction/any direction/towards other object/towards X/Y] at [speed]
- swap positions with other object
- jump to position of other object
- jump to X, Y
- win
- lose
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement