← Feed
@dolanor@hachyderm.io
2025-08-23 18:05 UTC
Been following Fat Old Yeti/Idiot Coder tutorial on how to create a rogue-like in Go:
https://www.fatoldyeti.com/posts/roguelike-tutorial-0/
As ebiten doesn't work on my ubuntu anymore, I made the choice to use http://g3n.rocks as I wanted to play with it for so long.
I'm still at step 2, but adapting g3n to just do 2D work without knowing g3n that much and being rusty in OpenGL made it a little bit more complex.
I just want to make g3n be abstracted and render in 3D some really 2D game mechanics. It's a little bit challenging as some loops are not at the same place (adding tiles to a 3D scene doesn't make you recalculate their position in the render loop, so you need to account for them only once).
And having my children challenge me along the way: "hey, can you make the wall nicer?", "can you add a 3D model instead".
So I dug into how to load a material with Displacement map, normal map, etc.
I'm having fun and I'm pretty proud about the result after a few hours of tinkering.
#golang #3d #g3n #ebiten #blender3d #roguelike
Replies (2)
-
Got the base assets from the tutorial
Got great textures from @polyhaven@masto.ai
A nice model from @mz4250@dice.camp (that I sligthly modified in blender to have pointy ears 🧝♂️ )
If you want to follow along, the code is: https://github.com/dolanor/roublard
Open ##5199178
-
IT'S ALIVE!
Now I can move the character.
It was way more adaptation as ebiten is more immediate mode and g3n is more retained, but I kind of like it as it is. I don't have a render loop, it is handled by the 3D engine.
I just use the update loop to update the position based on KeyPress events.
Problem is, now it interacts with the camera control as well, so I get to move my character and change the camera settings as well.
#golang #gamedev #3d #g3n
Open ##5199179