This commit is contained in:
Andrey Parhomenko 2023-11-09 15:51:19 +03:00
parent 27b803e4e5
commit a3642a9b33

View file

@ -3,8 +3,8 @@ package gg
import ( import (
"github.com/hajimehoshi/ebiten/v2" "github.com/hajimehoshi/ebiten/v2"
"github.com/hajimehoshi/ebiten/v2/inpututil" "github.com/hajimehoshi/ebiten/v2/inpututil"
"github.com/mojosa-software/godat/sparsex" "github.com/reklesio/gods/maps"
"github.com/mojosa-software/godat/mapx" "github.com/reklesio/gods"
"fmt" "fmt"
"time" "time"
) )
@ -32,7 +32,7 @@ type WindowConfig struct {
// The main structure that represents current state of [game] engine. // The main structure that represents current state of [game] engine.
type Engine struct { type Engine struct {
wcfg *WindowConfig wcfg *WindowConfig
objects *mapx.OrderedMap[Object, struct{}] objects maps.Ordered[Object, struct{}]
lastTime time.Time lastTime time.Time
dt Float dt Float
camera *Camera camera *Camera