stardance has been extended another month! the new deadline is october 31 :)

You are browsing as a guest. Sign up (or log in) to start making projects!

Ball Pit Sim

  • 5 Devlogs
  • 11 Total hours

A physics simulator built in python and pygame ce, all physics code is written from scratch, pygame only used to display graphics and GUI

Ship #1

I made a simple 2d physics collison simulator. I originally intended to have complex polygon collisions but my circumstances didn’t allow me to work on this project for quite some time. Nonetheless I am happy with what I made and I hope you can appreciate it :)

  • 5 devlogs
  • 11h
  • 13.32x multiplier
  • 146 Stardust
Try project → See source code →
Open comments for this post

1h 34m 10s logged

Fixed the bug, took a little longer than i originally thought but also fixed some other things. add some usefull debug features. Anyway collisions for circles is done and pretty fun to play around with

0
0
8
Open comments for this post

2h 15m 27s logged

Lot of work done today, and even more headaches. Changed Particle class to a ball class (still called particle tho). Balls have collision with walls and floor AND with eachother. The white board is for actually understanding the maths. There is a bug and I know what it is, but I need to sleep

0
0
20
Open comments for this post

1h 0m 43s logged

Realised I messed up by diving straight into displaying squares, made a new gameplan and basically started from scratch. I added a Vector class to make the math easier to write later, and a particle class to make a single particle bounce off the floor.

0
0
6
Open comments for this post

3h 39m 59s logged

Learned the basics of pygame, and started work. Firstly, I found out that the pygame.Rect() function is pretty much only usefull for buttons in my use case, so i made a class to create four points around a centre point, and using some basic trig, got a square showing up that allowed for a lot more freedom that pygame.Rect(). I added gravity and am now working on collisions.

0
0
4

Delete project?

Are you sure you want to permanently delete this project? This action cannot be undone.

All devlogs, followers, and associated data will be removed.

Followers

Loading…