From 7861a52adf92a083bb2aed4c35f98d8035dce032 Mon Sep 17 00:00:00 2001 From: Xavier Del Campo Romero Date: Mon, 7 Jul 2025 13:22:53 +0200 Subject: Setup project skeleton --- res/CMakeLists.txt | 24 +++++++++++++++++++----- res/LICENSE | 6 +++--- res/font.bmp | Bin 8206 -> 0 bytes res/font_24.bmp | Bin 48438 -> 0 bytes res/functions.cmake | 4 ++-- res/orig/LICENSE | 5 +++-- res/orig/pixfont.png | Bin 0 -> 1962 bytes res/orig/sprFont.png | Bin 5108 -> 0 bytes res/pixfont.bmp | Bin 0 -> 2450 bytes res/pixfont_24.bmp | Bin 0 -> 55350 bytes 10 files changed, 27 insertions(+), 12 deletions(-) delete mode 100644 res/font.bmp delete mode 100644 res/font_24.bmp create mode 100644 res/orig/pixfont.png delete mode 100644 res/orig/sprFont.png create mode 100644 res/pixfont.bmp create mode 100644 res/pixfont_24.bmp (limited to 'res') diff --git a/res/CMakeLists.txt b/res/CMakeLists.txt index 8fb119e..92baf7a 100644 --- a/res/CMakeLists.txt +++ b/res/CMakeLists.txt @@ -1,11 +1,25 @@ +# wnix, a Unix-like operating system for WebAssembly applications. +# Copyright (C) 2025 Xavier Del Campo Romero +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . + include(${CMAKE_CURRENT_LIST_DIR}/functions.cmake) -sprite(NAME font - X 472 +sprite(NAME pixfont + X 640 Y 0 BPP 4 - CX 368 + CX 640 CY 498 TRANSPARENT TRUE) - -container(NAME ${PROJECT_NAME} SPRITES font) diff --git a/res/LICENSE b/res/LICENSE index 14474c2..0991335 100644 --- a/res/LICENSE +++ b/res/LICENSE @@ -1,6 +1,6 @@ All assets on this folder are either original or have originated from subfolder "orig". Read LICENSE file in "orig" for further reference. -font.bmp: -font_24.bmp: - Derived work from sprFont.png +pixfont.bmp: +pixfont_24.bmp: + Derived work from pixfont.png diff --git a/res/font.bmp b/res/font.bmp deleted file mode 100644 index 7fc1c36..0000000 Binary files a/res/font.bmp and /dev/null differ diff --git a/res/font_24.bmp b/res/font_24.bmp deleted file mode 100644 index b12a8ce..0000000 Binary files a/res/font_24.bmp and /dev/null differ diff --git a/res/functions.cmake b/res/functions.cmake index a0de87d..57119ce 100644 --- a/res/functions.cmake +++ b/res/functions.cmake @@ -20,7 +20,7 @@ function(sprite) WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} DEPENDS ${SPRITE_NAME}.bmp BYPRODUCTS ${CMAKE_CURRENT_BINARY_DIR}/${SPRITE_NAME}) - add_dependencies(iso ${SPRITE_NAME}_img) + add_dependencies(bin_cue ${SPRITE_NAME}_img) elseif(SDL1_2_BUILD) if(${SPRITE_TRANSPARENT}) set(trans "transparent=1") @@ -57,7 +57,7 @@ function(sound) WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} DEPENDS ${SOUND_NAME}.wav BYPRODUCTS ${CMAKE_CURRENT_BINARY_DIR}/${SOUND_NAME}) - add_dependencies(iso ${SOUND_NAME}_snd) + add_dependencies(bin_cue ${SOUND_NAME}_snd) elseif(SDL1_2_BUILD) if(${SOUND_LOOP}) set(loop "loop=1") diff --git a/res/orig/LICENSE b/res/orig/LICENSE index bfab4ed..8860bc8 100644 --- a/res/orig/LICENSE +++ b/res/orig/LICENSE @@ -1,3 +1,4 @@ -sprFont.png: - https://opengameart.org/content/kl-font +pixfont.png: + https://opengameart.org/content/16x12-terminal-bitmap-font + Author: CruzR License(s): CC0 diff --git a/res/orig/pixfont.png b/res/orig/pixfont.png new file mode 100644 index 0000000..418b41d Binary files /dev/null and b/res/orig/pixfont.png differ diff --git a/res/orig/sprFont.png b/res/orig/sprFont.png deleted file mode 100644 index 78a9d78..0000000 Binary files a/res/orig/sprFont.png and /dev/null differ diff --git a/res/pixfont.bmp b/res/pixfont.bmp new file mode 100644 index 0000000..addee36 Binary files /dev/null and b/res/pixfont.bmp differ diff --git a/res/pixfont_24.bmp b/res/pixfont_24.bmp new file mode 100644 index 0000000..e0682ee Binary files /dev/null and b/res/pixfont_24.bmp differ -- cgit v1.2.3