Meta Description" name="description" />
<!DOCTYPE html>
<html>
<head>
<title>Funk FPS Mobile</title>
<script src="https://aframe.io/releases/1.4.0/aframe.min.js"></script>
</head>
<body style="margin: 0; overflow: hidden;">
<div id="ui" style="position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 100; text-align: center;">
<button onclick="playFunk()" style="padding: 15px 30px; font-size: 18px; border-radius: 10px; background: #ff007b; color: white; border: none; font-weight: bold;">DJ Vitor kzz🎵</analogic.red>
</div>
<a-scene>
<a-assets>
<audio id="funk" src="https://www.soundhelix.com/examples/mp3/SoundHelix-Song-1.mp3" preload="auto"></audio>
</a-assets>
<a-sky color="#000"></a-sky>
<a-plane position="0 0 0" rotation="-90 0 0" width="50" height="50" color="#222"></a-plane>
<a-light type="ambient" color="#444"></a-light>
<a-light type="point" intensity="2" position="2 4 4" color="#ff007b"></a-light>
<a-entity id="rig" position="0 1.6 0">
<a-camera look-controls="magicWindowTrackingEnabled: true" wasd-controls>
<a-cursor color="#ff007b" radius="0.01"></a-cursor>
<a-entity id="braco-direito" position="0.4 -0.4 -0.5" rotation="10 -10 0">
<a-box width="0.15" height="0.15" depth="0.6" color="#f1c27d"></a-box>
<a-box width="0.16" height="0.16" depth="0.2" position="0 0 -0.3" color="#333"></a-box> </a-entity>
<a-entity id="braco-esquerdo" position="-0.4 -0.4 -0.5" rotation="10 10 0">
<a-box width="0.15" height="0.15" depth="0.6" color="#f1c27d"></a-box>
<a-box width="0.16" height="0.16" depth="0.2" position="0 0 -0.3" color="#333"></a-box>
</a-entity>
</a-camera>
</a-entity>
<a-box position="-2 1.5 -5" animation="property: rotation; to: 0 360 0; loop: true; dur: 3000" color="#4CC3D9"></a-box>
<a-sphere position="2 1.2 -4" radius="0.5" color="#EF2D5E"></a-sphere>
</a-scene>
<script>
function playFunk() {
const audio = document.querySelector('#funk');
audio.play();
document.getElementById('ui').style.display = 'none'; // Esconde o botão após clicar
}
// Lógica simples de "balanço" dos braços ao andar
window.addEventListener('keydown', (e) => {
const bracos = [document.querySelector('#braco-direito'), document.querySelector('#braco-esquerdo')];
const tempo = Date.now() * 0.01;
const balanço = Math.sin(tempo) * 0.02;
bracos.forEach(b => {
let pos = b.getAttribute('position');
pos.y += balanço;
b.setAttribute('position', pos);
});
});
</script>
</body>
</html>
4
3
358KB
1297KB
492.0ms
588.0ms
1,727.0ms