122 Commits

Author SHA1 Message Date
Sven Balzer
7fa5294e02 move game settings into their own file 2026-05-01 18:13:05 +02:00
Sven Balzer
91a4a2079b decouple grid from tile picker and make it toggleable 2026-05-01 17:53:55 +02:00
Sven Balzer
2af0361ac5 fix mouse wheel zooming map when hovering imgui windows 2026-05-01 17:49:10 +02:00
Sven Balzer
7e1894984c add zoom to editor 2026-04-18 14:52:11 +02:00
Sven Balzer
53a7ed7890 make editor camera independent of player camera 2026-04-18 13:33:01 +02:00
Sven Balzer
6305d0b096 split editor and game 2026-04-17 17:22:50 +02:00
Sven Balzer
ae9571d270 replace log.c/h with SDL_Log* 2026-04-15 13:29:47 +02:00
Sven Balzer
ba39a0e5eb replace map width/height and player pos_x/pos_y with i32vec2 size and position respectively 2026-04-15 11:27:08 +02:00
Sven Balzer
4ec664c8db replace math_graphics with glm version 1.0.3 2026-04-15 10:50:41 +02:00
Sven Balzer
07af9deb6a update wgpu-native from v25.0.2.2 to v29.0.0.0 2026-04-14 14:12:27 +02:00
Sven Balzer
6dc54f9ef6 change map.name to be an array 2026-04-14 09:37:23 +02:00
Sven Balzer
b549728a24 change world tiles texture from texture_2d_array to an atlas texture_2d 2026-04-02 17:52:28 +02:00
Sven Balzer
9dd37f6d40 replace the x64 specific change_map_tile() with a generic c implementation 2026-04-02 17:02:16 +02:00
Sven Balzer
8a5caf5c0d update SDL_mixer to SDL3_mixer 3.2.0 2026-04-02 16:52:07 +02:00
Sven Balzer
1daf4d79f1 update dear imgui from 1.92.2b-docking to 1.92.6-docking 2026-04-01 18:20:04 +02:00
Sven Balzer
3b7d593f4e switch to reverse z and get rid of tilt sign flip 2026-04-01 18:01:39 +02:00
Sven Balzer
d4c3f59921 mark functions as static 2025-10-05 11:51:11 +02:00
Sven Balzer
617a4fbfb6 allow disabling time based tinting 2025-10-04 15:43:35 +02:00
Sven Balzer
5a1ea421f6 refactor webgpu initialization into init_webgpu() 2025-10-04 13:57:16 +02:00
Sven Balzer
0d3bfaf12d start at 50% volume for all channels to allow for more user control 2025-09-29 07:09:07 +02:00
Sven Balzer
5a77a4aacb try to change to working directory on startup so assets can be found 2025-09-29 06:54:33 +02:00
Sven Balzer
c3c0f8adf7 add F5 hotkey to reload tile assets 2025-09-28 07:03:41 +02:00
Sven Balzer
a5c0db824b add a version to map files 2025-09-27 08:38:46 +02:00
Sven Balzer
434abdc9a7 get rid of tile_infos buffer for world shader and instead just use the vertex uvs 2025-09-26 07:22:08 +02:00
Sven Balzer
dcd40b6394 add uv to vertex format and remove it from instance 2025-09-25 08:04:16 +02:00
Sven Balzer
8633cff3cb switch front faces to be CCW instead of CW 2025-09-25 06:01:16 +02:00
Sven Balzer
ec34b2df61 replace SDL_GPU renderer with wgpu 2025-09-06 13:59:00 +02:00
Sven Balzer
883e13cdf5 update dear imgui from 1.91.9b to 1.92.2b 2025-08-28 05:59:13 +02:00
Sven Balzer
ad651462df Update SDL3 from 3.2.4 to 3.2.20 2025-08-27 21:24:05 +02:00
Sven Balzer
6283160467 remove unnecesary initializers 2025-08-27 21:14:33 +02:00
Sven Balzer
932d5f629d automatically play setting_off_piano.opus when no other music is playing 2025-04-03 21:47:41 +02:00
Sven Balzer
3bf7cf7a17 get rid of __VA_OPT__ 2025-03-31 22:09:47 +02:00
Sven Balzer
716f5fc11c fix condition for grid size 2025-03-30 17:35:01 +02:00
Sven Balzer
36d69e7fa0 make TileKind grid overlap the edge of the map to allow changing edge kinds 2025-03-30 17:23:59 +02:00
ebffc3f32d change order of textures for autotiling 2025-03-27 21:17:03 +01:00
Sven Balzer
d3be9552c9 fix cast to __m128i 2025-03-27 20:48:25 +01:00
Sven Balzer
e5d90533dd make a SameLineOrWrap helper and fix wrapping bug introduced by switching to the docking branch of imgui 2025-03-27 12:45:45 +01:00
Sven Balzer
e19a13c354 remove leftover debug logging 2025-03-27 12:45:20 +01:00
Sven Balzer
9480d4e2a7 add #include <bit> for rotl and rotr 2025-03-26 22:44:21 +01:00
Sven Balzer
e129469b08 add basic autotiling 2025-03-26 22:04:53 +01:00
Sven Balzer
db55a510a6 remove unnecessary uv_min and uv_max from tile_info 2025-03-26 22:04:36 +01:00
Sven Balzer
382ef67895 move shaders from assets to src 2025-03-26 19:25:38 +01:00
Sven Balzer
31c4bde4bf cleanup: remove load_entire_file and m_string 2025-03-25 21:19:54 +01:00
Sven Balzer
1db5440767 change asset loading paths to not include the leading "../assets/"
move "../assets/map/*" to "../assets/maps/*"
2025-03-25 21:17:05 +01:00
Sven Balzer
f7915b63c7 save the load path and gpu buffer in the map struct 2025-03-25 19:33:13 +01:00
Sven Balzer
0575989142 load maps into a struct instead of a global to allow for multiple to be loaded at once 2025-03-25 18:46:35 +01:00
Sven Balzer
d71daba073 pass view_projection matrix directly to the shaders instead of constructing it each time 2025-03-25 17:49:30 +01:00
Sven Balzer
b48b5f0339 always show grid when tile picker is open 2025-03-23 18:19:59 +01:00
Sven Balzer
a7635a0abf save time tints into imgui.ini and allow changing the number of tint points 2025-03-23 14:16:22 +01:00
Ammerhai
2292c049b7 add texture variations
update map and character shadow texture
2025-03-23 13:50:12 +01:00