Add project resources

This commit is contained in:
Xavier Del Campo Romero 2021-10-24 03:24:55 +02:00
parent adb7d06263
commit fc9beffe01
42 changed files with 387 additions and 0 deletions

283
res/CMakeLists.txt Normal file
View File

@ -0,0 +1,283 @@
function(sprite)
set(options "")
set(multiValueArgs "")
set(oneValueArgs NAME X Y TRANSPARENT BPP CX CY)
cmake_parse_arguments(SPRITE "${options}" "${oneValueArgs}"
"${multiValueArgs}" ${ARGN})
if(PS1_BUILD)
if(${SPRITE_TRANSPARENT})
set(trans -mpink)
endif()
if(NOT "${SPRITE_BPP}" STREQUAL "16")
set(clut "-clut=${SPRITE_CX},${SPRITE_CY}")
endif()
add_custom_target(${SPRITE_NAME}_img ALL
bmp2tim ${SPRITE_NAME}.bmp ${CMAKE_CURRENT_BINARY_DIR}/${SPRITE_NAME}
${SPRITE_BPP} -org=${SPRITE_X},${SPRITE_Y} ${clut} ${trans}
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
DEPENDS ${SPRITE_NAME}.bmp
BYPRODUCTS ${CMAKE_CURRENT_BINARY_DIR}/${SPRITE_NAME})
add_dependencies(iso ${SPRITE_NAME}_img)
elseif(SDL1_2_BUILD)
add_custom_target(${SPRITE_NAME}_img ALL
cp ${SPRITE_NAME}.bmp ${CMAKE_CURRENT_BINARY_DIR}/${SPRITE_NAME}
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
DEPENDS ${SPRITE_NAME}.bmp
BYPRODUCTS ${SPRITE_NAME})
add_dependencies(${PROJECT_NAME} ${SPRITE_NAME}_img)
endif()
endfunction()
function(sound)
set(options "")
set(multiValueArgs "")
set(oneValueArgs NAME LOOP)
cmake_parse_arguments(SOUND "${options}" "${oneValueArgs}"
"${multiValueArgs}" ${ARGN})
if(PS1_BUILD)
if(${SOUND_LOOP})
set(loop -L)
endif()
add_custom_target(${SOUND_NAME}_snd ALL
wav2vag ${SOUND_NAME}.wav
${CMAKE_CURRENT_BINARY_DIR}/${SOUND_NAME} ${loop}
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
DEPENDS ${SOUND_NAME}.wav
BYPRODUCTS ${CMAKE_CURRENT_BINARY_DIR}/${SOUND_NAME})
add_dependencies(iso ${SOUND_NAME}_snd)
elseif(SDL1_2_BUILD)
add_custom_target(${SOUND_NAME}_snd ALL
#ffmpeg -y -i ${SOUND_NAME}.wav
# -loglevel error
# -c:a libvorbis
# ${CMAKE_CURRENT_BINARY_DIR}/${SOUND_NAME}
cp ${SOUND_NAME}.wav ${CMAKE_CURRENT_BINARY_DIR}/${SOUND_NAME}
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
DEPENDS ${SOUND_NAME}.wav
BYPRODUCTS ${CMAKE_CURRENT_BINARY_DIR}/${SOUND_NAME})
add_dependencies(${PROJECT_NAME} ${SOUND_NAME}_snd)
endif()
endfunction()
function(container)
set(options "")
set(multiValueArgs SPRITES SOUNDS)
set(oneValueArgs NAME)
cmake_parse_arguments(CONTAINER "${options}" "${oneValueArgs}"
"${multiValueArgs}" ${ARGN})
add_custom_target(${CONTAINER_NAME}_container ALL
container ${CONTAINER_SPRITES} ${CONTAINER_SOUNDS}
${cdroot}/${CONTAINER_NAME}.cnt
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
BYPRODUCTS ${cdroot}/${CONTAINER_NAME}.cnt)
foreach(sprite ${CONTAINER_SPRITES})
add_dependencies(${CONTAINER_NAME}_container ${sprite}_img)
endforeach()
foreach(sound ${CONTAINER_SOUNDS})
add_dependencies(${CONTAINER_NAME}_container ${sound}_snd)
endforeach()
if(PS1_BUILD)
add_dependencies(iso ${CONTAINER_NAME}_container)
endif()
endfunction()
sprite(NAME worker_n
X 384
Y 0
BPP 4
CX 384
CY 31
TRANSPARENT TRUE)
sprite(NAME worker_ne
X 384
Y 32
BPP 4
CX 384
CY 63
TRANSPARENT TRUE)
sprite(NAME worker_e
X 384
Y 64
BPP 4
CX 384
CY 97
TRANSPARENT TRUE)
sprite(NAME worker_se
X 384
Y 98
BPP 4
CX 384
CY 129
TRANSPARENT TRUE)
sprite(NAME worker_s
X 384
Y 130
BPP 4
CX 384
CY 163
TRANSPARENT TRUE)
sprite(NAME grass
X 368
Y 0
BPP 4
CX 368
CY 510
TRANSPARENT FALSE)
sprite(NAME cursor
X 368
Y 32
BPP 4
CX 368
CY 509
TRANSPARENT TRUE)
sprite(NAME barracks
X 384
Y 180
BPP 4
CX 368
CY 508
TRANSPARENT TRUE)
sprite(NAME gui_bar_left
X 376
Y 0
BPP 4
CX 368
CY 507
TRANSPARENT TRUE)
sprite(NAME gui_bar_mid
X 472
Y 168
BPP 4
CX 368
CY 506
TRANSPARENT TRUE)
sprite(NAME gui_bar_right
X 376
Y 56
BPP 4
CX 368
CY 505
TRANSPARENT TRUE)
sprite(NAME sel_up_left
X 368
Y 64
BPP 4
CX 368
CY 504
TRANSPARENT TRUE)
sprite(NAME sel_up_right
X 372
Y 64
BPP 4
CX 368
CY 503
TRANSPARENT TRUE)
sprite(NAME sel_down_left
X 368
Y 52
BPP 4
CX 368
CY 502
TRANSPARENT TRUE)
sprite(NAME sel_down_right
X 372
Y 52
BPP 4
CX 368
CY 501
TRANSPARENT TRUE)
sprite(NAME sel_mid
X 376
Y 52
BPP 4
CX 368
CY 500
TRANSPARENT TRUE)
sprite(NAME sel_mid_v
X 382
Y 0
BPP 4
CX 368
CY 499
TRANSPARENT TRUE)
sprite(NAME font
X 472
Y 0
BPP 4
CX 368
CY 498
TRANSPARENT TRUE)
sprite(NAME gold_mine
X 448
Y 0
BPP 4
CX 368
CY 497
TRANSPARENT TRUE)
sprite(NAME tree
X 368
Y 76
BPP 4
CX 368
CY 496
TRANSPARENT TRUE)
sound(NAME acknowledge_01)
sound(NAME acknowledge_02)
sound(NAME selected_01)
container(NAME rts
SPRITES
barracks
worker_n
worker_ne
worker_e
worker_se
worker_s
font
grass
cursor
tree
gui_bar_left
gui_bar_mid
gui_bar_right
gold_mine
sel_up_left
sel_up_right
sel_down_left
sel_down_right
sel_mid
sel_mid_v
SOUNDS
acknowledge_01
acknowledge_02
selected_01
)

