• Add Review
  • Subscribe
  • Nominate
  • Submit Media
  • RSS

Saved Variables



After considering many different types of variables to use, I settled on 64-bit fixed point numbers. These numbers are stable for all integers in their range, yet give you three decimal places. I wanted you to be able to have decimal point numbers so you could do the math you need for things like ring menus, smooth movement, etc. but still be able to use them to index arrays or IDs. Floating point numbers can do strange things when being converted into integers as they reach larger values, and they're slower to work with than integers.

This trick had been done on 32-bit numbers with three decimal places accuracy, but it limits you to numbers of about 2 million in either direction (positive numbers and negative numbers). I've commonly run into problems with this limit when trying to write RPG systems on 32-bit fixed point variable game engines (like old versions of ACKNEX and WDL script). Using 64-bit fixed point numbers gives you an insane limit you could probably count the stars in our galaxy with. I think it will do for an arbitrary RPG game.

Posts

Pages: 1
yay some progress \(:D)/
*still keeps stalking page*
All of this is just for that create-an-event dialog. There's so much that goes into it that it's going to fit an update.

And my mailbox indicator is stuck at (1) again, despite there being no new messages.
author=WolfCoder
All of this is just for that create-an-event dialog. There's so much that goes into it that it's going to fit an update.

And my mailbox indicator is stuck at (1) again, despite there being no new messages.


How long did you do develop it to this update (excluding the non-dev time)?
Hit the Reset Mail Count button.
Once this engine is able to make a game you bet your butt I'm doing it.
Once this engine is able to make a game you bet your butt I'm going to start something, lose interest and abandon it.
Either way, you'll find bugs for me to shoot.

How long did you do develop it to this update (excluding the non-dev time)?


About 10 hours if you added up all the time I was able to sit down to work on this. Perhaps less.
Pages: 1