incl. debug configuration for vs code

Signed-off-by: Peter Siegmund <developer@mars3142.org>
This commit is contained in:
2023-11-20 22:52:29 +01:00
parent 7c440e4523
commit 5143e55753
6 changed files with 55 additions and 5 deletions

View File

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