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

SWING IT

  • 4 Devlogs
  • 8 Total hours

A simple physics game about swinging a double pendulum. Drag the green handle, release it and watch the pendulum move!

Ship #1 Pending review

Swing It, is a simple physics game about swinging a double pendulum. Drag the green handle, release it and watch the pendulum move!

you can play it over at itch io directly in your browser: https://nurali312.itch.io/swing-it

The maths was pretty complicated but once that was over it was mainly about polishing the experience as the physics provided some lets say “unique” bugs.

Overall it was fun working on this and i think it came out great. its really fun to just swing it around and watch the chaos and the different trails it makes.

  • 4 devlogs
  • 8h
Try project → See source code →
Open comments for this post

3h 28m 9s logged

Devlog 4
So i decided to really polish it up.
i fixed a ton of bugs with the lower pendulum while its being grabbed.

I also thought that the simulation was a bit confusing so i made a short intro sequence teaching the player the controls and what to do.

I also added a button that applies a random force to the pendulum, a button that slows the pendulum down by increasing friction, and a button that shows the controls on screen.

Furthermore i added some nice quality of life features like the hitbox of the green handle becomes bigger the faster it is making it easier to grab while its spinning fast.
Oh and i added a little color change when grabbing which isnt very noticeable but a nice touch.

And last but not least i used claude to add some of the async stuff required by pygbag to convert it into html to be run on itch.io as a demo without downloading anything.

I also quickly made a nice logo for this in inkscape which i think looks nice.
So hopefully i can release this now!

0
0
91
Open comments for this post

2h 26m 15s logged

Devlog 3
added dragging the top pendulum which caused tons of headaches (image 3). it kept spinning insanely fast. but i managed to fix it.
i also added a nice fade out effect for the trails, added a pause button, added a reset button and added increasaing and decreasing the simulation speed.
overall im pretty happy with how it turned out!

2
0
133
Open comments for this post

1h 41m 59s logged

Devlog 2
fixed a bug where it would randomly crash because the momentum overflows and cant be stored anymore.

There was also a strange issue where it kept slowing down and losing energy even with friction set to 0.

I fixed this by switching from eulers method to RK4.
I also added a nice trail that follows it around, centered it on the screen and adjusted the screen size.

Next up i need to add grabbing the pendulums so you can move them around and play around with them. And i need to add some text on screen showing all the velocities and stuff.

0
0
29
Open comments for this post

47m 16s logged

Devlog 1
setup all the basic formulas and physics. Got it to render the pendulum.
now i need to add grabbing the pendulum and making it prettier.

0
0
75

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…