petrSchreiber / BetweenTheBubbles-tb

Bugs adventure in an infinite bubbleverse, thinBasic game
1 stars 0 forks source link

Would using a physics library reduce our development time ? #24

Closed DirectuX closed 4 years ago

DirectuX commented 4 years ago

The Pilgrim is gliding on water with friction. Vectors for bump calculations will certainly be used... Echoes like a call for a physics library.

petrSchreiber commented 4 years ago

Thank you for the idea, Sebastian,

what I know is that using raw thinBASIC may get us to performance issues with multiple objects.

The bump mechanics, dragging and more are not that complex, could be achieved with #compiled / #endcompiled and FreeBASIC JIT performance boost.

However, if you know a good physics library, I am all for it. Usually, the trouble with 3rd party physics libraries comes once the use callbacks. Callbacks expect compiled function, which thinBASIC as interpreter cannot offer.

Could be again hacked in by using #compiled freebasic part :)

petrSchreiber commented 4 years ago

// I am currently going the way of ECS + simple physics system, so far so good, optimization needed, but ideas in mind

Why: Educational value

DirectuX commented 4 years ago

Considering later email conversations, I agree to not use third-party library for physics.