You are browsing as a guest. Sign up (or log in) to start making projects!

23m 8s logged

Devlog one
.
Motivation for project:
.
Hello, I’m River. I quite like game development, and my favorite way to develop games is with raylib+zig, so I thought that I may as well make some code to easily handle one of the most common patterns in developing games.
.
.
Description of project:
.
My goal of this is to build a utility to handle spritesheets with animated and non-animated sprites for games that use raylib+zig.
.
This means that code readability and quality will be the top priorities instead of development speed as the goal is to create something that other people will want to use. Spaghetti is acceptable for something such as this.
.
.
Progress so far:
.
I’m in the process of creating types for creating sprite handling structs at compile time, those being the AnimationGenerator, SpriteGenerator and SpritesheetGenerator.
.
Each of the ‘generator’ types are named as such because they contain the information needed to generate a type that handles something. For example, the SpriteGenerator type can specify the information needed to draw a sprite: a file path to an image and a source rectangle (it is more complicated for animated sprites). The idea is to make it where an instance of the generated type will automatically have a method for drawing itself from the given image at the source rectangle without having to manually specify either one of those things anywhere except the generator type. Something similar will also exist for handling sprite with one or more animation.

0
1

Comments 0

No comments yet. Be the first!