diff options
| author | Martin Kagamino Lehoux <martin@lehoux.net> | 2025-07-04 23:55:19 +0200 |
|---|---|---|
| committer | Martin Kagamino Lehoux <martin@lehoux.net> | 2025-07-04 23:57:36 +0200 |
| commit | 56b3d85afaf260be93e46e2b930f79ade461789b (patch) | |
| tree | d15e08f5c29d94b363b04e00c35044d63f762a06 /main.go | |
| parent | 548b18531aed2eeb284ce121832070bd10822d4f (diff) | |
Simple refactor
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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) { |
