Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

cubes

A small interactive toy where you split cubes by moving your mouse over them.

Each cube divides into 4 smaller ones, filling the same space. Keep going until the whole board is covered in tiny colorful squares. Every split comes with a smooth animation, a burst of particles, and a satisfying bloop sound.

It's meant to be a calm, visually pleasing experience — no score, no timer, just cubes.

how to play

Move your mouse across the canvas to split cubes. Click anywhere first to enable sound.

controls

Button Action
🔊 / 🔇 Toggle sound
Reset the board

structure

index.html
css/style.css
js/
  config.js       constants
  helpers.js      math utilities
  state.js        global state and canvas setup
  audio.js        sound synthesis (Web Audio API)
  color.js        color generation per cube
  particles.js    particle system
  cubes.js        cube tree, split logic, animations
  celebration.js  max depth victory effect
  render.js       all drawing functions
  main.js         game loop, events, init

About

A small interactive toy where you split cubes by moving your mouse over them.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages