Bradley's Super Jump
About this app
Play as Bradley and perform super jumps in a 2.5D London cityscape.
Bradley's Super Jump CRUCIAL
Related apps
Put this on your site
Source
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>Bradley's Super Jump</title>
<meta name="description" content="Play as Bradley and perform super jumps in a 2.5D London cityscape.">
<meta name="keywords" content="Bradley, Super Jump, 2.5D Game, London">
<style>
@import url('https://fonts.googleapis.com/css2?family=Eczar:wght@800&display=swap'); /* Old English style font */
body { background: #87CEEB; font-family: 'Eczar', serif; }
#bradley { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); animation: jump 2s infinite; height: 50px; width: 50px; background: #000; }
@keyframes jump { 0% { bottom: 0; } 50% { bottom: 100px; } 100% { bottom: 0; } }
#crack { display: none; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); color: #000; font-size: 3em; text-shadow: 3px 3px 0px rgba(0,0,0,0.2); }
</style>
</head>
<body>
<div id="bradley"></div>
<div id="crack">CRUCIAL</div>
<script type="text/javascript">
document.addEventListener('DOMContentLoaded', function() {
let isJumping = false, isSuperJumping = false;
document.addEventListener('keydown', function(e) {
if (e.code === 'Space') {
if (!isJumping) { // start first jump
isJumping = true;
document.getElementById('bradley').style.animation = 'jump 1s';
} else if (!isSuperJumping) { // start super jump
isSuperJumping = true;
document.getElementById('bradley').style.animation = 'jump 2s';
}
}
});
document.addEventListener('keyup', function(e) {
if (e.code === 'Space' && isSuperJumping) { // end super jump
document.getElementById('crack').style.display = 'block';
setTimeout(function() {
document.getElementById('crack').style.display = 'none';
}, 2000);
isJumping = false;
isSuperJumping = false;
document.getElementById('bradley').style.animation = 'jump 2s infinite';
}
});
});
</script>
</body>
</html>
NEW APPS
These are apps made by the community!