Marble Music is a sandbox music game where marbles fall and produce sounds when they collide with instrument objects. Place instruments freely, design marble trajectories, and create your own unique musical compositions.
Through my experience in game development clubs and career exploration, I have built a strong foundation in game development. While taking CTP431, I became interested in the intersection of music and games, and wanted to create a project that combines these two fields.
I was inspired by the Marble Machine, where physical marbles play musical instruments, and Line Rider, where a sled rides along lines synchronized with music. These projects sparked the idea for Marble Music.
Marble trajectories are pre-calculated for accurate collision detection. Gravity, reflection (95% bounciness), and friction are applied to create natural and realistic movement.
Beat instruments (drums, cymbals, etc.) and melody instruments (piano) are distinguished. Melody instruments support 12 pitches (C to B), and volume is adjusted based on collision velocity.
When marbles collide with instruments, visual feedback is provided through scale changes and color flash effects. Bubble shaders create transparent and beautiful instrument appearances.
Place Entry and Exit portals to teleport marbles instantly. This is useful for creating complex trajectories and repeating patterns.
Preview the expected trajectory before launching a marble. The physics simulation runs ahead of time and displays the path as a dotted line.
Place spawners that automatically launch marbles at regular intervals. Drop marbles in sync with the beat to create rhythmic music.