Skip to content

Instantly share code, notes, and snippets.

@CT075
Last active May 23, 2016 17:20
Show Gist options
  • Save CT075/02b91dd36c175e6e9382b318b54ccce7 to your computer and use it in GitHub Desktop.
Save CT075/02b91dd36c175e6e9382b318b54ccce7 to your computer and use it in GitHub Desktop.
sample syntax for romhacking makefile
// Order to do stuff
ROMHack: text gfx events asm bin
// Commands
events:
assemble prologue_events
text:
inserttext prologue_1
inserttext prologue_2
gfx:
insertgfx portrait_1
insertgfx battle_frame
insertgfx icon_sheet
asm:
gba-as "mod_btl.asm"
bin:
incbin "data1.bin"
// Data section
prologue_events: evdata "prologue_events.txt"
prologue_1: textdata 0x813 "pro_1.txt"
prologue_2: textdata 0x814 "pro_2.txt"
portrait_1: portraitdata 0x14 "portrait.png"
battle_frame: tilemapdata "frame.png" "frame.pal" "frame.tsa"
icon_sheet: gfxraw "icons.bmp"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment