mirror of
https://github.com/mars3142/gb-snake.git
synced 2026-03-13 03:52:40 +00:00
incl. debug configuration for vs code
Signed-off-by: Peter Siegmund <developer@mars3142.org>
This commit is contained in:
11
src/main.c
11
src/main.c
@@ -1,13 +1,18 @@
|
||||
#include <gb/gb.h>
|
||||
#include <stdint.h>
|
||||
#include <stdio.h>
|
||||
#include "splash_screen.h"
|
||||
#include "splash_screen_tileset.h"
|
||||
|
||||
#define TILEMAP_WIDTH_IN_TILES (splash_screen_WIDTH >> 3)
|
||||
#define TILEMAP_HEIGHT_IN_TILES (splash_screen_HEIGHT >> 3)
|
||||
|
||||
void main()
|
||||
void main(void)
|
||||
{
|
||||
SHOW_BKG;
|
||||
set_bkg_data(0, splash_screen_TILE_COUNT, splash_screen_tiles);
|
||||
set_bkg_data(0, splash_screen_tileset_TILE_COUNT, splash_screen_tileset_tiles);
|
||||
set_bkg_tiles(0, 0, TILEMAP_WIDTH_IN_TILES, TILEMAP_HEIGHT_IN_TILES, splash_screen_map);
|
||||
|
||||
waitpad(J_START);
|
||||
|
||||
printf("Hello World!");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user