51
res/LICENSE Normal file
View File

@ -0,0 +1,51 @@
All assets on this folder are either original or have originated from subfolder
"orig". Read LICENSE file in "orig" for further reference.
worker_e.bmp:
worker_e_24.bmp:
worker_n.bmp:
worker_n_24.bmp:
worker_ne.bmp:
worker_ne_24.bmp:
worker_s.bmp:
worker_s_24.bmp:
worker_se.bmp:
worker_se_24.bmp:
Derived works from worker.png
grass.bmp:
Derived work from Prototyping Tiles.png
cursor.bmp:
Derived work from pointer.bmp
barracks.bmp:
Derived work from barracks.zip
gui_bar_left.bmp:
gui_bar_mid.bmp:
gui_bar_right.bmp:
sel_up_left.bmp:
sel_up_right.bmp:
sel_down_left.bmp:
sel_down_right.bmp:
sel_mid.bmp:
Derived works from ui_sheet.png
font.bmp:
Derived work from sprFont.png
tree.bmp:
Derived work from autumn_pine_tree_tiles.png
acknowledge_01.wav:
Derived work from acknowledge_01.wav
Notes: wav2vag does not support the original work for some reason.
acknowledge_02.wav:
Derived work from acknowledge_02.wav
Notes: wav2vag does not support the original work for some reason.
selected_01.wav:
Derived work from selected_01.wav
Notes: wav2vag does not support the original work for some reason.

