In this video I cover basic player movement using the SDL2 library and Odin Lang.
I ran into a couple of problems when I first started:
- choppy movement
- single-direction movement only
Finally, after several hours / days of searching and trial and error I found a solution that works.
Enjoy!
Odin SDL2 - https://pkg.odin-lang.org/vendor/sdl2/
Source Code - https://github.com/patrickodacre/handmade-games-tutorials/commit/2e01b8e1cc7518666285a7413648ca8243052141