aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorMartin Kagamino Lehoux <martin@lehoux.net>2025-07-04 23:55:19 +0200
committerMartin Kagamino Lehoux <martin@lehoux.net>2025-07-04 23:57:36 +0200
commit56b3d85afaf260be93e46e2b930f79ade461789b (patch)
treed15e08f5c29d94b363b04e00c35044d63f762a06 /main.go
parent548b18531aed2eeb284ce121832070bd10822d4f (diff)
Simple refactor
Diffstat (limited to 'main.go')
-rw-r--r--main.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/main.go b/main.go
index 3aea932..aef9968 100644
--- a/main.go
+++ b/main.go
@@ -35,11 +35,11 @@ type GlobalSelection struct {
}
type Game struct {
- Entities []*Entity
- CurrentAction Action
- Selection GlobalSelection
+ Entities []*Entity
+ CurrentAction Action
+ Selection GlobalSelection
ResourceAmount int
- FaceSource *text.GoTextFaceSource
+ FaceSource *text.GoTextFaceSource
}
func DrawMove(screen *ebiten.Image, e *Entity) {
@@ -186,7 +186,7 @@ func (g *Game) Draw(screen *ebiten.Image) {
text.Draw(screen, resourceText, &text.GoTextFace{
Source: g.FaceSource,
Size: 100,
- } , op)
+ }, op)
}
func (g *Game) Layout(outsideWidth, outsideHeight int) (screenWidth, screenHeight int) {