diff --git a/assets/Text_LAVA.webp b/assets/Text_LAVA.webp new file mode 100644 index 0000000..9c567d6 Binary files /dev/null and b/assets/Text_LAVA.webp differ diff --git a/assets/Text_WATER.webp b/assets/Text_WATER.webp new file mode 100644 index 0000000..c9e1c2f Binary files /dev/null and b/assets/Text_WATER.webp differ diff --git a/main.js b/main.js index 3c03bec..924b59c 100644 --- a/main.js +++ b/main.js @@ -12,8 +12,8 @@ let tileMap = [ ' ', 'wtwwwwwwwwwwwwww', 'wt ttttttt ttttw', - 'wt$imttttttitttw', - 'wtt tt ttttitttw', + 'wt$imttttttihttw', + 'wtt tt ttttisttw', 'wtttttttttt tttw', 'wt ttttttt ttttw', 'wt ttwtttt ttttw', @@ -58,12 +58,15 @@ function preload(){ water_img = loadImage("/assets/Water.webp"); lava_img = loadImage("/assets/Lava.webp"); flag_img = loadImage("/assets/Flag.webp"); + is_img = loadImage("/assets/Text_IS.webp"); win_img = loadImage("/assets/Win.webp"); you_img = loadImage("/assets/You.webp"); move_img = loadImage("/assets/Move.webp"); - stopText_img = loadImage("/assets/Stop.webp"); + hot_img = loadImage("/assets/Hot.webp"); + sink_img = loadImage("/assets/Sink.webp"); + stopText_img = loadImage("/assets/Stop.webp"); baba_text_img = loadImage("/assets/Text_BABA.webp"); flag_text_img = loadImage("/assets/Text_FLAG.webp"); rock_text_img = loadImage("/assets/Text_ROCK.webp"); @@ -169,6 +172,20 @@ function setup(){ move.tile = 'm'; move.scale = tileSize/move_img.width; + // hot + let hot = new Group(); + hot.img = hot_img; + hot.collider = 'dyinamic'; + hot.tile = 'h'; + hot.scale = tileSize/hot_img.width; + + // sink + let sink = new Group(); + sink.img = sink_img; + sink.collider = 'dyinamic'; + sink.tile = 's'; + sink.scale = tileSize/sink_img.width; + new Tiles(tileMap, tileSize/2, tileSize/2, tileSize, tileSize); //BABA