لعبتي الأولى
by RapidCoder6191 lines2.6 KB
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>لعبتي الأولى</title>
<style>
body {
margin: 0;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
background: linear-gradient(45deg, #0f0c29, #302b63, #24243e);
font-family: Arial, sans-serif;
}
.game-box {
text-align: center;
background: rgba(255,255,255,0.1);
padding: 40px;
border-radius: 20px;
backdrop-filter: blur(10px);
border: 2px solid rgba(255,255,255,0.2);
}
h1 { color: #fff; font-size: 2rem; margin-top: 0; }
#score {
color: #ffd700;
font-size: 3rem;
font-weight: bold;
display: block;
margin: 20px 0;
}
#clickBtn {
background: #ff4757;
color: white;
border: none;
padding: 20px 50px;
font-size: 1.8rem;
border-radius: 50px;
cursor: pointer;
transition: all 0.2s;
box-shadow: 0 10px 0 #c0392b;
font-weight: bold;
}
#clickBtn:active {
transform: translateY(8px);
box-shadow: 0 2px 0 #c0392b;
}
#resetBtn {
margin-top: 20px;
background: #2ed573;
color: white;
border: none;
padding: 10px 30px;
font-size: 1rem;
border-radius: 30px;
cursor: pointer;
}
</style>
</head>
<body>
<div class="game-box">
<h1>🎯 اضغط بأسرع ما تستطيع</h1>
<span id="score">0</span>
<br>
<button id="clickBtn">اضغط هنا</button>
<br>
<button id="resetBtn">🔄 إعادة الضبط</button>
</div>
<script>
let score = 0;
const scoreDisplay = document.getElementById('score');
const clickBtn = document.getElementById('clickBtn');
const resetBtn = document.getElementById('resetBtn');
clickBtn.onclick = function() {
score++;
scoreDisplay.textContent = score;
// تأثير اهتزاز بسيط
this.style.transform = 'scale(0.95)';
setTimeout(() => this.style.transform = 'scale(1)', 100);
};
resetBtn.onclick = function() {
score = 0;
scoreDisplay.textContent = score;
};
</script>
</body>
</html>Game Source: لعبتي الأولى
Creator: RapidCoder61
Libraries: none
Complexity: moderate (91 lines, 2.6 KB)
The full source code is displayed above on this page.
Remix Instructions
To remix this game, copy the source code above and modify it. Add a ARCADELAB header at the top with "remix_of: game-rapidcoder61" to link back to the original. Then publish at arcadelab.ai/publish.