Physics Demo

Physics Demo
by on (#242299)
Hi!!

My name's Bruno and I'm new here! :D
I've grown-up with a NES clone and having the opportunity to write code for it, is a dream come true! I haven't been this excited about programming in years!!!

So, I've been using the 8bitworkshop IDE for a few weeks now and after creating a mini text adventure, I decided to start experimenting with collision detection.
The entire thing is written in C and I am well aware of its performance issues. Nevertheless, I'm looking forward into learning how to speed-up the critical parts using assembly (inline or files).

Image
Sped-up footage, it's actually pretty slow...

https://youtu.be/j1qBVLnMHvQ

About me:
As a professional, I'm a software developer (Python, C and some C++) for one of the big Japanese IT companies, nothing game related though, just boring business stuff.
As a hobbyist, I develop under the name "Ninja Dynamics" and I have some unfinished/work-in-progress stuff for PC and Android.
As a gamer, I'm completely addicted to Dragon Ball FighterZ (Demon~SS3 rank). I've tried to summarize my favorite games but there are just too many to mention. (Doom 2016 <3)
As an anime fan, Dragon Ball and Neon Genesis Evangelion are my favorite animes ever, alongside with Full Metal Alchemist: Brotherhood and Food Wars, just to name a few.

I have so many questions for you guys, so I'm really looking forward into learning a lot more from you all!
Re: Physics Demo
by on (#242300)
That's a pretty fun and impressive physics simulation!

Welcome here!
Re: Physics Demo
by on (#242304)
Cool. Are you handling rotation, or just bouncing? Either is neat I'm just curious.
Re: Physics Demo
by on (#242313)
ccovell wrote:
That's a pretty fun and impressive physics simulation!

Welcome here!

Thank you!! :)

pubby wrote:
Cool. Are you handling rotation, or just bouncing? Either is neat I'm just curious.

Thanks!! There is no rotation, just some basic bouncing.

What I'm trying to achieve is a high-level C game framework, while retaining an acceptable level of performance.
The collision detection module so far, was the hardest one to put together (no floats? no sin()? cos()? atan2()? ARGH!!!! :lol: ), but I'm happy I did it! :)

Now I'm wondering if I can rewrite it in assembly... :roll:
Re: Physics Demo
by on (#242320)
Nice demo, thanks for sharing! :D
If it would be used for a game, then a ball-ball collision detection would be handy.
Nevertheless, it's fun as is already...