Yo, its been a few years since posting. But hey, just getting back into programming and of course already need some help.
I am making an rpg, which is going to have a lot of map data, and I want to "compress" in order to fit it and the program in ram. This is getting programmed in ti-basic with the doors hook in order to use the real( command.
Right now this is what I have.

Code:

"Map data stored in list
(10.1, 8.2, 2.1, 8.2, 2.1, 8.2, 10.1-> L1
"Integer part is number of times that tile appears in a row, fpart is tile number
For(y, 1, 5
For(x, 1, 10
"Get integer part
ipart(L1(2x-1->U
For(T, 1, U
<draw tile code here>
X+1->X
End
End
End

Is this the best way memory wise, and speed wise, to do it?
Since you are using Doors libs, you will have access to xLIB's DrawTileMap or xLIBC's DrawMap commands. These will probably be the fastest you will get in hybrid-basic.
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 1 of 1
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement