JS Game Studio
💾 Save Local
⬆️ Upload
📂 Online Projects
🚀 Open in New Tab
▶ RUN CODE
Default (Light)
Darcula (Dark)
Material (Dark)
Elegant (Light)
Monokai (Dark)
Online Projects
EDITOR
// Simple Square Movement const canvas = document.createElement('canvas'); const ctx = canvas.getContext('2d'); document.body.appendChild(canvas); canvas.width = 500; canvas.height = 400; let x = 0; function draw() { ctx.fillStyle = "white"; ctx.fillRect(0,0,500,400); ctx.fillStyle = "blue"; ctx.fillRect(x, 150, 50, 50); x = (x + 2) % 500; requestAnimationFrame(draw); } draw();
OUTPUT