From d38c70dc627cea501f3e52cba3b34c85b1ec01ab Mon Sep 17 00:00:00 2001 From: Dang Quoc Hoang Date: Mon, 13 Oct 2025 11:16:51 +0700 Subject: [PATCH 1/3] update flappy bird --- index.html | 828 ++++++++++++++++++++++++++--------------------------- 1 file changed, 399 insertions(+), 429 deletions(-) diff --git a/index.html b/index.html index 1f386a0..237ed2b 100644 --- a/index.html +++ b/index.html @@ -1924,7 +1924,367 @@

♠️ SLOT7 BLACKJACK - by cc ♥️

-
+
+ +
+

🐦 Flappy Bird Game của ĐQH. Ae tối ưu nó giúp tôi.

+
+
Score: 0
+
Best: 0
+
+
+ +
+

Game Over!

+

Score: 0

+ +
+
+
+ +

Click or press SPACE to flap!

+
+
+ + + + +
+
@@ -2304,198 +2664,110 @@

Máy Tính Slot9

- - -
-

Welcome to slot 18

-
- - -
-

Điều kì diệu sẽ hiện ra sau 5 giây

- -
- +

+ Điều kì diệu sẽ hiện ra sau 5 giây

+ - - -
- - -
- - -
- -
- -
- - -
- - -
-

Cảm ơn bạn đã ghé thăm Slot 18! ✨

-
@@ -3749,256 +3968,7 @@

Bitcoin sập buồn quá để giá cho anh em theo dõi

-
-
-
-
Slot 99
-

Cảm ơn anh đã tạo ra trang web này

-

- - Hải Phúc - - tự hào là một phần trong anh :)) <3 -

- - -
-
-
-
-
Đang yêu đời… 99%
-
-
- - -
-

Tạo mã QR từ liên kết

-

Dán URL vào ô bên dưới, nhấn Tạo QR và tải về PNG.

- -
- -
- - -
-
- -
-
-
-

Tip: dùng link ngắn để QR sắc nét hơn.

-
-
- - -
- - - - - - - - - -
- +
From a4c8673dcb049c825d7692b37932c4934932820f Mon Sep 17 00:00:00 2001 From: Dang Quoc Hoang Date: Mon, 13 Oct 2025 11:21:54 +0700 Subject: [PATCH 2/3] change slot --- index.html | 1556 ++++++++++++++++++++++++++-------------------------- 1 file changed, 778 insertions(+), 778 deletions(-) diff --git a/index.html b/index.html index 237ed2b..0e50ae3 100644 --- a/index.html +++ b/index.html @@ -1924,512 +1924,152 @@

♠️ SLOT7 BLACKJACK - by cc ♥️

-
- -
-

🐦 Flappy Bird Game của ĐQH. Ae tối ưu nó giúp tôi.

-
-
Score: 0
-
Best: 0
-
-
- -
-

Game Over!

-

Score: 0

- -
-
-
- -

Click or press SPACE to flap!

-
-
+
+ +
- - -
-
- - -
- -
-
-

Máy Tính Slot9

-
0
-
- - - - - - - - - - - - - - - - - - - - - - -
-
-
+ .slot9-btn-zero { + grid-column: span 2; + } + +
+
+

Máy Tính Slot9

+
0
+
+ + + + + + + + + + + + + + + + + + + + + + +
+
+
+
+ + +
+ + +
+ + +
+ +

Nà ná Nà na, anh oii

+

My fít pẩgraph

+
+ + +
+ + +
+ + +
+ + +
+ + +
+ + +
+ + +
+ + +
+ + +
+ + +
+ + +
+ + +
+ + +
+ - -
+

HDV - .NET Developer

+

DEVQN

+ + +
- -
+ +
- -
+ +
- -
+ +
- -
+ +
- -
+ +
- -
+ +
+ +

Bitcoin sập buồn quá để giá cho anh em theo dõi

+
- -
- - -
- - -
- -

Nà ná Nà na, anh oii

-

My fít pẩgraph

-
+ +
- -
+ +
- -
+ +
- -
+ +
- -
+ +
- -
+ +
- -
+ +
- -
+ +
+ +
+

