Skip to content

Commit c88c88e

Browse files
authored
Merge pull request #57 from diwant/patch-1
Uses tileElement.Image as Drawable
2 parents 5ce9d26 + a389ad0 commit c88c88e

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)