commit 68afa6cd8bafaf2af5ba99ecf03cb6a6fcebe14f Author: Lera ElvoƩ Date: Tue Feb 4 23:42:28 2025 +0300 initial commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e56f5ad --- /dev/null +++ b/.gitignore @@ -0,0 +1,12 @@ +# ignore executables +* +!*.* +!*/ + +*.so +*.dll +*.exe +*.trace + +data/scripts/twnapi.lua +build/ diff --git a/data/scripts/game.lua b/data/scripts/game.lua new file mode 100644 index 0000000..74b2bbc --- /dev/null +++ b/data/scripts/game.lua @@ -0,0 +1,8 @@ +-- called every frame, with constant delta time +function game_tick() + -- ctx.initialization_needed is true first frame and every time dynamic reload is performed + if ctx.initialization_needed then + -- ctx.udata persists on reload + ctx.udata = {} + end +end diff --git a/data/twn.toml b/data/twn.toml new file mode 100644 index 0000000..60d96ab --- /dev/null +++ b/data/twn.toml @@ -0,0 +1,27 @@ +# This file contains everything about the engine and your game that can be +# configured before it runs. +# +# Optional settings are commented out, with their default values shown. +# Invalid values in these settings will be ignored. + +# Data about your game as an application +[about] +title = "Template" +developer = "You" +app_id = "template" +dev_id = "you" + +# Game runtime details +[game] +resolution = [ 640, 480 ] +interpreter = "$TWNROOT/apps/twnlua" +#debug = true + +# Engine tweaks. You probably don't need to change these +[engine] +#ticks_per_second = 60 # minimum of 8 +#keybind_slots = 3 # minimum of 1 +#texture_atlas_size = 2048 # minimum of 32 +#font_texture_size = 2048 # minimum of 1024 +#font_oversampling = 4 # minimum of 0 +#font_filtering = "linear" # possible values: "nearest", "linear"