20243197 #12

Closed
20243197 wants to merge 30 commits from 20243197/20243197:20243197 into 20243197
2 changed files with 17 additions and 2 deletions
Showing only changes of commit e2e4abe420 - Show all commits

BIN
assets/Sink.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 742 B

19
main.js
View File

@ -12,8 +12,8 @@ let tileMap = [
' ', ' ',
'wtwwwwwwwwwwwwww', 'wtwwwwwwwwwwwwww',
'wt ttttttt ttttw', 'wt ttttttt ttttw',
'wt itttttttitttw', 'wt$imttttttitttw',
'wtt tt ttttttttw', 'wtt tt ttttitttw',
'wtttttttttt tttw', 'wtttttttttt tttw',
'wt ttttttt ttttw', 'wt ttttttt ttttw',
'wt ttwtttt ttttw', 'wt ttwtttt ttttw',
@ -66,6 +66,7 @@ function preload(){
baba_text_img = loadImage("/assets/Text_BABA.webp"); baba_text_img = loadImage("/assets/Text_BABA.webp");
flag_text_img = loadImage("/assets/Text_FLAG.webp"); flag_text_img = loadImage("/assets/Text_FLAG.webp");
rock_text_img = loadImage("/assets/Text_ROCK.webp");
} }
function setup(){ function setup(){
@ -140,6 +141,13 @@ function setup(){
baba_text.tile = '*'; baba_text.tile = '*';
baba_text.scale = tileSize/baba_text_img.width; baba_text.scale = tileSize/baba_text_img.width;
// rock_text
let rock_text = new Group();
rock_text.img = rock_text_img;
rock_text.collider = 'dyinamic';
rock_text.tile = '$';
rock_text.scale = tileSize/rock_text_img.width;
// you // you
let you = new Group(); let you = new Group();
you.img = you_img; you.img = you_img;
@ -154,6 +162,13 @@ function setup(){
win_text.tile = '#'; win_text.tile = '#';
win_text.scale = tileSize/win_img.width; win_text.scale = tileSize/win_img.width;
// move
let move = new Group();
move.img = move_img;
move.collider = 'dyinamic';
move.tile = 'm';
move.scale = tileSize/move_img.width;
new Tiles(tileMap, tileSize/2, tileSize/2, tileSize, tileSize); new Tiles(tileMap, tileSize/2, tileSize/2, tileSize, tileSize);
//BABA //BABA