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
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
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
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
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
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
Sven Balzer
f4418d94d9
remove quad_instance
2025-02-25 17:25:36 +01:00
Sven Balzer
b1e657abc3
remove typedefs in favor of SDL ones
2025-02-25 16:56:12 +01:00
Sven Balzer
3e32ebd62b
convert assets to png and switch to srgb color loading
2025-02-25 14:09:25 +01:00
Sven Balzer
2e2572a769
get rid of glyphs
2025-02-25 13:28:33 +01:00
Sven Balzer
f2b992a39d
add imgui
2025-02-25 13:23:17 +01:00
Sven Balzer
c70a9a245b
fix for c++20 on linux
2025-02-25 12:58:19 +01:00
Sven Balzer
74e0d78a4c
change build system to CMake and use SDL3 for everything
2025-02-24 19:56:47 +01:00
mikeb
c7a9c2f78f
math_graphics.h angepasst;
...
lerp angepasst;
git-svn-id: svn://ammerhai.com/home/mike/pokemon_repo@21 24008968-59e6-ed4c-a10b-0b2c954b24ab
2021-07-27 16:28:15 +00:00
mikeb
efc6477180
Anpassung Window Größe und Spielfeld
...
-> gleiche Ratio (16:9);
Neue math_graphics.h Funktionen (Aufräumen);
git-svn-id: svn://ammerhai.com/home/mike/pokemon_repo@20 24008968-59e6-ed4c-a10b-0b2c954b24ab
2021-07-26 16:28:42 +00:00
mikeb
b603d997cf
Glyph output -> single Glyphs;
...
read bmp file (via stb, m_header is coming later)
-> stb_image.h;
added monochrom imagetype (load_tga_file);
git-svn-id: svn://ammerhai.com/home/mike/pokemon_repo@19 24008968-59e6-ed4c-a10b-0b2c954b24ab
2021-07-18 13:09:44 +00:00
mikeb
1f91eb9cf1
font_creator project for font loading;
...
init font_main + "stbtt_InitFont";
Lexend-Regular.ttf as normal font;
git-svn-id: svn://ammerhai.com/home/mike/pokemon_repo@17 24008968-59e6-ed4c-a10b-0b2c954b24ab
2021-07-03 17:31:05 +00:00
mikeb
ce923a77fb
UV Texturkoordinaten ergaenzt;
...
V2 struct fuer UV Koordinaten ergaenzt;
git-svn-id: svn://ammerhai.com/home/mike/pokemon_repo@16 24008968-59e6-ed4c-a10b-0b2c954b24ab
2021-06-30 16:00:14 +00:00
mikeb
0f6bfcdc4b
added render_quad -> button + text rendering;
...
how to draw with directX;
git-svn-id: svn://ammerhai.com/home/mike/pokemon_repo@15 24008968-59e6-ed4c-a10b-0b2c954b24ab
2021-03-04 15:16:57 +00:00
mikeb
00d9c03843
refactoring -> change_map_size
...
git-svn-id: svn://ammerhai.com/home/mike/pokemon_repo@12 24008968-59e6-ed4c-a10b-0b2c954b24ab
2021-03-02 16:13:32 +00:00
mikeb
63088db2a9
replaced load_shaders();
...
Funktion zur Vergroeßerung/Verkleinerung der Map hinzugefuegt;
git-svn-id: svn://ammerhai.com/home/mike/pokemon_repo@11 24008968-59e6-ed4c-a10b-0b2c954b24ab
2021-03-02 14:58:13 +00:00
mikeb
27b795cd74
map update;
...
added player struct;
added increase_map and new tiles for map creation
git-svn-id: svn://ammerhai.com/home/mike/pokemon_repo@9 24008968-59e6-ed4c-a10b-0b2c954b24ab
2021-02-28 14:12:35 +00:00
mikeb
f489f4e3ee
added load und save function + map folder;
...
new Tile type for map
git-svn-id: svn://ammerhai.com/home/mike/pokemon_repo@8 24008968-59e6-ed4c-a10b-0b2c954b24ab
2021-02-28 11:27:29 +00:00
mikeb
5ccc22deae
added defer.h for better free() use;
...
to create multiple textures in one array is now possible;
swapping textures with mouseclick;
added some textures;
git-svn-id: svn://ammerhai.com/home/mike/pokemon_repo@7 24008968-59e6-ed4c-a10b-0b2c954b24ab
2021-02-27 17:13:03 +00:00
mikeb
29c4a4f290
added standard ground sprites;
...
changed tilenumber: 16x12 -> 17:13
git-svn-id: svn://ammerhai.com/home/mike/pokemon_repo@6 24008968-59e6-ed4c-a10b-0b2c954b24ab
2021-02-26 14:56:42 +00:00
mikeb
c337d52774
fixed windoof flip-problem;
...
git-svn-id: svn://ammerhai.com/home/mike/pokemon_repo@5 24008968-59e6-ed4c-a10b-0b2c954b24ab
2021-02-25 15:21:21 +00:00
mikeb
7a8abc6af9
added buffer for tiles and player, added +=, -= to math_graphics.h
...
git-svn-id: svn://ammerhai.com/home/mike/pokemon_repo@4 24008968-59e6-ed4c-a10b-0b2c954b24ab
2021-02-25 14:43:27 +00:00
mikeb
685fdf3fa9
added tga file output, noch funktion ergaenzen, um mehrere files auszugeben
...
git-svn-id: svn://ammerhai.com/home/mike/pokemon_repo@3 24008968-59e6-ed4c-a10b-0b2c954b24ab
2021-02-24 20:09:21 +00:00