mirror of
https://codeberg.org/hkzlab/TK2048.git
synced 2025-12-26 08:02:16 +11:00
Begin adding loading screen
This commit is contained in:
parent
457d510384
commit
bc20c1390d
5 changed files with 8 additions and 2 deletions
2
Makefile
2
Makefile
|
|
@ -12,7 +12,7 @@ ASM_SRCS = tk2k_startup.s
|
|||
C_SRCS = main.c monitor_subroutines.c utility.c \
|
||||
game_graphics.c game_logic.c input.c \
|
||||
line_data.c tiles.c graph_misc_data.c \
|
||||
arrows_pic.c
|
||||
arrows_pic.c loading_screen.c
|
||||
|
||||
# Object files
|
||||
OBJS = $(ASM_SRCS:%.s=%.o) $(C_SRCS:%.c=%.o)
|
||||
|
|
|
|||
BIN
graphics/loading_screen.aseprite
Normal file
BIN
graphics/loading_screen.aseprite
Normal file
Binary file not shown.
|
|
@ -6,7 +6,7 @@
|
|||
(memory program (address (#x801 . #x1fff)) (type ram)
|
||||
;;; (section (programStart #x801) (startup #x80e) code switch idata cdata data_init_table))
|
||||
(section (programStart #x801) (startup #x80e) code))
|
||||
(memory displayPage1 (address (#x2000 . #x3fff)) (type ram))
|
||||
(memory displayPage1 (address (#x2000 . #x3fff)) (type ram) (section loadscreen))
|
||||
(memory datamem (address (#x4000 . #x91ff)) (type ram) (section cstack zdata data heap)) ;;; usermem goes from 0x4000 to 0x9FFFF (included), we are splitting it
|
||||
(memory upperData (address (#x9200 . #x9fff)) (type ram) (section switch idata cdata data_init_table))
|
||||
(memory displayPage2 (address (#xa000 . #xbfff)) (type ram))
|
||||
|
|
|
|||
5
src/loading_screen.c
Normal file
5
src/loading_screen.c
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
#include <stdint.h>
|
||||
|
||||
__attribute__((section("loadscreen"))) const uint8_t __loading_screen[] = {0xDE, 0xAD, 0xBE, 0xEF};
|
||||
#pragma require __loading_screen
|
||||
|
||||
|
|
@ -33,6 +33,7 @@ void init(void) {
|
|||
#define SCORE_TEXT_X 32
|
||||
#define SCORE_TEXT_Y 29
|
||||
#define SCORE_TEXT_WIDTH 5
|
||||
#pragma require __loading_screen
|
||||
|
||||
__task int main(void) {
|
||||
uint16_t moves_count;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue