Skip to content

Commit a389ad0

Browse files
authored
Uses tileElement.Image as Drawable
This matches the code available from this lesson
1 parent 9bbf787 commit a389ad0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tutorials/_posts/2018-05-31-tilemap.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ for _, tileLayer := range levelData.TileLayers {
8383
if tileElement.Image != nil {
8484
tile := &Tile{BasicEntity: ecs.NewBasic()}
8585
tile.RenderComponent = common.RenderComponent{
86-
Drawable: tileElement,
86+
Drawable: tileElement.Image,
8787
Scale: engo.Point{1, 1},
8888
}
8989
tile.SpaceComponent = common.SpaceComponent{

0 commit comments

Comments
 (0)