This is an archived, read-only copy of the United-TI subforum , including posts and topic from May 2003 to April 2012. If you would like to discuss any of the topics in this forum, you can visit Cemetech's
TI-BASIC subforum. Some of these topics may also be directly-linked to active Cemetech topics. If you are a Cemetech member with a linked United-TI account, you can link United-TI topics here with your current Cemetech topics.
TI-Basic =>
TI-BASIC
Author |
Message |
|
Bryan Thomas Outer Limit Software
Advanced Member
Joined: 20 May 2003 Posts: 298
|
Posted: 20 Aug 2003 12:13:29 am Post subject: |
|
|
Ok here is my perdicament. Im helping my friend on a project. And its a game that requires a level editor. Now, basically its a very complex system that he used for a level, since basic cant scroll he has frames. He wants 9 frames per level. At first I told him that I would make the level editor insert the cordinates for each line into a list. However the lists ARE MASSIVE.
So I had this idea to store the numbers for 2 or three lines into one big digit and fit that number into on list cell then some how access each number individually to draw the level. Thus saving memory.
However I havent programmed ti-83 BASIC for a while now and my brain is fried. I just cant figure out a way to make this work. Should I somehow store it into a big long string then substring it? or should I convert a list variable to a string then substring it? lol. I so how do I do it Im drawing a blank on how to make this work.
Please if you have an ideas post the,... Thanx alot.
Bryan Thomas |
|
Back to top |
|
|
NETWizz Byte by bit
Bandwidth Hog
Joined: 20 May 2003 Posts: 2369
|
Posted: 20 Aug 2003 04:49:22 am Post subject: |
|
|
Go with strings.
You will need a # to string generator too. I have made one.
I am saying to go with strings because it will be fast and provide a huge amount of storage.
Also, if your only problem is storing coordinates, that is easy.
12->A
13->B
(A,B) represent one coordinate
while iPart(B)
.1B->B
End
A+B->C
C will be 12.13; thus, you have combined two coordinates into one quick.
If you really want to combine 4 into one, it will be more complicated.
I do not know how to write it off the top of my head, but I can figure it out, also, it will be slower.
I will get back to this topic tomorrow.
Last edited by Guest on 20 Aug 2003 06:54:47 am; edited 1 time in total |
|
Back to top |
|
|
|
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