more space tiles, added collectible (misses animation yet)

This commit is contained in:
Thomas von Dein 2024-04-21 19:21:34 +02:00
parent 933b9c403f
commit dd5d0a7a04
6 changed files with 362 additions and 433 deletions

File diff suppressed because it is too large Load Diff

Binary file not shown.

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

View File

@ -151,7 +151,7 @@ func LevelToSlice(game *Game, level *ldtkgo.Level, tilesize int) (Map, Map) {
tile := assets.Tiles["default"]
// FIXME: load from LDTK file
tile.Sprite = assets.Assets["primarymap"].SubImage(
tile.Sprite = assets.Assets["tilemap-oil"].SubImage(
image.Rect(tileData.Src[0],
tileData.Src[1],
tileData.Src[0]+layer.GridSize,