87 Commits

Author SHA1 Message Date
Sven Balzer
3a2b156951 change back from atlas texture for tiles to array texture
add callback support for imgui sdlgpu3 backend
2025-03-20 12:22:21 +01:00
Sven Balzer
e87a66b984 rename biliear_sampler to pixel sampler and remove point_sampler 2025-03-18 06:06:13 +01:00
Sven Balzer
944c00b89e add hotkey (R) for rotation 2025-03-17 17:05:35 +01:00
Sven Balzer
5ac98b6203 make globals static 2025-03-17 16:24:51 +01:00
Sven Balzer
fc88859eaf only upload data to texture if *data is not NULL
refactor create_shader_texture(path) to use the other create_shader_texture(name, data, width. height, channels)
2025-03-17 08:17:54 +01:00
Sven Balzer
cdf6cf00a8 make other sampling the default 2025-03-16 21:23:34 +01:00
Sven Balzer
5b6d83ed90 add other filtering option for comparison 2025-03-16 21:04:00 +01:00
Sven Balzer
6a7f54ca5a convert indentation to spaces 2025-03-16 18:56:40 +01:00
09b1f3943a add image to readme
update the readme image
2025-03-16 18:05:40 +01:00
8d7a4e9a4a change map files
add character shadow
2025-03-16 17:46:02 +01:00
fd11d177c1 rename corner code 2025-03-16 17:34:28 +01:00
e2a4eec761 rename grass_ground corners 2025-03-16 17:32:30 +01:00
65d79b8985 add sprout character tileset
rename map_scaled
2025-03-16 17:30:42 +01:00
98844b6094 add new sprites 2025-03-16 17:26:21 +01:00
Sven Balzer
31823101a5 add msaa toggle 2025-03-16 16:06:52 +01:00
Sven Balzer
45ca42df99 mark things as static 2025-03-16 12:14:40 +01:00
Sven Balzer
1220cf6e7a add tracy memory tracking to SDL 2025-03-16 12:10:00 +01:00
Sven Balzer
f1ffbbcfda change camera defaults 2025-03-16 08:08:41 +01:00
Sven Balzer
ad37f333ae remove atlas_item from tile info 2025-03-16 08:07:31 +01:00
Sven Balzer
93708f37b8 make dual grid always be active 2025-03-16 07:49:19 +01:00
Sven Balzer
4b3ca3e673 inline PI for msvc 2025-03-15 16:22:50 +01:00
Sven Balzer
755befb89d destroy tile atlas structure after it is not needed anymore 2025-03-15 11:29:12 +01:00
Sven Balzer
ce90ecdaea add tracy 2025-03-15 11:28:57 +01:00
Sven Balzer
592e1f39f3 put custom sdl changes into patches/ 2025-03-14 08:50:59 +01:00
Sven Balzer
b9a52da265 add a dual grid toggle 2025-03-13 05:55:17 +01:00
Sven Balzer
57f6926d6f make tile border 4 wide and enable anisotropic filtering 2025-03-12 06:26:52 +01:00
Sven Balzer
0043563f7d add the ability to drag tile changes 2025-03-11 11:31:08 +01:00
Sven Balzer
2ad30458bf add camera tilt 2025-03-11 09:16:17 +01:00
Sven Balzer
e77086601b clean up math_graphics.h 2025-03-09 20:34:08 +01:00
Sven Balzer
5016f906ea fix projection of mouse into view space 2025-03-09 20:34:07 +01:00
Sven Balzer
88da989ad7 major refactor and add a camera
change asset loading of images to be sRGB
use wayland by default on linux unless we are running under renderdoc
changed shaders to be combined vertex and fragment in a single file
require Vulkan 1.3 and enable shaderDrawParameters
2025-03-08 19:39:48 +01:00
d80ffe7c79 fix pixel bug 2025-03-07 19:25:06 +01:00
Sven Balzer
ebddc0dfe2 add random rotation option 2025-02-28 16:16:21 +01:00
Sven Balzer
0d875d23ae make tiles rotatable 2025-02-28 16:05:51 +01:00
611c1afcb6 add new tiles part 4 2025-02-27 18:44:15 +01:00
1b75448163 add new tiles part 3 2025-02-27 18:29:03 +01:00
Sven Balzer
7b9db0b16b add grass_ground_1 tile 2025-02-27 18:22:05 +01:00
Sven Balzer
3c02064f2b make new map tiles be empty by default and only expand map by one row/column 2025-02-27 18:15:35 +01:00
Sven Balzer
08e3dfd9d3 add tile selector 2025-02-27 18:01:06 +01:00
Sven Balzer
1c8a65e8ad change tiles from a texture array to a texture atlas 2025-02-27 18:01:06 +01:00
Sven Balzer
2d583d8f72 put the player in the same tile that gets collision checked 2025-02-27 18:01:06 +01:00
Sven Balzer
095f94b098 make the imgui window not be focused by default and put math_graphics into a namespace 2025-02-27 18:01:06 +01:00
a872bede2c add new tiles part 2 2025-02-27 18:00:38 +01:00
Sven Balzer
526316a928 center player in tile again 2025-02-25 20:03:52 +01:00
Sven Balzer
5b29a2bd5b fix crash on minimize 2025-02-25 19:36:25 +01:00
Sven Balzer
920f93ea7a change tiles to be actually square 2025-02-25 19:27:25 +01:00
97ff0726c9 change tile structure 2025-02-25 19:16:18 +01:00
Sven Balzer
2d5b36bbef change colorspace of sprites back to linear 2025-02-25 18:49:35 +01:00
a3ca31948b add SDL3 dependency to imgui 2025-02-25 18:39:56 +01:00
59c55ac092 add png files 2025-02-25 18:29:42 +01:00