6#include "gbalatro_sys8.h"
18#include "affine_background_gfx.h"
19#include "background_gfx.h"
26#include "soundbank_bin.h"
33 irq_add(II_VBLANK, mmVBlank);
43 BG_CBB(TTE_CBB) | BG_SBB(TTE_SBB),
46 TTE_BIT_UNPACK_OFFSET,
62 REG_BG0CNT = BG_PRIO(0) | BG_CBB(TTE_CBB) | BG_SBB(TTE_SBB) | BG_4BPP;
64 REG_BG1CNT = BG_PRIO(1) | BG_CBB(MAIN_BG_CBB) | BG_SBB(MAIN_BG_SBB) | BG_8BPP;
66 REG_BG2CNT = BG_PRIO(2) | BG_CBB(AFFINE_BG_CBB) | BG_SBB(AFFINE_BG_SBB) | BG_8BPP | BG_WRAP;
71 int win1_bottom = 128;
78 REG_WIN0H = win1_left << 8 | win1_right;
79 REG_WIN0V = win1_top << 8 | win1_bottom;
80 REG_WIN0CNT = WIN_ALL | WIN_BLD;
81 REG_WINOUTCNT = WIN_ALL;
83 REG_WIN1H = win2_left << 8 | win2_right;
84 REG_WIN1V = win2_top << 8 | win2_bottom;
85 REG_WIN1CNT = WIN_ALL | WIN_BLD;
87 REG_BLDCNT = BLD_BUILD(BLD_BG1, BLD_BG2, 1);
89 REG_BLDALPHA = BLDA_BUILD(0, 13);
91 REG_DISPCNT = DCNT_MODE1 | DCNT_OBJ_1D | DCNT_BG0 | DCNT_BG1 | DCNT_BG2 | DCNT_OBJ | DCNT_WIN0 |
102 game_change_state(GAME_STATE_SPLASH_SCREEN);
Utilities for affine background on GBA.
void affine_background_init()
Initialize resources for affine background rendering.
IWRAM_CODE void affine_background_update()
Per-frame update of the affine background.
IWRAM_CODE void affine_background_hblank()
Interrupt routine to update display on HBLANK.
Utilities for using maxmod to play sound effects.
#define GBAL_MM_NUM_CHANNELS
Data structures and functions relative to the behaviour and graphics of Blinds.
Utility file to interact with custom font.
Graphic utility functions.
Functions relative to the handling of Jokers.
Interface to interact with the mgba logger.
bool mgba_logger_init(void)
Initialize mgba logger.
Common functions to handle RNG manipulation. Using this interface has three goals:
void rng_init(void)
Starts counting CPU cycles, which will be used by rng_shuffle_seed to generate a more random seed....
Utils functions to save/load data structures from/to the SRAM.
void load_options(void)
Load options values from SRAM.
Sprite system for Gbalatro.
void sprite_init(void)
Initialize GBAlatro sprite system.
void sprite_draw(void)
Draw Sprites to screen, to be called once per frame.