...
This commit is contained in:
parent
d378490396
commit
79c9da4ae1
3 changed files with 10 additions and 5 deletions
|
@ -135,6 +135,3 @@ func (p *Player) Update(c *Context) {
|
||||||
}}
|
}}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (p *Player) Event(c *gg.Context) {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
|
@ -75,11 +75,13 @@ func (t *Tri) Update(c *Context) {
|
||||||
if t.Spawned {
|
if t.Spawned {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
counter++
|
|
||||||
tt := *t
|
tt := *t
|
||||||
tt.Spawned = true
|
tt.Spawned = true
|
||||||
|
tt.Visible = false
|
||||||
tt.Disconnect()
|
tt.Disconnect()
|
||||||
c.Spawn(&tt)
|
if c.Spawn(&tt) == nil {
|
||||||
|
counter++
|
||||||
|
}
|
||||||
}}
|
}}
|
||||||
|
|
||||||
for _, event := range c.Events {
|
for _, event := range c.Events {
|
||||||
|
|
|
@ -10,6 +10,10 @@ import (
|
||||||
"sync"
|
"sync"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
const (
|
||||||
|
LayerBufSize = 0
|
||||||
|
)
|
||||||
|
|
||||||
type GraphicsLibrary = ebiten.GraphicsLibrary
|
type GraphicsLibrary = ebiten.GraphicsLibrary
|
||||||
type RunOptions = ebiten.RunGameOptions
|
type RunOptions = ebiten.RunGameOptions
|
||||||
|
|
||||||
|
@ -69,6 +73,8 @@ type Engine struct {
|
||||||
cursorPos Vector
|
cursorPos Vector
|
||||||
outerEvents, handleEvents EventChan
|
outerEvents, handleEvents EventChan
|
||||||
wg sync.WaitGroup
|
wg sync.WaitGroup
|
||||||
|
|
||||||
|
bufs [LayerBufSize]*Image
|
||||||
}
|
}
|
||||||
|
|
||||||
type engine Engine
|
type engine Engine
|
||||||
|
|
Loading…
Reference in a new issue