we're ready for tenants

This commit is contained in:
2025-12-19 13:48:48 +08:00
parent b20abbe803
commit afc9904651
4 changed files with 22 additions and 7 deletions

View File

@@ -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()