Marble Music

A Music Sandbox with Marbles and Instruments

Play Now
Scroll

About

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.

Why I Made This

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.

Inspiration

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.

How It Works

🔮

Physics Simulation

Marble trajectories are pre-calculated for accurate collision detection. Gravity, reflection (95% bounciness), and friction are applied to create natural and realistic movement.

🎹

Instrument System

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.

Visual Feedback

When marbles collide with instruments, visual feedback is provided through scale changes and color flash effects. Bubble shaders create transparent and beautiful instrument appearances.

🌀

Portal System

Place Entry and Exit portals to teleport marbles instantly. This is useful for creating complex trajectories and repeating patterns.

📍

Trajectory Prediction

Preview the expected trajectory before launching a marble. The physics simulation runs ahead of time and displays the path as a dotted line.

⏱️

Periodic Spawning

Place spawners that automatically launch marbles at regular intervals. Drop marbles in sync with the beat to create rhythmic music.

Credits

Development Sejin An
Engine Unity 6
Sprites Generated with ChatGPT
Drum Samples 99sounds.org
Piano Samples freesound.org - sgossner