Commit Graph

87 Commits

Author SHA1 Message Date
veclavtalica
cb6c1df0be disallow ghostly billboards, reenable skybox in scenery demo 2025-01-05 19:59:23 +03:00
veclavtalica
3bfa86066e billboards! 2025-01-05 19:46:05 +03:00
veclavtalica
f4a3298906 disallow pointer to pointer in api 2025-01-03 11:45:10 +03:00
veclavtalica
8ec5a96333 /apps/demos/scenery: cleanup 2025-01-02 13:35:13 +03:00
veclavtalica
4277852fc5 /apps/demos/scenery: add walking 2025-01-02 13:29:28 +03:00
veclavtalica
190eb1f107 twnlua: use stb_ds.h for enum conversions 2024-12-24 10:03:19 +03:00
veclavtalica
e06c879869 twnlua: partial impl for return propagation, input now works 2024-12-23 22:02:17 +03:00
veclavtalica
e7ed72dfc0 twnlua: bindgen.py capable of converting share/twn_api.h spec to lua bindings 2024-12-23 20:59:00 +03:00
veclavtalica
4be27816c2 scenery: make render distance come from a define 2024-11-03 23:09:10 +03:00
veclavtalica
26c75ffd7c optimize case of sequential shared radius circle drawing by reusing the geometry by just offsetting it 2024-11-03 22:33:18 +03:00
veclavtalica
9121da0675 yet another api rework, removal of integer types in public api, optionals at the end, some cleaning 2024-10-29 12:25:24 +03:00
veclavtalica
d11143ac86 twn_draw.h: new camera api 2024-10-28 12:34:48 +03:00
veclavtalica
9da26638c8 rework input to be in line with rendering semantics 2024-10-22 20:32:17 +03:00
veclavtalica
a22bcfd97e rework timers, update overlap/intersect and other procedures, some other things i dont remember 2024-10-22 14:45:30 +03:00
19bf88d44e finally properly implemented depth optimization for 2d 2024-10-14 15:31:56 +03:00
f7f27119e1 use static, fixed arrays for circle geometry data instead of allocating for each one 2024-10-13 22:32:59 -03:00
da98c0941b effort to have no warnings once again 2024-10-13 21:32:31 +03:00
e70366f82f rework to context: now there's engine and user code copies, renaming of fields, most things that shouldn't be there are hidden 2024-10-12 20:24:47 +03:00
cfc9ac9583 fix common-data pack reference for newly places demos 2024-10-11 19:31:30 +03:00
b566cf20b5 fix bunnymark boundies 2024-10-11 19:27:41 +03:00
4ac87b3021 move platformes and scenery to /apps/demos/ 2024-10-11 19:26:46 +03:00
db0adbdf6c /apps/demos/bunnymark: fix background 2024-10-08 10:18:41 +03:00
0ede612bec twn_input: singleton rework, twn_control.h and fixes 2024-10-08 10:12:47 +03:00
5c91423fbb clang-format on /apps/demos/bunnymark files 2024-10-08 01:21:31 +03:00
78034b69f5 proper scene switch in demos 2024-10-08 01:07:01 +03:00
fd6615744e /apps/platformer: not a platfromer, is it 2024-10-08 00:50:59 +03:00
4c49366c44 Added common-data as dependency for kenney's font used in demo 2024-10-07 20:16:21 +00:00
8759221ed2 Adding data manifest and the wabbit sprite 2024-10-07 20:15:53 +00:00
8aa0e38486 Bunny mark intial files added
Need to add data folder still.
2024-10-07 20:15:20 +00:00
5e10087b35 /apps/template: add data folder 2024-10-07 20:51:17 +03:00
3c6bcdc499 /apps/platformer: fix twn_vec.h include 2024-10-07 19:57:45 +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
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