/**
* Initialisation
*/
def setup() {
// Mute the sound
set(0,$FF26);
// Load background image
initStartScreen();
// Disable interrupt
asm{
DI
}
// Switch off the screen
screenOff();
// Clear OAM
clearOAM();
// Background
//Scroll Y
//Scroll X
set(0,$FF42);
set(0,$FF43);
// Palette BG
set(%11100100,$FF47);
// Palette sprite 0
set(%11100100,$FF48);
// Palette sprite 1 (sert pas)
set(%11000110,$FF49);
// Allume l'ecran
set(%11010011,$FF40);
// Switch on the screen
screenOn();
// Enable VBlank interrupts
set(%00000001,$FFFF);
// Enable interrupt
asm{
EI
}
}