Game
Minigame Collection



2 months ago

I might have found the dumbest solution to handle ellipse/circle collisions


I was stumped working on fixing collisions, so I was doing research on a couple of different websites and Bing's Copilot result looked interesting (I have no idea where it got this solution from) it turned out to be what I needed. I really need some more schooling as the math looks super simple for calculating the overlap. I know people hate AI and trust me I do to. It hardly ever does anything useful but as I was trying to get the collisions working with ellipse it showed sampling edge of the ellipse and of course I didn't think of that. So, I did what any "normal" person would do and implement point sampling for all circle object (uses the canvas ellipse function to draw) so I can pass it into my circle vs polygon collision method. I also implemented a sort of "lod" system for it. This I feel might be inefficient but it's funny and it works better than whatever I could find online and whatever the mostly useless AI could spit out. I of course made a simpler "cheaper" method for circle vs circle but it's nice to have something more robust. Also, I know it's taboo to use AI to code. I don't use it to make things for me. (as if it could write something that works first try anyway lmao) I mostly use it after I can't find what I'm looking for online. It's surprisingly good at understanding what I'm looking for. Anyway, both methods are implemented, and the bug fixes will be out soon.



0 comments

Loading...

Next up

I'm about to start on the fun stuff!

Rebooted the project using Godot!

Line Battle is about 75% done!

Quests inspired by @WhitethornGames ' Spray Paint Simulator entered your quest log!

Bring color to the world! Restore worn-out surfaces with a fresh coat of paint & watch them come back to life.

Play the free demo to get started: https://bit.ly/spraypaintsimdemo

It's looking like the next update will add Tank War!

Let Them Come: Onslaught by @Tuataragames has come to Game Jolt!

Celebrate by completing our quests!

Play the FREE demo of Let Them Come: Onslaught on Steam: https://bit.ly/LTCOdemo

WEAPONS

I'm tired... (Warning the audio is not what I would call balanced lmao)

@WhalesAndGames is a Jolter to Watch and an indie studio who creates positive, polished games and art brimming with whalistic personality! Follow @WhalesAndGames before the quest ends on May 20 and you'll get Coins!

Oops I accidently made a cool screen saver...