Skip to content

Instantly share code, notes, and snippets.

@dradtke
Created July 30, 2014 17:28
Show Gist options
  • Select an option

  • Save dradtke/729b0304f01771dfd38b to your computer and use it in GitHub Desktop.

Select an option

Save dradtke/729b0304f01771dfd38b to your computer and use it in GitHub Desktop.
package main
import (
"github.com/dradtke/allegory"
)
type MyState struct {
allegory.BaseState
}
func (s *MyState) InitState() {
allegory.AddView(new(MyView))
}
type MyView struct {
allegory.BaseView
}
func main() {
allegory.Init(new(MyState))
defer allegory.Cleanup()
allegory.Loop()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment