Added fade.
This commit is contained in:
13
src/main.c
13
src/main.c
@@ -6,6 +6,7 @@
|
||||
*/
|
||||
|
||||
#include "main.h"
|
||||
#include "SM.h"
|
||||
|
||||
void main() {
|
||||
int16_t j;
|
||||
@@ -21,13 +22,12 @@ void main() {
|
||||
initarand(DIV_REG);
|
||||
|
||||
// Prepare time and input
|
||||
TIME_CURRENT = 0;
|
||||
INPUT_STATE = joypad();
|
||||
|
||||
// Init things
|
||||
timeInit();
|
||||
commonTilesInit();
|
||||
conversationTextboxInit();
|
||||
conversationPauseInit();
|
||||
conversationQueueInit();
|
||||
pokerInit();
|
||||
|
||||
@@ -37,6 +37,12 @@ void main() {
|
||||
SCX_REG = 0x00;
|
||||
SCY_REG = 0x00;
|
||||
|
||||
|
||||
set_bkg_data(SM_DATA_POSITION, SM_IMAGE_TILES, SM_IMAGE);
|
||||
uint8_t sm[SM_IMAGE_TILES];
|
||||
for(j = 0; j < SM_IMAGE_TILES; j++) sm[j] = j + SM_DATA_POSITION;
|
||||
set_bkg_tiles(0x00, 0x00, SM_IMAGE_COLUMNS, SM_IMAGE_ROWS, sm);
|
||||
|
||||
// Now turn the screen on
|
||||
DISPLAY_ON;
|
||||
enable_interrupts();
|
||||
@@ -55,8 +61,9 @@ void main() {
|
||||
|
||||
conversationTextboxUpdate();
|
||||
conversationPauseUpdate();
|
||||
conversationFadeUpdate();
|
||||
|
||||
// Tick time.
|
||||
TIME_CURRENT++;
|
||||
timeUpdate();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user