From 3f4da9f6bddd86fbcc14f490697ed0a6040624f4 Mon Sep 17 00:00:00 2001 From: Josh Deprez Date: Sat, 31 Jul 2021 16:46:12 +1000 Subject: [PATCH] Yes --- main.go | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/main.go b/main.go index 8cec270..c038405 100644 --- a/main.go +++ b/main.go @@ -46,14 +46,14 @@ func main() { } } - tiles[3][5] = &engine.AnimatedTile{ + tiles[4][5] = &engine.AnimatedTile{ AnimDef: []engine.TileAnimFrameDef{ {Tile: 0, DurationTicks: 16}, {Tile: 1, DurationTicks: 16}, {Tile: 2, DurationTicks: 16}, }, } - tiles[2][7] = &engine.AnimatedTile{ + tiles[6][7] = &engine.AnimatedTile{ AnimDef: []engine.TileAnimFrameDef{ {Tile: 3, DurationTicks: 12}, {Tile: 4, DurationTicks: 12}, @@ -62,18 +62,16 @@ func main() { }, } - tilemap := &engine.Tilemap{ - Map: tiles, - Src: engine.ImageRef{Path: "assets/boxes.png"}, - TileSize: 16, - } - game := &engine.Game{ ScreenHeight: screenHeight, ScreenWidth: screenWidth, Scene: &engine.Scene{ Components: []interface{}{ - tilemap, + &engine.Tilemap{ + Map: tiles, + Src: engine.ImageRef{Path: "assets/boxes.png"}, + TileSize: 16, + }, engine.PerfDisplay{}, }, },