don't duplicate background tile

This commit is contained in:
Max Bradbury 2020-07-19 14:30:45 +01:00
parent 578b46ca34
commit 6cca316d31
2 changed files with 4 additions and 4 deletions

View File

@ -66,7 +66,7 @@ pub fn add_tiles(game_data: String, image: String, prefix: String) -> String {
colour_id: None colour_id: None
}; };
if !game.tiles.contains(&tile) { if tile != bitsy_parser::mock::tile_background() && !game.tiles.contains(&tile) {
game.add_tile(tile); game.add_tile(tile);
tile_index += 1; tile_index += 1;

View File

@ -41,7 +41,7 @@ TIL a
11111111 11111111
NAME block NAME block
TIL 2 TIL 1
00011000 00011000
00111000 00111000
00011000 00011000
@ -51,7 +51,7 @@ TIL 2
00011000 00011000
00111100 00111100
TIL 3 TIL 2
00111100 00111100
01100110 01100110
01100110 01100110
@ -61,7 +61,7 @@ TIL 3
01100000 01100000
01111110 01111110
TIL 4 TIL 3
00111100 00111100
01100110 01100110
01100110 01100110