Irp!-GEE

A forum where you can announce your awesome project(s).

Moderator: MaxCoderz Staff

User avatar
kalan_vod
Calc King
Posts: 2932
Joined: Sat 18 Dec, 2004 6:46 am
Contact:

Post by kalan_vod »

T0RM3N7 wrote:how are you saving the tilemaps as matricies or lists or what?
i believe its in matricies atm, he mentioned about strings.
DarkAuron
Maxcoderz Staff
Posts: 1349
Joined: Sat 18 Dec, 2004 6:53 pm

Post by DarkAuron »

Each element in a list can hold 10 digits before it goes into scientific notation. If I only had 10 tiles (value of 0-9) per map I could fit 10 tiles per element, but since I plan on doing 100 tiles per map (values of 0-99), I can store 5 tiles per element, which is better than just a tile per element. To more easily explain how it works, if I had 0123456789 in an element, and divided it by 100, I'd have 01234567.89, then take the fPart( and you'd get the value of 89. Then just get the fPart(int(num)/100 and you have the next value, etc. Theres a slight flaw with this that I have to do a special check with. Now for saving, I have to multiply the tile # and add to the element, then downsize the multiplier every loop (done via a calculation dependant on the loop variable). Anyways gotta get offline, hope all that made sense (if not I'll explain later)
[Gridwars Score] - E: 1860037 M: 716641 H: 261194
DarkerLine
Calc Wizard
Posts: 526
Joined: Tue 08 Mar, 2005 1:37 am
Location: who wants to know?
Contact:

Post by DarkerLine »

The numbers actually have significant digits even after you go into scientific notation. I believe you can store 14 digits before something gets rounded off.
just try to be nice to people.
_________________
My TI Blog - http://mpl.unitedti.org/
DarkAuron
Maxcoderz Staff
Posts: 1349
Joined: Sat 18 Dec, 2004 6:53 pm

Post by DarkAuron »

....wow, you're right. Wasn't sure I believed you until I tried it. And yeah, it cuts off to just 0's past 14. Thanks!! That'll help a lot :)
[Gridwars Score] - E: 1860037 M: 716641 H: 261194
Post Reply