20243197 #12

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

View File

@ -84,3 +84,5 @@ User Contol: ASDW
| :--: | :-------------- |
| 2025.04.14 | Updated the Markdown, initial creation of the project |
| 2025.04.15 | Create the folders and js files. Create the HTML, CSS for the projects. |
| 2025.04.19 | Put sprites, make initial stage. |
| 2025.04.20 | Done with initial stage, but no move rock. |

34
main.js
View File

@ -10,20 +10,20 @@ let is_img;
// Map
let tileMap = [
' ',
'wtwwwwwwwwwwwwww',
'wt ttttttt ttttw',
'wt$imttttt(ihttw',
'wtt tt ttttttttw',
'wttttttttt)isttw',
'wt ttrtttttttttw',
'wt ttwtttt ttttw',
'wttt rtt llt rtw',
'wtt tttt ll rfrw',
'w tttaa ttwt rtw',
'wttt aatt wttttw',
'wttttttttttttttw',
'wt*i@ttttt^i#ttw',
'wt%istttt tttttw',
'w,wwwwwwwwwwwwww',
'w,,,,,,,,,,,,,,w',
'w,$im,,,,,(ih,,w',
'w,,,,,,,,,,,,,,w',
'w,,,,,,,,,)is,,w',
'w,,,,r,,,,,,,,,w',
'w,,,,w,,,,,,,,,w',
'w,,,,r,,,ll,,r,w',
'w,,,,,,,,ll,rfrw',
'w,,,,aa,,,w,,r,w',
'w,,,,aa,,,w,,,,w',
'w,,,,,,,,,,,,,,w',
'w,*i@,,,,,^i#,,w',
'w,%is,,,,,,,,,,w',
'wwwwwwwwwwwwwwww',
];
@ -87,7 +87,7 @@ function setup(){
let tile = new Group();
tile.img = tile_img;
tile.collider = 'none';
tile.tile = "t";
tile.tile = ",";
tile.scale = tileSize/tile_img.width;
// Flag
@ -311,7 +311,7 @@ function isOpen(x,y){
}
let tile = tileMap[j][i];
if (tile == ' ' || tile == 't'){
if (tile == ' ' || tile == ','){
return true;
} else if (tile == 'a'|| tile=='l'){
gameOver();
@ -326,7 +326,7 @@ function isOpen(x,y){
}
function movingSprite(sprite, dx, dy){
}
function win(){