I'd like to introduce how to use StateGo with Go programming language.
ebiten (if you use ebiten framework.)
--/ | +- ebiten : StateGo samples for 2D Framework Ebiten | +- general : a StateGo sample for general purposes. | +- test : "try and error" tests to research. | +- test-ebiten : "try and error" ebiten tests to research. | +- wiki : etc.
A sample for general purposes.
testControl.psgg using StateGo.
Without or with any framework, you may use this state machine as the template.
Open cmd.exe then type ...
go run testControl.go
ebiten is a 2d game library.
I created a sample framework to copolate with ebiten library.
Draw apis must be called at draw function in "ebiten framework". So, I prepared drawlists for pushing draw apis at update timing. Then call drawlist at "ebiten's draw timing".
mainCtonrol has a menu and five features.
Four features are implementing simple features and ebiten's example.
The one feature is for calling general StateGo Control introduced above this section.
testControl (as is genaral's one)
This sample only differs testControl from ''sample #1''
This sample does not have
You may create and put
testControl into this sample.
Gophers love ebiten
This a sample game using ebiten and StateGo.
Go Gopher by Renee French is licensed under the Creative Commons Attribution 3.0 License.