BIN
res/acknowledge_01.wav Normal file

Binary file not shown.

BIN
res/acknowledge_02.wav Normal file

Binary file not shown.

BIN
res/barracks.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

BIN
res/cursor.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 586 B

BIN
res/font.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.0 KiB

BIN
res/gold_mine.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.2 KiB

BIN
res/grass.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 698 B

BIN
res/gui_bar_left.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 430 B

BIN
res/gui_bar_mid.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

BIN
res/gui_bar_right.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 430 B

53
res/orig/LICENSE Normal file
View File

@ -0,0 +1,53 @@
worker_with_gold.png:
worker_with_lumber.png:
worker.png:
https://opengameart.org/content/germanic-worker
License(s): CC-BY-SA 3.0, GPL 2.0
Author: b_o
summer_pine_tree_tiles.png:
https://opengameart.org/content/pine-tree-tiles
License(s): CC-BY-SA 3.0, GPL 2.0
Author: b_o
grass.png:
Prototyping Tiles.png:
https://opengameart.org/content/texture-to-tile-project
License(s): CC-BY 3.0, CC-BY-SA 3.0, GPL 3.0, GPL 2.0, OGA-BY 3.0
Author: The Chayed
pointer.bmp:
https://opengameart.org/content/iron-plague-pointercursor
License(s): CC-BY 3.0
Author: Daniel Cook
saxon_swordsman.png:
https://opengameart.org/content/saxon-swordsman
License(s): CC-BY-SA 3.0, GPL 2.0
Author: b_o
barracks.zip:
https://opengameart.org/content/6-isometric-buildings:
License(s): CC-BY-SA 3.0
Author: Scribe
ui_sheet.png:
https://opengameart.org/content/sci-fi-user-interface
License(s): CC0
Author: Buch
sprFont.png:
https://opengameart.org/content/kl-font
License(s): CC0
Author: Kelvin Shadewing
archer.png:
https://opengameart.org/content/germanic-archer
License(s): CC-BY-SA 3.0, GPL 2.0
acknowledge_01.wav:
acknowledge_02.wav:
selected_01.wav:
https://opengameart.org/content/proto-germanic-voices
License(s): CC0
Author: Manuel Senfft

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

BIN
res/orig/acknowledge_01.wav Normal file

Binary file not shown.

BIN
res/orig/acknowledge_02.wav Normal file

Binary file not shown.

BIN
res/orig/barracks.zip Normal file

Binary file not shown.

BIN
res/orig/gold_mine.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

BIN
res/orig/pointer.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

BIN
res/orig/selected_01.wav Normal file

Binary file not shown.

BIN
res/orig/sprFont.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

BIN
res/orig/ui_sheet.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

BIN
res/orig/worker.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

BIN
res/sel_down_left.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 242 B

BIN
res/sel_down_right.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 242 B

BIN
res/sel_mid.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 198 B

BIN
res/sel_mid_v.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 262 B

BIN
res/sel_up_left.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 242 B

BIN
res/sel_up_right.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 242 B

BIN
res/selected_01.wav Normal file

Binary file not shown.

BIN
res/tree.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 914 B

BIN
res/worker_e.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

BIN
res/worker_e_24.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.7 KiB

BIN
res/worker_moving_1.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

BIN
res/worker_n.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

BIN
res/worker_n_24.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

BIN
res/worker_ne.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

BIN
res/worker_ne_24.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

BIN
res/worker_s.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

BIN
res/worker_s_24.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

BIN
res/worker_se.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

BIN
res/worker_se_24.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.5 KiB