Calculator Tools Calculator Tools
Create

Disney Infinity 2.0 Game

Nov 11, 2023

About this app

Experience the official PC 3D real life RTX graphics game of Disney Infinity 2.0

Disney Infinity 2.0 Game

Related apps

Put this on your site

Source

                    <!DOCTYPE html>
<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>Disney Infinity 2.0 Game</title>
<meta name="description" content="Experience the official PC 3D real life RTX graphics game of Disney Infinity 2.0">
<meta name="keywords" content="Disney, Infinity, 2.0, PC Game, Real-life, RTX graphics">

<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap" rel="stylesheet">

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<link href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">

<script type="text/javascript">
try {
// App Javascript Goes Here. Place your entire script content inside the try block for error handling.
let timerId;
let isIdle = false;

// This function will be called when the spacebar is pressed twice
function performJump() {
// Add code to perform the jump animation and create a crack on the ground
// with dust and shockwave effects
console.log("Jumping...");
}

// This function will be called when the player is idle for 30 seconds
function performIdleAction() {
// Add code to stretch the player's back and make the cat or panther face tattoo
// vomit or roar like a moving tattoo
console.log("Idle action...");
}

// This will run when the DOM is ready.
document.addEventListener("DOMContentLoaded", function() {
$(document).keydown(function(event) {
if (event.which === 32) {
clearTimeout(timerId);
timerId = setTimeout(function() {
if (!isIdle) {
performJump();
}
}, 500);
}
});

$(document).keyup(function(event) {
if (event.which === 32) {
clearTimeout(timerId);
}
});

let idleTimer = setTimeout(function() {
performIdleAction();
isIdle = true;
}, 30000);

$(document).mousemove(function(event) {
clearTimeout(idleTimer);
idleTimer = setTimeout(function() {
performIdleAction();
isIdle = true;
}, 30000);
isIdle = false;
});
});

} catch (error) {
// This will throw the error to the parent window.
throw error;
}
</script>

<style>
/* App CSS Goes Here */
body {
font-family: 'Roboto', sans-serif;
background-color: #f0f0f0;
}

#main-container {
display: flex;
align-items: center;
justify-content: center;
height: 100vh;
}

.game-container {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
width: 500px;
height: 500px;
background-color: #fff;
border-radius: 10px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.player {
width: 100px;
height: 100px;
background-color: #ffd700;
border-radius: 50%;
position: relative;
display: flex;
align-items: center;
justify-content: center;
animation: bellyflop 1s infinite ease-in-out;
}

.player::after {
content: "";
position: absolute;
width: 50px;
height: 50px;
border-radius: 50%;
background-color: #000;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}

.player img {
width: 60px;
height: 60px;
}

.player.is-jumping {
animation: jump 1s ease-in-out;
animation-fill-mode: forwards;
}

@keyframes jump {
0% { transform: translateY(0); }
100% { transform: translateY(-300px); }
}

@keyframes bellyflop {
0% { transform: scale(1); }
50% { transform: scale(1.5); }
100% { transform: scale(1); }
}
</style>
</head>
<body>
<div id="main-container" class="container">
<div class="game-container">
<div class="player">
<img src="https://example.com/stuart.png" alt="Player 1">
</div>
</div>
</div>
</body>
</html>