refactor level, getting to tiles

This commit is contained in:
anton.gurov
2019-10-31 14:01:54 +03:00
parent e0bab00a23
commit c372670953
11 changed files with 189 additions and 180 deletions

View File

@ -10,11 +10,6 @@ type Layer struct {
defaultColor uint32
}
func AddLayer(idx int, colorName string) Layer {
c := blt.ColorFromName(colorName)
return Layer{idx: idx, defaultColor: c}
}
func (layer *Layer) before() *Layer {
blt.Layer(layer.idx)
return layer