Discussion about software development for the old-school Gameboys, ranging from the "Gray brick" to Gameboy Color
(Launched in 2008)
You are not logged in.
Hello everyone,
I've recently begun developing with GBDK (2.95-3) and it's quite fun so far.
But for my current project, I need point numbers - one way or another. It doesn't matter whether it's floats, doubles or some homebrew solution.
My point is that writing this myself would only be a last option, I'd much rather use something existing that's known to work (at least sorta).
So if anyone could tell me how to get floats or doubles working in GBDK or point me to a library that does point numbers, that'd be greatly appreciated.
Many thanks in advance,
Robbi Blechdose
Offline
Offline
How would I add that into my game?
Can I just include the file, and if so, where is it located?
Offline
Yes, it should come with GBDK in the "lib" subdirectory, or in the "gbdk-libs" downloadable on Sourceforge.
Offline
It'd be nice if you could tell me the specific include line (I didn't manage to do that somehow.)
Also, it is my understanding that even though a framework for it exists, floats are actually not supported in GBDK. Is that true or do I have to declare them differently when using this file?
Offline