Because I am new to programming, and have many issues and questions, I am making this thread in the hopes that they will get answered. I will post programs I can't debug, and General questions. Smile

Debuging:
Please help me make this work. I want it to display this image as a title screen until the user presses enter, but I keep getting a syntax error on it I have DoorCSE, and am using Token Smile

Code:
ClrDraw
"9999999999999AAA99999999999999AA999333399999999A999399399999999999939939999399999993333999933339999399939393993999939993939399999993999393939999999399939393999999939993339399999993999993939999AAAAAAAAA3A3AAAAAAAAAAAAA3A3AAAAAAAAAAAAA3AAAAAAAAAAAAA33AAAAAAA→Str9: det(9,16,0,0
 Pause


General Questions:
How would I go about creating a game with a map using Token and Hex?
(Like a guide or a template)
It looks like you have a space between : and det( to me. I think you meant to do something like:
Code:
ClrDraw
"9999999999999AAA99999999999999AA999333399999999A999399399999999999939939999399999993333999933339999399939393993999939993939399999993999393939999999399939393999999939993339399999993999993939999AAAAAAAAA3A3AAAAAAAAAAAAA3A3AAAAAAAAAAAAA3AAAAAAAAAAAAA33AAAAAAA→Str9
det(9,16,0,0 
Pause
Note the space after the Pause.
I still get a syntax error. IS there another way to display the hex image up on the screen till enter is pressed?
The only thing I can think of that would cause a syntax error in this case is either trailing spaces on the ends of lines or typing det( out manually. Check to make sure that there are no spaces in any of your lines, and make sure that you're getting to det( through the menu that pops up when you press [2nd] [x⁻¹]MATRIX then right arrow to get to the MATH section.

As for a tilemap and sprites and such, you'd have to do that using xLIBC. I'm not entirely clear on how xLIBC handles them myself, although I've been trying to learn-- someone else could definitely explain that better.
M. I. Wright wrote:
The only thing I can think of that would cause a syntax error in this case is either trailing spaces on the ends of lines or typing det( out manually. Check to make sure that there are no spaces in any of your lines, and make sure that you're getting to det( through the menu that pops up when you press [2nd] [x⁻¹]MATRIX then right arrow to get to the MATH section.

As for a tilemap and sprites and such, you'd have to do that using xLIBC. I'm not entirely clear on how xLIBC handles them myself, although I've been trying to learn-- someone else could definitely explain that better.

Still getting it. Here is the exact code pasted from Token:

Code:
ClrDraw
"9999999999999AAA99999999999999AA999333399999999A999399399999999999939939999399999993333999933339999399939393993999939993939399999993999393939999999399939393999999939993339399999993999993939999AAAAAAAAA3A3AAAAAAAAAAAAA3A3AAAAAAAAAAAAA3AAAAAAAAAAAAA33AAAAAAA→Str9
det(9,16,0,0   
Pause

Also, this is the only part of the code, nothing before, nothing after.

Code:
Str9
shows as red if that means anything?
There's a space after every single one of those lines, and the det( line has three spaces after it. Delete those (except the one after the Pause) and it'll work fine.

The red's fine as well, it's just syntax highlighting to make the program easier to read.
Yep, that worked. Thanks Smile Will continue to edit with questions and code
Question:
What size do I make my
Code:
 <Hex>
to have it fill my entire calculator screen?
Pretty much, each pixel is a hex-decimal and your screen is about 320*240 pixels.... Smile
Or, you can use the xlibc commad that fills half the scrren with pixels of a certain color Smile I ca't link to it right now, but it is in the Doors CS SDK. Wink
You won't have enough memory to create a full-screen image out of hex. For a full-screen image, xLIBC offers two options:
1) An 80x60-pixel, 256-color image: http://dcs.cemetech.net/index.php/DCSE:BasicLibs:ManagePic#DisplayBGPic_.28TI-OS_Values.29
2) A 160x120-pixel, 32-color image: http://dcs.cemetech.net/index.php/DCSE:BasicLibs:ManagePic#DisplayBGPic32_.28TIOS_VALUES.2C_DCSE8.1.29

Token IDE's sprite/image editor includes the tools to create both of those. They're stored as AppVars.
  
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