🐦 Flappy Bird Game của ĐQH. Ae tối ưu nó giúp tôi.

+
+
Score: 0
+
Best: 0
+
+
+ +
+

Game Over!

+

Score: 0

+ +
+
+
+ +

Click or press SPACE to flap!

+
+
- -
+ - @keyframes typing { - from { - width: 0; - } - to { - width: 100%; - } - } + -
+ function updateBird() { + bird.velocity += bird.gravity; + bird.y += bird.velocity; - -
+ // Ground collision + if (bird.y + bird.height >= canvas.height || bird.y <= 0) { + endGame(); + } + } - -
+ function updatePipes() { + // Move pipes + pipes.forEach(pipe => { + pipe.x -= 2; + }); - -
+ // Remove off-screen pipes + if (pipes.length > 0 && pipes[0].x + pipeWidth < 0) { + pipes.shift(); + score++; + scoreElement.textContent = score; + } - -
+ // Add new pipes + pipeTimer++; + if (pipeTimer > 90) { + const topHeight = Math.random() * (canvas.height - pipeGap - 100) + 50; + pipes.push({ + x: canvas.width, + topHeight: topHeight + }); + pipeTimer = 0; + } + } - -
+ function checkCollisions() { + pipes.forEach(pipe => { + // Check collision with top pipe + if (bird.x < pipe.x + pipeWidth && + bird.x + bird.width > pipe.x && + bird.y < pipe.topHeight) { + endGame(); + } + + // Check collision with bottom pipe + if (bird.x < pipe.x + pipeWidth && + bird.x + bird.width > pipe.x && + bird.y + bird.height > pipe.topHeight + pipeGap) { + endGame(); + } + }); + } - -
- -

Bitcoin sập buồn quá để giá cho anh em theo dõi

- - -
+ ctx.beginPath(); + ctx.arc(280, 80, 15, 0, Math.PI * 2); + ctx.arc(295, 80, 20, 0, Math.PI * 2); + ctx.arc(310, 80, 15, 0, Math.PI * 2); + ctx.fill(); + } - -
+ function gameLoop() { + if (!gameRunning) return; - -
+ // Clear canvas + ctx.clearRect(0, 0, canvas.width, canvas.height); + + // Draw background + drawBackground(); + + // Update game objects + updateBird(); + updatePipes(); + checkCollisions(); + + // Draw game objects + drawPipes(); + drawBird(); - -
+ requestAnimationFrame(gameLoop); + } - -
+ function jump() { + if (gameRunning) { + bird.velocity = bird.jumpPower; + } + } - -
+ function endGame() { + gameRunning = false; + + // Update high score + if (score > highScore) { + highScore = score; + localStorage.setItem('flappyHighScore', highScore); + highScoreElement.textContent = highScore; + } + + finalScoreElement.textContent = score; + gameOverDiv.classList.add('show'); + startBtn.textContent = 'Start Game'; + } - -
+ window.startGame = function() { + if (gameRunning) return; + + // Reset game state + bird.y = canvas.height / 2; + bird.velocity = 0; + pipes.length = 0; + pipeTimer = 0; + score = 0; + scoreElement.textContent = score; + + gameOverDiv.classList.remove('show'); + gameRunning = true; + startBtn.textContent = 'Playing...'; + + gameLoop(); + }; - -
+ window.restartGame = function() { + gameOverDiv.classList.remove('show'); + startGame(); + }; - -
+ // Event listeners + canvas.addEventListener('click', jump); + + document.addEventListener('keydown', function(e) { + if (e.code === 'Space') { + e.preventDefault(); + jump(); + } + }); + + // Initial draw + drawBackground(); + drawBird(); + })(); + + +
From 6205b4b2866a3a782fd5156e9ae93a179d954091 Mon Sep 17 00:00:00 2001 From: Dang Quoc Hoang Date: Mon, 13 Oct 2025 11:22:50 +0700 Subject: [PATCH 3/3] change slot --- index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 0e50ae3..46ce023 100644 --- a/index.html +++ b/index.html @@ -3622,12 +3622,12 @@

Game Over!