No-engine gamedev using Odin and Raylib
a year ago
- #game-development
- #odin-lang
- #raylib
- Games can be developed using various methods, including big game engines like Unity and Godot, or simpler tools like Odin + Raylib.
- Odin is a C-like programming language, and Raylib is a library for graphics, input, and sound, offering a no-engine approach to game development.
- The key to successful game development is having fun and being productive, which Odin + Raylib facilitates.
- A basic setup involves installing Odin, writing a simple program to open a window, and using Raylib for drawing.
- Adding player graphics involves loading textures and drawing them within the game loop.
- Player movement is achieved by checking input and updating the player's position each frame, utilizing Odin's array features for vector math.
- Odin's simplicity and performance make it suitable for game development, as demonstrated by the game CAT & ONION.
- Asset management can start simple, with textures loaded directly, and evolve to include texture atlases and memory management with allocators.
- Game world management can begin with simple entity and world structs, avoiding over-engineering with complex systems like ECS initially.
- Level editing can be approached by creating simple, custom editors or using third-party tools like LDtk or Tiled.
- For 3D games, Raylib supports 3D models, materials, and shaders, enabling the creation of 3D graphics and effects.
- Hot reloading and web builds are possible with Odin + Raylib, offering flexibility for development and distribution.
- Resources for learning more include a book on Odin, blog posts, video tutorials, and community support on Discord.