eugeneloza / FireMadness

Project moved to https://gitlab.com/EugeneLoza/FireMadness
GNU General Public License v3.0
16 stars 6 forks source link

Hibox should correspond to image #1

Open eugeneloza opened 8 years ago

eugeneloza commented 8 years ago

At this moment hitbox is just a 1x1 square that is equal despite the bot size and shape. It should follow the bot's shape at least for the palyer bot. (Роман Беневолент @ VK.COM)

A good idea, but I think it's too hard to implement... The point is to access scaled pixels of TGLImage and check them against alpha transparency... It's possible, but will take a lot of time. Making custom non-square hitboxes for each bot is a bit easier but more buggy and quiet a handful of additional work.

Or, might there be an easy way to implement either of those?

eugeneloza commented 8 years ago

Softened a hitbox a little. That might be a simple but better-than-nothing solution. Maybe, I should add "size" to bots?

at this moment all bots sizes are equal to 0.2: (random<0.1) or (sqr(newx-bots[i].x-0.5)+sqr(newy-bots[i].y-0.5)<0.2)