Calculator Tools Calculator Tools
Create

CalabriaMMA - Disney Infinity 3D Game

Nov 13, 2023

About this app

Experience the excitement of CalabriaMMA, a real 3D Disney Infinity game set in London. Jump high, skydive, belly flop, and create a crack shaped like the word 'CALABRIA' in Old English font. Move the player using arrow keys in a 3D/2.5D environment. Enjoy stunning graphics with RTX quality, dust, shockwave, and particles effects. Drag the camera by right-clicking the screen and watch it follow the player. The crack gets bigger and the camera shakes when landing from a high jump.

CalabriaMMA - Disney Infinity 4D Game CALABRIA

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>CalabriaMMA - Disney Infinity 4D Game</title>
<meta name="description" content="Experience the excitement of CalabriaMMA, a real 4D Disney Infinity game set in London. Jump high, skydive, belly flop, and create a crack shaped like the word 'CALABRIA' in Old English font. Move the player using arrow keys in a 3D/2.5D environment. Enjoy stunning graphics with RTX quality, dust, shockwave, and particles effects. Drag the camera by right-clicking the screen and watch it follow the player. The crack gets bigger and the camera shakes when landing from a high jump. Press the M key to switch to 4D camera and map view.">
<meta name="keywords" content="CalabriaMMA, Disney Infinity 4D game, London, real 4D, 2.5D, jump, skydive, belly flop, crack, Old English font, RTX quality, dust, shockwave, particles, camera, arrow keys, M key">

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<link href="https://stackpath.bootstrapcdn.com/bootstrap/5.0.2/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.

// This will run when the DOM is ready.
document.addEventListener("DOMContentLoaded", function() {
// Constants
const PLAYER_SPEED = 5; // Player movement speed
const JUMP_HEIGHT = 300; // Jump height in pixels
const CRACK_SIZE_MULTIPLIER = 1.2; // Crack size multiplier based on fall height

// Variables
let playerX = 0; // Player X position
let playerY = 0; // Player Y position
let isJumping = false; // Flag to track if player is jumping
let jumpCount = 0; // Jump count for double jump
let crackSize = 0; // Initial crack size
let is4DCameraEnabled = false; // Flag to track if 4D camera is enabled

// Event listeners
$(document).keydown(function(e) {
// Move player using arrow keys
switch (e.keyCode) {
case 37:
playerX -= PLAYER_SPEED; // Move left
break;
case 39:
playerX += PLAYER_SPEED; // Move right
break;
case 38:
playerY -= PLAYER_SPEED; // Move up
break;
case 40:
playerY += PLAYER_SPEED; // Move down
break;
case 32:
// Jump logic
if (!isJumping) {
isJumping = true;
jumpCount = 1;
jump();
} else if (jumpCount === 1) {
jumpCount = 2;
jump();
createCrack();
}
break;
case 77:
// Toggle 4D camera and map view
is4DCameraEnabled = !is4DCameraEnabled;
toggle4DCamera();
break;
}
});

// Functions
function jump() {
const jumpHeight = JUMP_HEIGHT * jumpCount;
// Perform jump animation
// Code for jumping goes here
setTimeout(function() {
isJumping = false;
jumpCount = 0;
}, 1000);
}

function createCrack() {
// Increase crack size based on fall height
crackSize += CRACK_SIZE_MULTIPLIER * JUMP_HEIGHT;
// Create crack animation
// Code for creating crack goes here
}

function toggle4DCamera() {
const gameContainer = $('#game-container');
const player = $('#player');

if (is4DCameraEnabled) {
// Switch to 4D camera and map view
gameContainer.addClass('camera-enabled');
player.hide();
} else {
// Switch back to regular player view
gameContainer.removeClass('camera-enabled');
player.show();
}
}
});

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

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

#game-container {
position: relative;
width: 100%;
height: 100vh;
perspective: 1000px;
}

#player {
position: absolute;
width: 50px;
height: 50px;
background-color: #f00;
border-radius: 50%;
top: calc(50% - 25px);
left: calc(50% - 25px);
transition: transform 0.3s;
}

#crack {
position: absolute;
width: 200px;
height: 50px;
background-color: #fff;
color: #000;
font-family: 'Old English Text MT', serif;
font-size: 30px;
text-align: center;
top: calc(50% - 25px);
left: calc(50% - 100px);
transform-origin: center bottom;
transform: scaleX(0);
transition: transform 0.5s, background-color 0.5s;
}

#game-container.crack-formed #crack {
transform: scaleX(1);
background-color: #ff0;
}

#game-container.camera-enabled {
perspective: 4000px;
}

#game-container.camera-enabled #player {
display: none;
}

#game-container.camera-enabled #map {
display: block;
}
</style>

<link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Old+English+Text+MT" rel="stylesheet">
</head>
<body>
<div id="main-container" class="container">
<div id="game-container">
<div id="player"></div>
<div id="crack">CALABRIA</div>
<div id="map"></div>
</div>
</div>
</body>
</html>