Commit Graph
33 Commits
Author SHA1 Message Date
veclavtalica 86bf16b680 make mouse movement and capture depend on window focus 2025-01-14 02:07:54 +03:00
veclavtalica 6298394957 twn_audio.c: a lot of fixes, optional TWN_FEATURE_PUSH_AUDIO for converging game ticks and audio, proper .wav handling with resample 2025-01-13 23:52:55 +03:00
veclavtalica 46e077ba63 make ctx.frame_number overflow to 0 2025-01-11 17:33:05 +03:00
veclavtalica 313108092b don't use clamped float random_seed internally 2025-01-10 02:52:04 +03:00
veclavtalica 951d9c76c8 use floats for ctx.frame_number and ctx.random_seed 2025-01-10 02:20:21 +03:00
veclavtalica 5b05386bb0 changes to twn.toml specification of resolution, make it optional as well 2025-01-06 21:19:26 +03:00
veclavtalica dc2535358e make input coordinates respect the viewport 2024-12-24 10:24:50 +03:00
veclavtalica 2f94e17852 twn_util_c.h: profile_list_stats() for average summary, without spam in console 2024-11-04 16:22:13 +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 9da26638c8 rework input to be in line with rendering semantics 2024-10-22 20:32:17 +03:00
veclavtalica 139394c6de partial implementation of double buffered render 2024-10-15 15:29:45 +03:00
veclavtalica da98c0941b effort to have no warnings once again 2024-10-13 21:32:31 +03:00
veclavtalica 1a7322dccf twn_util.h: separate internal things away, remove indirect includes in places 2024-10-12 21:16:25 +03:00
veclavtalica 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
veclavtalica 667b599c19 remove /include/twn_config.h, move defauls to relevant headers 2024-10-11 20:21:02 +03:00
veclavtalica 9b5c043d85 fix warnings 2024-10-08 10:30:11 +03:00
veclavtalica 68df2eecfc fix an oopsie 2024-10-08 10:13:07 +03:00
veclavtalica 0ede612bec twn_input: singleton rework, twn_control.h and fixes 2024-10-08 10:12:47 +03:00
veclavtalica fab958c963 twn_loop.c: use event watcher for more immediate resize redraw 2024-10-07 22:35:48 +03:00
veclavtalica 7d92eff691 twn_loop.c: better log for /twn.toml misaccess 2024-10-07 20:57:02 +03:00
veclavtalica 93aa8ff2b4 remove the assumption that game is ran from cwd at root 2024-10-07 13:22:25 +03:00
veclavtalica 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
veclavtalica 900a0a7506 twn_loop.c: delete gl context on cleanup, some implementations triggered leak detector otherwise 2024-10-01 18:21:27 +03:00
veclavtalica 91ea5356fc fix variout memory leaks 2024-10-01 13:34:58 +03:00
veclavtalica a0ea657eb9 twn_audio: settle down on float32 2-channel sampling only, format enums to style used elsewhere 2024-10-01 12:59:01 +03:00
wanp 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
wanp 078e68387b replace per-tick allocations in push_text with an arena/bump allocator 2024-09-27 15:02:24 -03:00
wanp 0e68ecbc88 twn_loop.c: add --debug and --release overrides, fix incorrect argv iteration 2024-09-26 20:48:42 -03:00
veclavtalica 5d6a3a5aec remove/replace unused includes 2024-09-26 21:38:24 +03:00
wanp 0fe1023667 use SDL stdlib where possible 2024-09-25 19:42:34 -03:00
wanp 73bf92e706 typedef & PascalCase for ALL structs and enums 2024-09-23 14:43:16 -03:00
veclavtalica 16c96010dc finally compiling and running, text still needs rework 2024-09-16 16:17:00 +03:00
veclavtalica 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