Tech Disscuss - Asteriod Gen.

For asteroid generation, I’m using a pretty simple but flexible system. It all starts with a 32×32 image. Each pixel in that image acts as a blueprint: the color determines what gets generated—walls, floors, borders, or even different types of walls.
The process goes pixel by pixel. If a pixel is transparent, nothing is drawn. But if it has color, I decide what to place based on that color. On top of that, the outside of the rock is also created from this image. I add some randomness by letting the color shift slightly depending on the pixel’s X coordinate, so it doesn’t all look uniform.
In the end, I combine the outer layer and the generated interior, save those images, and then render them in the game. The result is an asteroid that feels both structured (since it follows the base image) and organic (thanks to the randomization).
In my next tech discussion, I’ll dive into how I built the chunking system for the game. This system is what keeps everything efficient and manageable, making sure the world doesn’t overload while still feeling seamless as you explore. I’ll break down how it works, why I chose this approach, and some of the challenges I ran into along the way.
Get Moon Rocks and Slimes
Moon Rocks and Slimes
Save the moon; save the earth
| Status | In development |
| Author | Voided Pixels Studio |
| Genre | Survival, Role Playing |
| Tags | 2D, GameMaker, Pixel Art, Post-apocalyptic, Sci-fi, Singleplayer, Space, Top-Down |
More posts
- MRaS - Dev Log 192 days ago
- Big bug fix4 days ago
- Costumes!11 days ago
- Firing my lasers!15 days ago
- MRaS - Dev Log 1817 days ago
- Stable Alpha21 days ago
- MRaS - Dev Log 1722 days ago
- MRaS - Dev Log 1623 days ago
- MRaS - Dev Log 1529 days ago
- Bug Fixes33 days ago

Comments
Log in with itch.io to leave a comment.
Nice, I really like that the exterior visualization matches the interior structure, makes things feel more real.