diff --git a/cmd/test/trianlge.go b/cmd/test/trianlge.go index 8dcf030..fa141a5 100644 --- a/cmd/test/trianlge.go +++ b/cmd/test/trianlge.go @@ -77,7 +77,7 @@ func (t *Tri) Update(c *Context) { } tt := *t tt.Spawned = true - tt.Visible = false + tt.Visible = true tt.Disconnect() if c.Spawn(&tt) == nil { counter++ diff --git a/engine.go b/engine.go index e61a74a..f03607a 100644 --- a/engine.go +++ b/engine.go @@ -11,7 +11,7 @@ import ( ) const ( - LayerBufSize = 0 + LayerBufSize = 100 ) type GraphicsLibrary = ebiten.GraphicsLibrary @@ -115,6 +115,12 @@ func NewEngine( ret.handleEvents = make(EventChan) ret.Objects = &Objects{} ret.buttons = MouseButtonMap{} + + siz := ret.RealWinSize() + w, h := int(siz.X), int(siz.Y) + for i:=0 ; i