Short Note
This is a post in the
go_games series.
Other posts in this series:
- Nov 21, 2025 - GO & RAYLIB ~ Get Setup
- Nov 24, 2025 - Short Note
Before we jump in
For our 2D apps I may want to use sprites to start with, so I wrote a little project for sprite sheet atlases and an app that uses it as an example. We will use this sprite sheet description atlas to give the app info about our sprite sheet without needing to hard code all the positions of each sprite.
The code is MIT so you can use it as you please as long as you read the licence and agree to it. It is placed there for your 'learning' and you may choose to make changes to it as you please though forking it and submitting improvements will be welcome should you choose. You may need to send a message to me to get it working correctly for you to make submissions.
The sprite sheet image uses alpha-color which means the image file doesn’t use an aplha channel but simply a color like purple to be the alpha channel. So I wrote ~ after consulting AI ~ a few extra functions in the go-rommy example that copy the image and repace all the colored pixels to alpha. I could have used a mask ~ I’m sure its pretty much the same.
The go-rommy sample is by no means complete, and is only an example of how to use the spritesheet atlas code.
Links:
SpriteAtlas code. This is the code to read ‘my’ sprite atlas
go-rommy code. An example to use the Sprite Atlas code. NOT an example of how to write a game.
You may choose to use the idea and re-work.
Good, that is my intention. I am learning new tools here.
Previous