https://dev.to/ajinkyax/state-machine...
I have been working on my 2D jRPG game in GO since 4months. And following video is my development log. I used pixel-gl library for creating this game
https://github.com/faiface/pixel
Code: https://github.com/steelx/go-rpg-cgm
So far, as you can see I have a basic level of animation script which I have implemented as intro scene. And my entire game uses state machine pattern.So I just push the latest things to the top of the stack, everything gets rendered, but only top of the stack has control.i have heavily relied on map, pointers and interfaces. And even reflect conversions in some cases.In future I intend to implement SAVE feature and a Quest, as you can see I already have a town map.
#golang #gamedev #pixel