mirror of https://git.sr.ht/~kikoodx/crystal-tower
base gint project
This commit is contained in:
commit
7636abbeb8
|
@ -0,0 +1,9 @@
|
|||
BasedOnStyle: LLVM
|
||||
IndentWidth: 8
|
||||
UseTab: AlignWithSpaces
|
||||
BreakBeforeBraces: Linux
|
||||
AllowShortIfStatementsOnASingleLine: false
|
||||
IndentCaseLabels: false
|
||||
ColumnLimit: 80
|
||||
AlignConsecutiveMacros: true
|
||||
AlwaysBreakAfterReturnType: TopLevelDefinitions
|
|
@ -0,0 +1,5 @@
|
|||
build-cg/
|
||||
build-fx/
|
||||
*.g3a
|
||||
*.g1a
|
||||
*.png~
|
|
@ -0,0 +1,43 @@
|
|||
# Configure with [fxsdk build-cg], which provide the
|
||||
# toolchain file and module path of the fxSDK
|
||||
|
||||
cmake_minimum_required(VERSION 3.18)
|
||||
project(CRYSTAL C)
|
||||
|
||||
include(GenerateG3A)
|
||||
include(Fxconv)
|
||||
|
||||
find_package(Gint 2.6.0 REQUIRED)
|
||||
|
||||
include_directories(include)
|
||||
|
||||
set(SOURCES
|
||||
src/main.c
|
||||
)
|
||||
|
||||
set(LEVELS
|
||||
)
|
||||
|
||||
set(ASSETS
|
||||
${LEVELS}
|
||||
)
|
||||
|
||||
set(FLAGS
|
||||
-Wall -Wextra -Wshadow -Wswitch-default -Wswitch-enum
|
||||
-Wunreachable-code -Wstrict-prototypes -Wmissing-prototypes
|
||||
-Wold-style-definition -Werror-implicit-function-declaration
|
||||
-std=c11 -O3
|
||||
)
|
||||
|
||||
fxconv_declare_assets(${ASSETS} WITH_METADATA)
|
||||
|
||||
add_executable(target ${SOURCES} ${ASSETS})
|
||||
target_compile_options(target PRIVATE ${FLAGS})
|
||||
target_link_libraries(target Gint::Gint)
|
||||
target_link_options(target PRIVATE -Wl,-Map=map)
|
||||
|
||||
generate_g3a(TARGET target
|
||||
OUTPUT "${PROJECT_NAME}.g3a"
|
||||
NAME "${PROJECT_NAME}"
|
||||
ICONS res/icon-uns.png res/icon-sel.png
|
||||
)
|
|
@ -0,0 +1,8 @@
|
|||
all:
|
||||
fxsdk build-cg
|
||||
|
||||
clean:
|
||||
rm -rf build-cg/
|
||||
rm -f *.g3a
|
||||
|
||||
.PHONY: clean
|
|
@ -0,0 +1,5 @@
|
|||
# https://git.sr.ht/~kikoodx/jle
|
||||
tileset = assets/graphics/tileset.png
|
||||
tile_size = 16
|
||||
new_level_width = 25
|
||||
new_level_height = 14
|
Binary file not shown.
After Width: | Height: | Size: 12 KiB |
Binary file not shown.
After Width: | Height: | Size: 8.3 KiB |
|
@ -0,0 +1,6 @@
|
|||
#include <gint/keyboard.h>
|
||||
|
||||
int main(void) {
|
||||
getkey();
|
||||
return 1;
|
||||
}
|
Loading…
Reference in New Issue