Загрузка...

Colliding Bouncing Balls Simulation in C

Ever wonder what happens when you simulate 100 colorful balls, give them all questionable physics degrees, and trap them in a box together?

Welcome to “The Great Ball Brawl”, a chaotic, CPU-melting, mathematically-questionable X11 simulation made in pure C.

Each ball has a purpose: to bounce. Off the walls, off each other, off your GPU's will to live.

Features:

100 uniquely-colored balls (thanks, HSV and for loops)

Simple physics collisions (aka "vibes-based motion")

Real-time rendering via Xlib (yes, the real nerd stuff)

Optional recording to video using raw RGB frames piped to ffmpeg (because why not make it harder?)

Frame timer, audio ticks, and enough uint8_t to power a toaster

Made with:

C (the language of the strong)

X11 (because modern GUI toolkits are for cowards)

ffmpeg (to capture the chaos in glorious RGB24)

A ton of printf()'s and vibes

#simulation #programming #X11 #CProgramming #physics

Видео Colliding Bouncing Balls Simulation in C канала Spark House
Страницу в закладки Мои закладки
Все заметки Новая заметка Страницу в заметки

На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.

Об использовании CookiesПринять