fix tile colors, mem constant

This commit is contained in:
anton.gurov
2019-10-31 16:38:29 +03:00
parent cddc5fa70f
commit 2bb7cae632
2 changed files with 10 additions and 9 deletions

View File

@ -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()),