Three.js game in TypeScript