Organize the engine/ directory

This is an informed attempt at reorganizing the engine/ directory by
creating categorized subdirectories, in order to make it easier to
navigate and find things.

The directories created are as follows:
* engine/game: Contains all "minigames", things like the unown puzzle
and slot machine.
* engine/gfx: Contains all handling of graphics. From loading palettes
to playing animations.
* engine/link: Contains all multiplayer functionality.
* engine/menu: Contains all generic/misc. menus and menu code.
Other, more specialized menus are in their own subdirectories (pokedex,
pokegear, party menu, etc).
* engine/overworld: Contains all handling of the overworld. From loading
and connecting maps to wild encounters and the scripting engine.
* engine/pokegear: In the same vein as engine/pokedex, except it could
use some more splitting up.
* engine/pokemon: Contains everything related to manipulating pokemon
data. From the pokemon storage system to evolution and mail.
* engine/printer: Contains everything related to printing things as well
as the printer communication.
* engine/title: Contains intro sequences, title screens and credits.
This commit is contained in:
mid-kid 2018-03-13 13:07:16 +01:00
parent 12070ca500
commit baa0dc5a96
106 changed files with 104 additions and 104 deletions

View File

@ -21,8 +21,8 @@ data/maps/map_data.o \
data/pokemon/dex_entries.o \ data/pokemon/dex_entries.o \
data/pokemon/egg_moves.o \ data/pokemon/egg_moves.o \
data/pokemon/evos_attacks.o \ data/pokemon/evos_attacks.o \
engine/credits.o \ engine/title/credits.o \
engine/events.o \ engine/overworld/events.o \
gfx/pics.o \ gfx/pics.o \
gfx/sprites.o \ gfx/sprites.o \
lib/mobile/main.o lib/mobile/main.o

View File

@ -1,4 +1,4 @@
INCLUDE "engine/sgb_layouts.asm" INCLUDE "engine/gfx/sgb_layouts.asm"
SHINY_ATK_BIT EQU 5 SHINY_ATK_BIT EQU 5
SHINY_DEF_VAL EQU 10 SHINY_DEF_VAL EQU 10
@ -445,7 +445,7 @@ LoadMailPalettes:
.MailPals: .MailPals:
INCLUDE "gfx/mail/mail.pal" INCLUDE "gfx/mail/mail.pal"
INCLUDE "engine/cgb_layouts.asm" INCLUDE "engine/gfx/cgb_layouts.asm"
Unreferenced_Function95f0: Unreferenced_Function95f0:
ld hl, .Palette ld hl, .Palette

View File

@ -203,7 +203,7 @@ Function49496: ; 49496
ret ret
; 494ac ; 494ac
INCLUDE "engine/tileset_palettes.asm" INCLUDE "engine/gfx/tileset_palettes.asm"
MG_Mobile_Layout02: ; 49706 MG_Mobile_Layout02: ; 49706
ld hl, .Palette_49732 ld hl, .Palette_49732

View File

@ -552,7 +552,7 @@ Unreferenced_BrokenGetStdGraphics: ; 8d1ac
INCLUDE "data/sprite_anims/sequences.asm" INCLUDE "data/sprite_anims/sequences.asm"
INCLUDE "engine/sprite_anims.asm" INCLUDE "engine/gfx/sprite_anims.asm"
INCLUDE "data/sprite_anims/framesets.asm" INCLUDE "data/sprite_anims/framesets.asm"

View File

@ -2029,7 +2029,7 @@ Unreferenced_Function28f09: ; 28f09
ret ret
; 28f24 ; 28f24
INCLUDE "engine/trade_animation.asm" INCLUDE "engine/gfx/trade_animation.asm"
CheckTimeCapsuleCompatibility: ; 29bfb CheckTimeCapsuleCompatibility: ; 29bfb
; Checks to see if your party is compatible with the Gen 1 games. ; Checks to see if your party is compatible with the Gen 1 games.

View File

@ -1106,6 +1106,6 @@ ChangeDirectionScript: ; 9
end end
; 96c56 ; 96c56
INCLUDE "engine/scripting.asm" INCLUDE "engine/overworld/scripting.asm"
INCLUDE "engine/events_2.asm" INCLUDE "engine/overworld/events_2.asm"

View File

@ -185,7 +185,7 @@ _HandleObjectAction
ret ret
; 445f ; 445f
INCLUDE "engine/map_object_action.asm" INCLUDE "engine/overworld/map_object_action.asm"
CopyNextCoordsTileToStandingCoordsTile: ; 4600 CopyNextCoordsTileToStandingCoordsTile: ; 4600
ld hl, OBJECT_NEXT_MAP_X ld hl, OBJECT_NEXT_MAP_X
@ -1990,7 +1990,7 @@ DoMovementFunction: ; 506b
ret ret
; 5075 ; 5075
INCLUDE "engine/movement.asm" INCLUDE "engine/overworld/movement.asm"
; 54b8 ; 54b8
ApplyMovementToFollower: ; 54b8 ApplyMovementToFollower: ; 54b8

View File

@ -1,4 +1,4 @@
INCLUDE "engine/printer_serial.asm" INCLUDE "engine/printer/printer_serial.asm"
SendScreenToPrinter: ; 843f0 SendScreenToPrinter: ; 843f0
.loop .loop

Some files were not shown because too many files have changed in this diff Show More