Cubets — Cube Arena Game
A minimalist 3D mini-game built with Three.js, featuring a neon cyberpunk aesthetic and futuristic glow effects. Players control a glowing cube and must avoid enemies in a dynamic arena — similar in concept to agar.io or snake-style gameplay.
TypeScript Three.js Vite Node.js
Project Overview
Cubets is a lightweight 3D web game built with Three.js, combining neon cyberpunk visuals with smooth gameplay and glowing aesthetic effects. You control a luminous cube that navigates through a 2D-like arena, avoiding randomly spawned enemies while scoring points and leveling up.
Key Features
- Neon Glow FX: Futuristic visual effects powered by UnrealBloomPass.
- Player Control: Smooth 2D movement using WASD or arrow keys.
- Dynamic Enemies: Randomly generated enemy cubes with adjustable spawn limits.
- Scoring & Level System: Gain points, level up, and trigger color transitions with neon bursts.
- Modular Architecture: Separated components for player, enemy, collision, scoring, transitions, and more.
- Design Patterns Implemented:
- Composition Root
- Event-Driven Visual Pattern
- Observable State Pattern
- UI Overlay Pattern
- State Gate Pattern