Skip to content

Commit

Permalink
Merge branch 'main' into debangi29-uno-with-computer
Browse files Browse the repository at this point in the history
  • Loading branch information
debangi29 authored Jul 10, 2024
2 parents 22db68c + e01d660 commit 346485c
Show file tree
Hide file tree
Showing 168 changed files with 10,096 additions and 1,145 deletions.
7 changes: 5 additions & 2 deletions Games/2048_win/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,17 @@ function cellCreator(c, timeOut) {
}

var randomValue = Math.floor(Math.random() * 4 + 1); //create value 1, 2, 3 or 4
if (randomValue == 2){
randomValue =2;
}
if (randomValue == 3) {
randomValue = 2;
randomValue = 4;
} //3 --> 4
if (randomValue == 1) {
randomValue = 2;
} //1 --> 2
if (randomValue == 4) {
randomValue = 2;
randomValue = 4;
} //4-->2
var position = document.getElementById("" + randomX + randomY);
var tile = document.createElement("DIV"); //create div at x, y
Expand Down
Binary file added Games/Alien_Invasion/asset/Macbook-Air.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Games/Alien_Invasion/asset/Mobile.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Games/Alien_Invasion/asset/iPad-PRO-11.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
44 changes: 9 additions & 35 deletions Games/Alien_Invasion/index.html
Original file line number Diff line number Diff line change
@@ -1,44 +1,18 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE-edge">
<meta name="viewport" content="width-device-width, initial-scale=1.0">
<title>AttackAlienInvader Game</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Bangers&display=swap" rel="stylesheet">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Bubble Shooter Game</title>
<link rel="stylesheet" href="style.css">

</head>


<body>
<canvas id="canvas1"></canvas>

<!-- characters -->
<img id="player" src="assets/player.png">
<img id="angler1" src="assets/angler1.png">
<img id="angler2" src="assets/angler2.png">
<img id="lucky" src="assets/lucky.png">
<img id ="hivewhale" src = "assets/hivewhale.png">
<img id = "drone" src = "assets//drone.png">
<div id="game-container">
<div id="score">Score: <span id="score-value">0</span></div>
<div id="game-area"></div>
<button id="restart-btn">Restart Game</button>
</div>
<script src="script.js"></script>


<!-- props -->
<img id="projectile" src="assets/projectile.png">
<img id ="gears" src = "assets/gears.png">
<img id ="smokeExplosion" src = "assets/smokeExplosion.png">
<img id ="fireExplosion" src = "assets/fireExplosion.png">

<!-- environment -->
<img id="layer1" src="assets/layer1.png" />
<img id="layer2" src="assets/layer2.png" />
<img id="layer3" src="assets/layer3.png" />
<img id="layer4" src="assets/layer4.png" />

<script src="script.js"> </script>
</body>

</html>
</html>
Loading

0 comments on commit 346485c

Please sign in to comment.