tidyups
This commit is contained in:
parent
3a4a48e2c6
commit
4557f78175
5 changed files with 3 additions and 2 deletions
BIN
cpuprofile.pprof
Normal file
BIN
cpuprofile.pprof
Normal file
Binary file not shown.
|
@ -15,7 +15,7 @@ var _ interface {
|
||||||
} = &Fill{}
|
} = &Fill{}
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
gob.Register(Fill{})
|
gob.Register(&Fill{})
|
||||||
gob.Register(color.Gray{})
|
gob.Register(color.Gray{})
|
||||||
gob.Register(color.RGBA{})
|
gob.Register(color.RGBA{})
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,7 +16,7 @@ var _ interface {
|
||||||
} = &SceneRef{}
|
} = &SceneRef{}
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
gob.Register(SceneRef{})
|
gob.Register(&SceneRef{})
|
||||||
}
|
}
|
||||||
|
|
||||||
// SceneRef loads a gzipped, gob-encoded Scene from the asset FS.
|
// SceneRef loads a gzipped, gob-encoded Scene from the asset FS.
|
||||||
|
|
Binary file not shown.
1
main.go
1
main.go
|
@ -112,6 +112,7 @@ func writeLevel1() {
|
||||||
},
|
},
|
||||||
Components: []interface{}{
|
Components: []interface{}{
|
||||||
&engine.Fill{
|
&engine.Fill{
|
||||||
|
ID: "bg_fill",
|
||||||
Color: color.Gray{100},
|
Color: color.Gray{100},
|
||||||
ZOrder: 0,
|
ZOrder: 0,
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue