Skip to content

Commit

Permalink
Add support for tilemaps with 4x4 tiles (#1471)
Browse files Browse the repository at this point in the history
  • Loading branch information
riknoll authored Feb 7, 2024
1 parent 2ff4ce1 commit 5148fec
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libs/game/assetTemplates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ function tilemap16(lits: any, ...args: any[]): tiles.TileMapData { return null }
//% pyConvertToTaggedTemplate
function tilemap32(lits: any, ...args: any[]): tiles.TileMapData { return null }

//% helper=getTilemapByName
//% pyConvertToTaggedTemplate
function tilemap4(lits: any, ...args: any[]): tiles.TileMapData { return null }

namespace assets {
//% helper=getTilemapByName
//% pyConvertToTaggedTemplate
Expand Down
2 changes: 2 additions & 0 deletions libs/game/tilemap.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
enum TileScale {
//% block="4x4"
Four = 2,
//% block="8x8"
Eight = 3,
//% block="16x16"
Expand Down

0 comments on commit 5148fec

Please sign in to comment.