Sleazy Fork is available in English.
its good
Dieses Skript sollte nicht direkt installiert werden. Es handelt sich hier um eine Bibliothek für andere Skripte, welche über folgenden Befehl in den Metadaten eines Skriptes eingebunden wird // @require https://update.sleazyfork.org/scripts/577172/1819104/Aladdin.js
let player = {
x: 100,
y: 100,
vx: 0, // Velocity X
vy: 0, // Velocity Y
speed: 5,
friction: 0.9 // This creates the "drifting" feel of flight
};
function updatePosition() {
// Apply friction to slow down gradually
player.vx *= player.friction;
player.vy *= player.friction;
// Update coordinates based on velocity
player.x += player.vx;
player.y += player.vy;
}
window.addEventListener('keydown', (e) => {
if (e.key === 'w') player.vy -= player.speed;
if (e.key === 's') player.vy += player.speed;
if (e.key === 'a') player.vx -= player.speed;
if (e.key === 'd') player.vx += player.speed;
});