diff --git a/PROPOSAL_20243197.md b/PROPOSAL_20243197.md index 8db7dc6..327e41d 100644 --- a/PROPOSAL_20243197.md +++ b/PROPOSAL_20243197.md @@ -41,15 +41,16 @@ User Contol: ASDW | :------ | :---: | :----------- | | BABA | | | | Rock | | | +| Wall | | | | Flag | | | | Lava | | | | Water | | | -| IS | ![is](assets/Text_IS.webp) | Operator | -| You | ![you](assets/You.webp) | | -| Move | ![Move](assets/Move.webp) | | -| Stop | ![Stop](assets/Stop.webp) | | -| Hot | ![Hot](assets/Hot.webp) | | -| Win | ![win](assets/Win.webp) | | +| IS | | Operator | +| You | | | +| Move | | | +| Stop | | | +| Hot | | | +| Win | | | | etc... diff --git a/main.js b/main.js index d276edf..aa2f2d2 100644 --- a/main.js +++ b/main.js @@ -23,7 +23,7 @@ let tileMap = [ 'wttt aatt wttttw', 'wttttttttttttttw', 'wt*i@ttttt^i#ttw', - 'wtttttttt tttttw', + 'wt%istttt tttttw', 'wwwwwwwwwwwwwwww', ]; @@ -62,10 +62,12 @@ function preload(){ is_img = loadImage("/assets/Text_IS.webp"); win_img = loadImage("/assets/Win.webp"); you_img = loadImage("/assets/You.webp"); + stop_img = loadImage("/assets/Stop.webp"); move_img = loadImage("/assets/Move.webp"); hot_img = loadImage("/assets/Hot.webp"); sink_img = loadImage("/assets/Sink.webp"); + wall_text_img = loadImage("/assets/Text_WALL.webp"); water_text_img = loadImage("/assets/Text_WATER.webp"); lava_text_img = loadImage("/assets/Text_LAVA.webp"); stopText_img = loadImage("/assets/Stop.webp"); @@ -167,6 +169,13 @@ function setup(){ water_text.tile = ')'; water_text.scale = tileSize/water_text_img.width; + // wall_text + let wall_text = new Group(); + wall_text.img = wall_text_img; + wall_text.collider = 'dyinamic'; + wall_text.tile = '%'; + wall_text.scale = tileSize/wall_text_img.width; + // you let you = new Group(); you.img = you_img; @@ -181,6 +190,14 @@ function setup(){ win_text.tile = '#'; win_text.scale = tileSize/win_img.width; + // stop + let stop = new Group(); + stop.img = stop_img; + stop.collider = 'dyinamic'; + stop.tile = 's'; + stop.scale = tileSize/stop_img.width; + + // move let move = new Group(); move.img = move_img;