we're ready for tenants
This commit is contained in:
@@ -9,6 +9,7 @@ import (
|
||||
"edgaru089.ink/go/gl01/internal/io"
|
||||
"edgaru089.ink/go/gl01/internal/util"
|
||||
"edgaru089.ink/go/gl01/internal/util/itype"
|
||||
"edgaru089.ink/go/gl01/internal/work"
|
||||
"github.com/go-gl/glfw/v3.3/glfw"
|
||||
)
|
||||
|
||||
@@ -110,9 +111,9 @@ func (g *Game) Init(win *glfw.Window) {
|
||||
}
|
||||
})
|
||||
|
||||
}
|
||||
work.Init()
|
||||
|
||||
const airAccel = 0.1
|
||||
}
|
||||
|
||||
// Update updates the game state, not necessarily in the main thread.
|
||||
func (g *Game) Update(win *glfw.Window, delta time.Duration) {
|
||||
@@ -121,6 +122,8 @@ func (g *Game) Update(win *glfw.Window, delta time.Duration) {
|
||||
|
||||
clock := util.NewClock()
|
||||
|
||||
work.Update(delta)
|
||||
|
||||
io.Diagnostics.Times.Logic = clock.Restart()
|
||||
|
||||
g.imgui()
|
||||
|
||||
Reference in New Issue
Block a user