Redid the entire textbox code to be really nice now.

This commit is contained in:
2022-04-21 09:39:20 -07:00
parent 45228018f2
commit 6cd31448ce
10 changed files with 121 additions and 76 deletions

View File

@@ -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();
}
}