Optimizing

This commit is contained in:
2022-01-10 22:30:48 -08:00
parent cc9e50c4ab
commit 18260920b4
19 changed files with 135 additions and 94 deletions

View File

@@ -6,7 +6,6 @@
*/
#include "main.h"
#include "SM.h"
void main() {
int16_t j;
@@ -37,19 +36,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();
wait_vbl_done();
// Alright begin the game logic here.
BGB_MESSAGE("Begin.");
conversationQueueNext();
// Begin the loop