Commit Graph

282 Commits

Author SHA1 Message Date
fab958c963 twn_loop.c: use event watcher for more immediate resize redraw 2024-10-07 22:35:48 +03:00
7d92eff691 twn_loop.c: better log for /twn.toml misaccess 2024-10-07 20:57:02 +03:00
5e10087b35 /apps/template: add data folder 2024-10-07 20:51:17 +03:00
99522ae466 make twn run compile it first 2024-10-07 20:29:21 +03:00
b0e6dd78b2 fix ratio 2024-10-07 20:29:03 +03:00
3c6bcdc499 /apps/platformer: fix twn_vec.h include 2024-10-07 19:57:45 +03:00
0d5ad2bc01 they're no longer scripts 2024-10-07 19:48:54 +03:00
84bb1c8b0e /tools/twn: fix apitrace show command now showing the latest trace 2024-10-07 19:18:38 +03:00
b12faa6a44 remove legacy app specification over cmake 2024-10-07 19:08:25 +03:00
9a925a9216 /docs/getting_and_compiling.txt: update so that it specifies an example with only getting lastest lfs state 2024-10-07 19:00:29 +03:00
bd395a6371 CMake: remove data_dir from build 2024-10-07 18:55:25 +03:00
5aabab468d fix includes 2024-10-07 18:37:44 +03:00
578ceabd0e /tools/gen_api_header.sh 2024-10-07 18:06:10 +03:00
33523c7980 remove usage of twn_vec.h in public headers 2024-10-07 18:05:53 +03:00
f3c4e6f018 CMakeLists.txt: dedent 2024-10-07 17:54:46 +03:00
ade1af12ca twn_rendering -> twn_draw 2024-10-07 17:53:09 +03:00
9353999a30 twn: add run command 2024-10-07 16:58:55 +03:00
e2f5d44959 move typedefs to twn_types.h, specify that twn_vec.h is C user only, remove Vec2sh 2024-10-07 15:56:00 +03:00
8463ed4440 rename /apps/lua/ to /apps/twnlua/ 2024-10-07 15:52:32 +03:00
36fbc5b43f move lua script to lua data 2024-10-07 15:25:40 +03:00
ae8cc5f50b twn_audio: rework interface 2024-10-07 15:21:44 +03:00
cc1e64531c CMakeLists.txt: remove bootstrap script, use executable directly; move its functionalities to twn tooling 2024-10-07 14:16:53 +03:00
771d8b9c2f add data folders to all apps 2024-10-07 14:15:57 +03:00
c5c0fa4e70 CMakeLists.txt: strip by default on release, use -Bsymbolic-functions and --hash-style=gnu for optimized symbol resoltuion 2024-10-07 13:44:46 +03:00
93aa8ff2b4 remove the assumption that game is ran from cwd at root 2024-10-07 13:22:25 +03:00
6cbfc8a5fb CMakeLists.txt: use -flto=auto for potential parallel link 2024-10-07 13:21:43 +03:00
a75dda2736 move gitea-lfs-pull.py to /tools/ 2024-10-07 12:38:13 +03:00
432b768f48 make apps use /common-data/ 2024-10-07 12:34:57 +03:00
cfdc1f5f28 twn_rendering.c: rename font_path parameter to font 2024-10-07 12:32:06 +03:00
b9f2de1e28 Merge branch 'main' of https://git.poto.cafe/wanp/townengine 2024-10-07 12:29:44 +03:00
bbf79ad442 new method of pack loading, assume data or data.btw in root to point to all other 2024-10-07 12:28:15 +03:00
7bec9f6de6 rename /data/ to /common-data/ 2024-10-07 12:27:12 +03:00
06b3ad2583 CMakeLists.txt: add -rpath to look for libtownengine.so relative to executable 2024-10-07 11:04:05 +03:00
813dc539c8 /docs/interop.txt 2024-10-07 10:44:42 +03:00
60a9307ce3 twn_util: separate internal c-only features from public header 2024-10-07 10:44:18 +03:00
017ce4f1d2 /apps/lua: just free game_buf right away after it's used without keeping it around 2024-10-07 00:37:49 -03:00
f646bd7adc CMakeLists.txt: small thing :3 2024-10-07 00:26:48 +03:00
ca6c6a711c remove unused SDL2/SDL.h and physfs.h from twn_util.h, explicit usage of SDL in apps, move to Scancode enum in apps 2024-10-07 00:00:36 +03:00
ba488801b3 twn_rendering.h: remove redundant SDL2/SDL.h 2024-10-06 23:51:14 +03:00
3e972b2dad twn_input: add twn_scancode.h as port of SDL_scancode.h, remove SDL2/SDL.h header usage sa for plans on having clean public headers 2024-10-06 23:49:05 +03:00
61caec7258 remove and ignore sublime files 2024-10-06 20:15:13 +03:00
ae0da18e25 /apps/lua: move game_buf to state, free it on game_end() 2024-10-06 20:14:21 +03:00
6844049279 register functions before initial lua eval 2024-10-05 18:40:39 -03:00
bd99540280 add WIP lua binding app 2024-10-05 18:17:22 -03:00
dbbf6e25f0 add the long awaited push_9slice 2024-10-02 14:18:07 -03:00
452ecd72fe twn_sprites.c: fix texture region 2024-10-02 19:39:27 +03:00
0dc3cf4160 twn_rendering: have triangle uvs represented by floating vectors 2024-10-01 20:52:32 +03:00
ba70a566e1 /docs/getting_and_compiling.txt 2024-10-01 20:08:59 +03:00
b75ff20014 twn_gl_15_rendering.c: fix endlessly generating display lists 2024-10-01 18:38:54 +03:00
900a0a7506 twn_loop.c: delete gl context on cleanup, some implementations triggered leak detector otherwise 2024-10-01 18:21:27 +03:00