Red Light Green Light: Squid Game 3D
A fully playable 3D survival game built entirely from scratch in Python using raw OpenGL fixed-function pipeline and GLUT. Inspired by Squid Game, it adds a full shooting system, sprint mechanics, jump physics, enemy bullet dodging, and a shield power-up.
Gameplay recording
Screenshots · 10 captures
01 / 10Architecture
The doll's red, yellow, and green states form an explicit state machine that every other system reads each frame.
01
State machine
- Green → Yellow → Red
- Random durations, shorter per phase
02
Player
- Sprint and stamina, exhaustion
- Jump with gravity
- Shooting, ammo
03
World
- Enemies and projectiles
- Power-ups
- Collision detection
04
Render
- OpenGL fixed-function
- Doll rotation synced to state
- Screen tints and HUD
Technical highlights
- 01
No game engine or physics library used; all rendering, collision detection, and gravity simulated via hand-written math.
- 02
Third-person orbital camera with smooth lerp interpolation and player-relative WASD movement.
- 03
State machine enemy AI with randomised intervals, scaling difficulty phases, and dodgeable projectile physics.
- 04
Complete exhaustion stamina system and power-up progression.
Stack
- Python
- OpenGL
- GLUT
- Physics Engine
- State Machines