Committing progres
This commit is contained in:
10
src/main.c
10
src/main.c
@@ -9,7 +9,7 @@
|
||||
#include "textbox.h"
|
||||
#include "time.h"
|
||||
#include "common_tiles.h"
|
||||
#include "penny.h"
|
||||
#include "memory.h"
|
||||
#include "HELLO.h"
|
||||
|
||||
void main() {
|
||||
@@ -24,15 +24,15 @@ void main() {
|
||||
// Prepare tiles.
|
||||
commonTilesInit();
|
||||
textboxInit();
|
||||
set_bkg_data(PENNY_DATA_POSITION, PENNY_IMAGE_TILES, PENNY_IMAGE);
|
||||
set_bkg_data(SM_DATA_POSITION, SM_IMAGE_TILES, SM_IMAGE);
|
||||
|
||||
// Fill screen white
|
||||
for(j = 0; j < 0x20*0x20; j++) filled[j] = COMMON_TILE_3;
|
||||
set_bkg_tiles(0x00, 0x00, 0x20, 0x20, filled);
|
||||
|
||||
uint8_t penny[PENNY_IMAGE_TILES];
|
||||
for(j = 0; j < PENNY_IMAGE_TILES; j++) penny[j] = j + PENNY_DATA_POSITION;
|
||||
set_bkg_tiles(0x00, 0x00, PENNY_IMAGE_COLUMNS, PENNY_IMAGE_ROWS, penny);
|
||||
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);
|
||||
|
||||
SCX_REG = 0x00;
|
||||
SCY_REG = 0x00;
|
||||
|
Reference in New Issue
Block a user