Click here for free DL of the app version that can save data.
No:52576 254
Prev Next
Stickman character runs in jungle
Developer Winnerweiner2113|Date and time 24/3/23 6:40:10
Build time 7.1 sec|Game capacity 0.951KB|Script

This AI is dumb af let stickman = document.createElement('img'); stickman.src='emozi_hamuster.png'; stickman.style.position = 'absolute'; stickman.style.left = '0px'; stickman.style.top = '50%'; document.body.appendChild(stickman); window.addEventListener('mousemove', function(event) { let x = event.movementY // get gamma value for left and right tilt let y = event.movementX // get beta value for front and back tilt if(x > 10) { stickman.style.left = parseInt(stickman.style.left) + 5 + 'px'; } else if(x < -10) { stickman.style.left = parseInt(stickman.style.left) - 5 + 'px'; } if(y > 10) { stickman.style.top = parseInt(stickman.style.top) - 5 + 'px'; } else if(y < -10) { stickman.style.top = parseInt(stickman.style.top) + 5 + 'px'; } });
Prev Next   Back  0  0 Menu 

[PR]現在の人気ゲームランキング

Click here for free DL of the app version that can save data.

(C)2023 HisashiApp