mirror of
https://codeberg.org/hkzlab/TK2048.git
synced 2026-01-12 02:03:04 +11:00
Rename other graphic files, remove unused imports
This commit is contained in:
parent
dbc1bebf9f
commit
83552c2ad8
6 changed files with 98 additions and 100 deletions
6
Makefile
6
Makefile
|
|
@ -23,13 +23,13 @@ INTRO_ASM_SRCS = tk2k_startup_module.s preserve_zero_pages.s
|
||||||
INTRO_C_SRCS = intro_main.c utility.c
|
INTRO_C_SRCS = intro_main.c utility.c
|
||||||
|
|
||||||
DLOG_ASM_SRCS = tk2k_startup_module.s preserve_zero_pages.s sound.s
|
DLOG_ASM_SRCS = tk2k_startup_module.s preserve_zero_pages.s sound.s
|
||||||
DLOG_C_SRCS = dlog_main.c input.c utility.c game_hgr_graphics.c line_data.c
|
DLOG_C_SRCS = dlog_main.c input.c utility.c game_hgr_graphics.c hgr_line_data.c
|
||||||
|
|
||||||
GAME_ASM_SRCS = tk2k_startup_module.s preserve_zero_pages.s input_asm.s sound.s
|
GAME_ASM_SRCS = tk2k_startup_module.s preserve_zero_pages.s input_asm.s sound.s
|
||||||
GAME_C_SRCS = game_main.c input.c utility.c game_hgr_graphics.c line_data.c game_logic.c arrows_pic.c tiles.c graph_misc_data.c
|
GAME_C_SRCS = game_main.c input.c utility.c game_hgr_graphics.c hgr_line_data.c game_logic.c arrows_pic.c tiles.c graph_misc_data.c
|
||||||
|
|
||||||
DEMO_ASM_SRCS = tk2k_startup_module.s preserve_zero_pages.s input_asm.s sound.s
|
DEMO_ASM_SRCS = tk2k_startup_module.s preserve_zero_pages.s input_asm.s sound.s
|
||||||
DEMO_C_SRCS = demo_main.c input.c utility.c game_hgr_graphics_demo.c line_data.c game_logic.c arrows_pic.c tiles.c graph_misc_data.c
|
DEMO_C_SRCS = demo_main.c input.c utility.c game_hgr_graphics_demo.c hgr_line_data.c game_logic.c arrows_pic.c tiles.c graph_misc_data.c
|
||||||
|
|
||||||
# Object files
|
# Object files
|
||||||
MASTER_OBJS = $(MASTER_ASM_SRCS:%.s=%.o) $(MASTER_C_SRCS:%.c=%.o)
|
MASTER_OBJS = $(MASTER_ASM_SRCS:%.s=%.o) $(MASTER_C_SRCS:%.c=%.o)
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
#include "utility.h"
|
#include "utility.h"
|
||||||
#include "mem_map.h"
|
#include "mem_map.h"
|
||||||
#include "mem_registers.h"
|
#include "mem_registers.h"
|
||||||
#include "line_data.h"
|
#include "hgr_line_data.h"
|
||||||
#include "game_logic.h"
|
#include "game_logic.h"
|
||||||
#include "tiles.h"
|
#include "tiles.h"
|
||||||
#include "charset.h"
|
#include "charset.h"
|
||||||
|
|
|
||||||
9
src/hgr_line_data.h
Normal file
9
src/hgr_line_data.h
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
#ifndef _HGR_LINE_DATA_HEADER_
|
||||||
|
#define _HGR_LINE_DATA_HEADER_
|
||||||
|
|
||||||
|
#include <stdint.h>
|
||||||
|
#include "utility.h"
|
||||||
|
|
||||||
|
extern const uint16_t line_offset_map[SCREEN_HEIGHT];
|
||||||
|
|
||||||
|
#endif /* _HGR_LINE_DATA_HEADER_ */
|
||||||
|
|
@ -1,9 +0,0 @@
|
||||||
#ifndef _LINE_DATA_HEADER_
|
|
||||||
#define _LINE_DATA_HEADER_
|
|
||||||
|
|
||||||
#include <stdint.h>
|
|
||||||
#include "utility.h"
|
|
||||||
|
|
||||||
extern const uint16_t line_offset_map[SCREEN_HEIGHT];
|
|
||||||
|
|
||||||
#endif /* _LINE_DATA_HEADER */
|
|
||||||
|
|
@ -2,10 +2,8 @@
|
||||||
|
|
||||||
#include "mem_registers.h"
|
#include "mem_registers.h"
|
||||||
#include "monitor_subroutines.h"
|
#include "monitor_subroutines.h"
|
||||||
#include "line_data.h"
|
|
||||||
|
|
||||||
void num_to_decbuf(uint16_t n, uint8_t len, uint8_t *buf) {
|
void num_to_decbuf(uint16_t n, uint8_t len, uint8_t *buf) {
|
||||||
|
|
||||||
for(uint8_t idx = 0; idx < len; idx++) {
|
for(uint8_t idx = 0; idx < len; idx++) {
|
||||||
buf[idx] = n % 10;
|
buf[idx] = n % 10;
|
||||||
n /= 10;
|
n /= 10;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue