Ti-Basic: setting the window 83+

Got questions? Got answers? Go here for both.

Moderator: MaxCoderz Staff

Post Reply
micros2b
New Member
Posts: 5
Joined: Thu 21 Dec, 2006 9:28 am
Location: CA

Ti-Basic: setting the window 83+

Post by micros2b »

I haven't been programming too long in basic, but after reading a tutorials, I couldn't type in the the Xmax, Xmin, Ymax, Ymin. I went to the window, but couldn't get anywhere. It's also not on the catalogue. So, how do I type it in.
0--> Xmax

please don't be angry, but on a hardware question:
my ti-83+ won't work with 4 duracell batteries, but work with 3 new ones and 1 old one.
King Harold
Calc King
Posts: 1513
Joined: Sat 05 Aug, 2006 7:22 am

Post by King Harold »

Vars (next to Clear)- Window (first option or so)

4 new ones shouldn't be a problem unless one is broken or your hardware is messed up
micros2b
New Member
Posts: 5
Joined: Thu 21 Dec, 2006 9:28 am
Location: CA

Post by micros2b »

Thanks alot, wow i didn't think it was that easy. Now I can go back to some games.
User avatar
anykey
Extreme Poster
Posts: 420
Joined: Mon 31 Jan, 2005 3:36 am
Location: In the matrix
Contact:

Post by anykey »

I recommend storing the current window values in a list or something, and then setting them back after your program ends.
I think, therefore iMac
Image
User avatar
thegamefreak0134
Extreme Poster
Posts: 455
Joined: Mon 23 Jan, 2006 10:09 pm
Location: In front of a Computer, coding
Contact:

Post by thegamefreak0134 »

Of course I prefer to do everything in pixel (or text) mode on the graph. I suppose you still have to set the window for lines though, so I usually invert my Y so it matches with the pixelon() pixeloff() values.

-tgf
I'm not mad, just a little crazy.

DarkNova - a little side project I run.
King Harold
Calc King
Posts: 1513
Joined: Sat 05 Aug, 2006 7:22 am

Post by King Harold »

anykey wrote:I recommend storing the current window values in a list or something, and then setting them back after your program ends.
no, that's what GDB's are for

and there is also a general formula for converting normal coords to pixels coords or back. It should be on wikiTI.
User avatar
thegamefreak0134
Extreme Poster
Posts: 455
Joined: Mon 23 Jan, 2006 10:09 pm
Location: In front of a Computer, coding
Contact:

Post by thegamefreak0134 »

Yeah, it's called a proportion.

GraphX/GraphXSize = PixelX/PixelXSize

So for TI,

PixelX = GraphX*95/GraphXSize

And similar for Y. This is basic math here. Altough it may need to be adjusted by one in a direction to account for pixel rounding. (I can see a couple of instnces where this would go offscreen. Oh, and for asm the 95 becomes 96, but surely you already know this?

-thegamefreak
I'm not mad, just a little crazy.

DarkNova - a little side project I run.
micros2b
New Member
Posts: 5
Joined: Thu 21 Dec, 2006 9:28 am
Location: CA

Post by micros2b »

thanks again, i was wondering how to store the original values of the window. Learning to make a simple pong game.
Post Reply