Ozzy Bubbles
About this app
Play a fun, Ozzy Bubbles themed game.
Ozzy Bubbles π°πΆββοΈ π°πΆββοΈ π°πΆββοΈ π°πΆββοΈ π°πΆββοΈ π°πΆββοΈ π°πΆββοΈ π°πΆββοΈ πͺπΆββοΈ
Related apps
Put this on your site
Source
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>Ozzy Bubbles</title>
<meta name="description" content="Play a fun, Ozzy Bubbles themed game.">
<meta name="keywords" content="game, Ozzy Bubbles, HTML5">
<style>
#game {
height: 100vh;
background: linear-gradient(to right, #f83600 0%, #f9d423 100%);
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
font-family: 'Old English Text MT', serif;
}
.scene {
flex: 0 0 auto;
margin: 0 10px;
padding: 20px;
background-color: #fff;
border-radius: 10px;
transition: transform 0.3s ease-in-out;
display: flex;
align-items: flex-end;
justify-content: center;
height: 70vh;
width: 30vw;
position: relative;
}
.coin {
position: absolute;
top: 0;
left: 50%;
transform: translateX(-50%);
font-size: 2rem;
animation: spin 2s linear infinite;
}
.player {
font-size: 3rem;
position: absolute;
bottom: 0;
}
.door {
position: absolute;
top: 0;
left: 50%;
transform: translateX(-50%);
font-size: 2rem;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
</style>
</head>
<body>
<div id="game">
<div class="scene" id="scene-D"><span class="coin">π°</span><span class="player">πΆββοΈ</span></div>
<div class="scene" id="scene-E"><span class="coin">π°</span><span class="player">πΆββοΈ</span></div>
<div class="scene" id="scene-H"><span class="coin">π°</span><span class="player">πΆββοΈ</span></div>
<div class="scene" id="scene-I"><span class="coin">π°</span><span class="player">πΆββοΈ</span></div>
<div class="scene" id="scene-I"><span class="coin">π°</span><span class="player">πΆββοΈ</span></div>
<div class="scene" id="scene-L"><span class="coin">π°</span><span class="player">πΆββοΈ</span></div>
<div class="scene" id="scene-L"><span class="coin">π°</span><span class="player">πΆββοΈ</span></div>
<div class="scene" id="scene-L"><span class="coin">π°</span><span class="player">πΆββοΈ</span></div>
<div class="scene" id="scene-S"><span class="door">πͺ</span><span class="player">πΆββοΈ</span></div>
</div>
<script>
const scenes = Array.from(document.querySelectorAll('.scene'));
let activeSceneIndex = 0;
let score = 0;
const updateScore = (points) => {
score += points;
console.log(`Score: ${score}`);
};
const moveToNextScene = () => {
scenes[activeSceneIndex].classList.remove('active');
activeSceneIndex++;
if (activeSceneIndex >= scenes.length) activeSceneIndex = 0;
scenes[activeSceneIndex].classList.add('active');
};
const handleKeyDown = (event) => {
switch (event.key) {
case 'ArrowRight':
moveToNextScene();
break;
case 'ArrowUp':
const coin = scenes[activeSceneIndex].querySelector('.coin');
if (coin) {
coin.remove();
updateScore(10);
}
break;
}
};
window.addEventListener('keydown', handleKeyDown);
scenes[0].classList.add('active');
</script>
</body>
</html>
NEW APPS
These are apps made by the community!