Skip to content
Deasy Corporation
Logos
Theos
Work
Deasy Corporation
2026 AD
Games
Starfield Drift POC
Back to Gaming Concepts
A simple drifting starfield on a 1500×1500 canvas to validate background motion and visual density.
<html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width,initial-scale=1"> <title>POC — Starfield Drift</title> <style> html, body { margin:0; width:100%; height:100%; overflow:hidden; background:#000; } canvas { display:block; width:1500px; height:1500px; } </style> </head> <body> <canvas id="c" width="1500" height="1500"></canvas> <script> const c = document.getElementById("c"); const x = c.getContext("2d"); // POC: drifting starfield (no camera, no player) const W = 1500, H = 1500; const STAR_COUNT = 600; const stars = Array.from({length: STAR_COUNT}, () => ({ x: Math.random() * W, y: Math.random() * H, r: Math.random() * 1.5 + 0.5, v: Math.random() * 0.4 + 0.1 })); function loop(){ x.clearRect(0, 0, W, H); x.fillStyle = "white"; for (const s of stars) { s.y += s.v; if (s.y > H) s.y = 0; x.beginPath(); x.arc(s.x, s.y, s.r, 0, Math.PI * 2); x.fill(); } requestAnimationFrame(loop); } loop(); </script> </body> </html> '></iframe> </div>