Add resources

This commit is contained in:
Xavier Del Campo Romero 2024-01-27 12:41:09 +01:00
parent 0aef4f319c
commit 6120d66dd0
Signed by: xavi
GPG Key ID: 84FF3612A9BF43F2
28 changed files with 102 additions and 3 deletions

View File

@ -1 +1,70 @@
include(${CMAKE_CURRENT_LIST_DIR}/functions.cmake)
sprite(NAME sidewalk
X 384
Y 0
BPP 4
CX 384
CY 48
TRANSPARENT FALSE)
sprite(NAME roof1
X 384
Y 0
BPP 4
CX 384
CY 48
TRANSPARENT FALSE)
sprite(NAME roof2
X 384
Y 0
BPP 4
CX 384
CY 48
TRANSPARENT FALSE)
sprite(NAME cursor
X 384
Y 0
BPP 4
CX 384
CY 48
TRANSPARENT TRUE)
sprite(NAME btn_left
X 384
Y 0
BPP 4
CX 384
CY 48
TRANSPARENT TRUE)
sprite(NAME btn_mid
X 384
Y 0
BPP 4
CX 384
CY 48
TRANSPARENT FALSE)
sprite(NAME btn_right
X 384
Y 0
BPP 4
CX 384
CY 48
TRANSPARENT TRUE)
level(NAME city1)
container(NAME jancity
SPRITES
sidewalk
roof1
roof2
cursor
btn_left
btn_mid
btn_right
)

BIN
res/btn_left.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 586 B

BIN
res/btn_left_24.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

BIN
res/btn_mid.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 542 B

BIN
res/btn_mid_24.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

BIN
res/btn_right.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 586 B

BIN
res/btn_right_24.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

BIN
res/building1_24.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

BIN
res/building2_24.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

21
res/city1.txt Normal file
View File

@ -0,0 +1,21 @@
24 16
0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000

BIN
res/cursor.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 550 B

BIN
res/cursor_24.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

View File

@ -77,6 +77,18 @@ function(sound)
endif()
endfunction()
function(level)
set(options "")
set(multiValueArgs "")
set(oneValueArgs NAME)
cmake_parse_arguments(LEVEL "${options}" "${oneValueArgs}"
"${multiValueArgs}" ${ARGN})
file(COPY ${LEVEL_NAME}.txt DESTINATION ${cdroot})
add_custom_target(${LEVEL_NAME}_lvl
DEPENDS ${cdroot}/${LEVEL_NAME})
endfunction()
function(container)
set(options "")
set(multiValueArgs SPRITES SOUNDS)

BIN
res/grass.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

BIN
res/grass_24.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

BIN
res/pavement.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

BIN
res/pavement_24.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

BIN
res/roof1.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

BIN
res/roof1_24.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

BIN
res/roof2.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

BIN
res/roof2_24.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

BIN
res/sidewalk.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

BIN
res/sidewalk_24.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

BIN
res/tileset1.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 192 KiB

BIN
res/tileset_24.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 192 KiB

BIN
res/water.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

BIN
res/water_24.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

View File

@ -50,9 +50,6 @@ int menu_update(struct menu_common *const c,
case PERIPHERAL_TYPE_TOUCH:
break;
default:
return -1;
}
if (gfx_draw())