Redid the entire textbox code to be really nice now.
This commit is contained in:
26
src/main.c
26
src/main.c
@@ -151,8 +151,8 @@ void main() {
|
||||
timeInit();
|
||||
commonTilesInit();
|
||||
conversationTextboxInit();
|
||||
// conversationQueueInit();
|
||||
// pokerInit();
|
||||
conversationQueueInit();
|
||||
pokerInit();
|
||||
|
||||
// Fill screen white
|
||||
for(j = 0; j < GB_BACKGROUND_COLUMNS * GB_BACKGROUND_ROWS; j++) filled[j] = COMMON_TILE_3;
|
||||
@@ -161,9 +161,7 @@ void main() {
|
||||
SCY_REG = 0x00;
|
||||
|
||||
// Alright begin the game logic here.
|
||||
// conversationQueueNext();
|
||||
char DEBUG_TEXT[] = "Hello World\nThe quick brown fox jumps over the lazy dog. How now brown cow? The fitness gram pacer test";
|
||||
conversationTextboxSetText(DEBUG_TEXT);
|
||||
conversationQueueNext();
|
||||
|
||||
// Now turn the screen on
|
||||
DISPLAY_ON;
|
||||
@@ -172,19 +170,23 @@ void main() {
|
||||
|
||||
// Begin the loop
|
||||
while(1) {
|
||||
// Wait for VSYNC
|
||||
wait_vbl_done();
|
||||
// Perform non-graphical code updates
|
||||
|
||||
// Tick time.
|
||||
timeUpdate();
|
||||
|
||||
// Update the input state
|
||||
INPUT_STATE = joypad();
|
||||
|
||||
// Update conversation pause effect
|
||||
conversationPauseUpdate();
|
||||
|
||||
// Update conversation textbox
|
||||
conversationTextboxUpdate();
|
||||
// conversationPauseUpdate();
|
||||
// conversationFadeUpdate();
|
||||
|
||||
// Update conversation fade effect
|
||||
conversationFadeUpdate();
|
||||
|
||||
// mainDebugDraw():
|
||||
|
||||
// Tick time.
|
||||
timeUpdate();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user