Good day,
I was under the impression that the new version 6 of GlBasic would allow a sort of fixed point implementation with the Integer functions. Is this true or do I still have to make my own fixed point library for mobile games? I'm thinking integer + GlBasic's rotation/scale functions are all I'll need.
I was wondering how some of you implement a KeyHit function where one press of a key = 1 action instead of a constant stream. Would a timer or loop be better?
Last question, what is the definitive map editor for GlBasic? I've had Mappy for a while and the Beta version of the loader is good and all but it doesn't seem to be updated and collisions are a requirement to me. Thanks for any info.
I'm not sure what you mean with fixed point?
As for the keyhit problem, see this code:
http://www.glbasic.com/forum/index.php?topic=679.0 (http://www.glbasic.com/forum/index.php?topic=679.0)
I don't have enough time to fix the collisions of Mappy at the moment but it is easy to do given some time.
Fixed point maths is where you effectively treat an integer as a floating point number - its very fast (obviously) and is useful for machines that dont have a floating point unit. Unfortunately, due to a lack of decimal points, the values aren't always as accurate as they would be if proper FP maths was used.
Anyhoo, if you want to implement fixed-point maths routines yourself, this place http://home.clara.net/tixy/source/index.html#Fixed-Point%20Maths (http://home.clara.net/tixy/source/index.html#Fixed-Point%20Maths) has C code to do it.
Awesome. Thanks guys.