aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorMartin Kagamino Lehoux <martin@lehoux.net>2023-08-30 13:50:39 +0200
committerMartin Kagamino Lehoux <martin@lehoux.net>2023-08-30 13:50:39 +0200
commit8add12c817e5af9d41bcf96c8387f8c2322b6f04 (patch)
tree27a08f5b7696bdf5a7192c5e3497d12d90652366 /main.go
parent89150a146d14c593aa7aa4bfb5569f76e62a2428 (diff)
fix: Better physics by multiplying by 10
Diffstat (limited to 'main.go')
-rw-r--r--main.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.go b/main.go
index 6206902..8185bca 100644
--- a/main.go
+++ b/main.go
@@ -20,7 +20,7 @@ func NewTile(size Point, position Point, color color.Color) Tile {
}
var soilColor = color.RGBA{0x60, 0x40, 0x20, 0xff}
-var soil = NewTile(Point{280, 200}, Point{20, 20}, soilColor)
+var soil = NewTile(Point{2800, 2000}, Point{200, 200}, soilColor)
type Game struct {
Persons []*Person
@@ -71,7 +71,7 @@ func (g *Game) Draw(screen *ebiten.Image) {
}
func (g *Game) Layout(outsideWidth, outsideHeight int) (screenWidth, screenHeight int) {
- return 320, 240
+ return 3200, 2400
}
func main() {