I'm making a BASIC ASCII MapMaker and it works, but I need to be able to make maps bigger than just 8 x 11. (e.g. 10 x 10).

Does anyone know a way to display a certain part of a matrix?
Smooth-scrolling is out of the picture and I'm currently trying to display different 8 x 16 sections at a time. [To no avail.]

Help is appreciated.

~Raylin

EDIT: BTW, you can throw out some relatively complex formulas (excluding strings). I'm no spring chicken to TI-BASIC.
You're storing your map(s) to a matrix/matrices? And you're averse to using strings? Well, that makes it kind of hard in my opinion. Definitely not my way of generating screen-by-screen-scroll maps. Confused
Sorry, I just... don't like how long the string maps are.
They look too complex... and MDR Falcon didn't help me any with his uber-long string concatenating formulas.
I suppose you're right. A standard 8x16 map screen is 128 characters so large maps lead to enormous strings and can sap your RAM. Aside from that, it's not all too hard.

A basic way of generating maps from strings is to store the map to the string and display it 128 characters at a time with the sub(), substring, function. To make it even easier, use a matrix as a value map.

To add a map to a string, just type it up on the home screen, add strN+" in front and "->StrN at the end (N being the number of the string you're using) and then pressing enter.

For example, say you have a 4 screen map, 512 characters. If your map looks like this:

[room 1][room 2][room 3]
[room E][room E][room 4]

then your matrix might look like this:

[1 129 257]
[0 000 385]

each cell value corresponds to where in the string a particular room's data begins.

***numerical values might have an error of +/- 1 ^^;;
While it's true that string maps can get large, matrix maps are much less efficient because they require many more bytes per element (9 if I remember correctly?) than a string (one or two bytes per element).
http://www.ticalc.org/archives/files/fileinfo/364/36409.html

http://www.ticalc.org/archives/files/fileinfo/403/40345.html

http://tifreakware.net/tutorials/83p/b/tifw/les8.htm

I hope some of these links will better assist you in learning the string detection and such. Smile
  
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