-raffie- wrote:
Can you make the fuel limited and then have it refilled after for example, 2 turns?
I think I can, it's not so hard.
-raffie- wrote:
If so it would be nice to have the display show the fuel left, is that still possible with the smaller sprite? I can post a version without the numbers on the display.
I'm not quite sure about how it would be implemented but I have an ideas.
Suppose, we have 652 fuel units left. Just factoring out every digit-position with looping division, script will separate number 652 into three: 6, 5 and 2 which will be used in the selection of the appropriate .png... something like:
if (_ones == 1) PutAtOnesPlace(_1.png); else
if (_ones == 2) PutAtOnesPlace(_2.png); else
if ...
...
if (_tens == 1) PutAtTensPlace(_1.png); else
....
...
and so on.
I'll write it soon. I need a couple of days. Some work came like a bolt from the blue: preparing for autumn term in the uni, buying different things... oh lord! :O 3 days left! D: How did 2 months of relaxation fly by that fast?! Oh... :(