fix tile colors, mem constant
This commit is contained in:
@ -47,10 +47,11 @@ func (*GameState) Do(f func()) {
|
||||
// func doSomething(State main.GameState, args...) {
|
||||
// ...
|
||||
// State.Do(func() {
|
||||
// ...do stuff in main thread
|
||||
// ...do stuff in main thread, ie render something
|
||||
// })
|
||||
// ...
|
||||
// }
|
||||
// Use this trick CAREFULLY, cause closures may cause memleaks
|
||||
|
||||
var State = GameState{
|
||||
mainfunc: make(chan func()),
|
||||
|
Reference in New Issue
Block a user