Commit Graph

56 Commits

Author SHA1 Message Date
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
ade1af12ca twn_rendering -> twn_draw 2024-10-07 17:53:09 +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
771d8b9c2f add data folders to all apps 2024-10-07 14:15:57 +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
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
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
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
0dc3cf4160 twn_rendering: have triangle uvs represented by floating vectors 2024-10-01 20:52:32 +03:00
ad0438849e twn_fog.c: fog added! 2024-10-01 16:10:36 +03:00
edc6fb1e5c /apps/scenery: make the world generate as you go 2024-10-01 15:31:18 +03:00
57fe5e8946 implement game configuration file
this integrates https://github.com/cktan/tomlc99 into the repo as a dependency
2024-10-01 12:48:42 +03:00
078e68387b replace per-tick allocations in push_text with an arena/bump allocator 2024-09-27 15:02:24 -03:00
f4b52b5450 make textures_dump_atlases work again and expose it as a utility function 2024-09-26 21:32:08 -03:00
c0dcdf8c0a twn_skybox.c 2024-09-26 21:02:56 +03:00
4c9278a927 changed how building is triggered, now there is a [twn] shell script that is exptected to be in PATH. also physfs and libxm cmake targets no longer recompiled per every target, but shared 2024-09-25 19:52:54 +03:00
a7d97a1070 /apps: separate /apps/testgame into /apps/platformer and /apps/scenery, update /apps/template 2024-09-25 18:29:58 +03:00
34a081fccd rename get_text_width() to text_get_width() 2024-09-23 15:06:58 -03:00
73bf92e706 typedef & PascalCase for ALL structs and enums 2024-09-23 14:43:16 -03:00
0ef8a6233f twn_textures.c: fix srcrect setting on atlas rebuild 2024-09-23 11:51:18 +03:00
5caf736370 twn_rendering: m_sprite texture_origin changed for texture_region, stretched subregion work now 2024-09-21 20:07:05 +03:00
999cb78358 rename intersect_(f)rect to overlap_(f)rect and add simplified functions with the old names 2024-09-20 13:39:37 -03:00
16c96010dc finally compiling and running, text still needs rework 2024-09-16 16:17:00 +03:00
551d60ef85 partially done work on total source tree rework, separation of engine context and game context, generalization of renderer for different backends as well as web platform target 2024-09-16 09:07:01 +03:00
66c90181cd NO WARNINGS 2024-08-27 13:42:40 +03:00
veclavtalica
2f36d9ea3c windows build compatibility, twn_game_object as abstraction for bridging game code and the engine 2024-08-27 00:33:37 +03:00
9892bf71dc add the text primitive, finally 2024-08-22 23:41:52 -03:00
ca3cda25df add bootstrapping shell script for purposes of setting --data-dir and cwd for LD_PATH=./ 2024-08-21 21:38:24 +03:00
1a34f6416b fix .so placement and loading paths 2024-08-21 17:29:06 +03:00
d4d4544bb4 hot reloading and friends 2024-08-21 16:55:34 +03:00
08fd5970a1 slight restructure of CMakeLists 2024-08-20 17:50:50 +03:00
2126f3cddb cast ints to floats in terrain gen 2024-08-20 17:27:54 +03:00
14a9915ce9 remove procgen, use stb_perlin 2024-08-19 19:19:22 +03:00
9d2aa9b9ba rename scale option to stretch 2024-08-01 01:25:23 +03:00
b35c02d884 new music ! 2024-08-01 00:58:16 +03:00
80ffc30075 texture_origin option for sprite rendering 2024-08-01 00:52:15 +03:00
374a9b9c58 repeating textures in sprite rendering 2024-08-01 00:23:32 +03:00
veclavtalica
e74cc6bf94 remove symlink as windows is shit, src to townengine 2024-07-30 22:31:18 +03:00
222b68c0a3 flickering fixed ! 2024-07-31 01:12:45 +03:00
b7eae98d0d enjoy a new song !!! 2024-07-31 00:29:19 +03:00
967ed0ea9b no mouse change when not captured 2024-07-31 00:18:01 +03:00