Physics Demo

A place where you can keep others updated about your NES-related projects through screenshots, videos or information in general.

Moderator: Moderators

Post Reply
User avatar
wonder
Posts: 46
Joined: Sat Aug 31, 2019 2:12 pm

Physics Demo

Post by wonder » Thu Sep 05, 2019 4:08 pm

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!
Attachments
balls.nes
Up/Down/Left/Right: Move cursor
A: Spawn balls
B + Up/Down: Inc/Dec amount
(40.02 KiB) Downloaded 287 times
Image

ccovell
Posts: 1015
Joined: Sun Mar 19, 2006 9:44 pm
Location: Japan
Contact:

Re: Physics Demo

Post by ccovell » Thu Sep 05, 2019 4:29 pm

That's a pretty fun and impressive physics simulation!

Welcome here!

User avatar
pubby
Posts: 557
Joined: Thu Mar 31, 2016 11:15 am

Re: Physics Demo

Post by pubby » Thu Sep 05, 2019 7:10 pm

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

User avatar
wonder
Posts: 46
Joined: Sat Aug 31, 2019 2:12 pm

Re: Physics Demo

Post by wonder » Fri Sep 06, 2019 2:03 am

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:
Image

User avatar
Lazycow
Posts: 105
Joined: Tue Jun 11, 2013 1:04 pm
Location: Germany
Contact:

Re: Physics Demo

Post by Lazycow » Fri Sep 06, 2019 5:47 am

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...

Post Reply