Discuss Ti-83 programs in the TI 83/84 forum on Dev Hardware. Ti-83 programs Programming forum discussing coding and everything related to the well-known TI-83/83+/84/84+ graphing calculators for math and science. Creative ideas, helpful information and questions regarding applications are welcomed but no homework at all!
ASP Free and Iron Speed Designer are giving away $5,500+ in FREE licenses. Iron Speed's RAD CASE toolset can save up to 80% of your coding time. One free license per week, one perpetual license per month!
Open source technologies have proven to be extremely advantageous to businesses.
This adaptive and highly efficient kind of software is central to the infrastructure of most companies. Since the world of open source technology is constantly changing,
IT professionals need a resource to give them up-to-the-minute information about these enterprise level and open source technologies. Dev Shed is that resource .
The ASP Free website provides in-depth information on the latest developer tools available from Microsoft. Our cadre of writers, highly experienced industry experts, reveals the best ways to use established technologies as well as new and emerging technologies. Our coverage of Microsoft's development and administration technologies is among the most respected in the IT industry today. .
Posts: 25
Time spent in forums: 4 h 8 m 51 sec
Reputation Power: 0
any more??
nice, but do you have any more? i was looking for games and it looks like you know ur stuff. i got 2 programs, a guessing game and a bounging line.here they are...
Posts: 330
Time spent in forums: 3 Days 3 h 29 m 28 sec
Reputation Power: 113
How about a bouncing ball program?
Just replace anything in the asterisks (* *) with it's appropriate symbol, and "->" with the sto-> symbol. Tell me if there are any errors.
Code:
:ClrDraw
:57->Z
:For(W,0,z
:Pxl-On(W,0
:Pxl-On(W,94
:End
:For(W,0,94
:Pxl-On(0,W
:Pxl-On(Z,W
:End
:randInt(1,93->X
:1->Y
:0->A
:1->I
:1->J
:1->N
:1->O
:1->F
:1->G
:randInt(-5,5->S
:If (S^2)^.5=3 or (S^2)^.5=4 or (S^2)^.5=5:randInt(-5,5->S
:While S=0
:randInt(-5,5->S
:If (S^2)^.5=3 or (S^2)^.5=4 or (S^2)^.5=5:randInt(-5,5->S
:End
:Pxl-Off(2,X+(X+1*doesn't equal*94
:Pxl-On(Y,X
:While 1
:F->K
:G->L
:N->F
:O->G
:I->N
:J->O
:X->I
:Y->J
:A+1->A
:Y+A->Y
:X+S->X
:If Y+A*greater than or equal to*Z-1:-A->A
:If X+S*greater than or equal to*94 or X+S*less than or equal to*0:-S->S
:If Y*greater than or equal to*Z:Then
:1->Y
:0->A
:randInt(-5,5)->S
:If (S^2)^.5=3 or (S^2)^.5=4 or (S^2)^.5=5:randInt(-5,5->S
:While S=0
:randInt(-5,5->S
:If (S^2)^.5=3 or (S^2)^.5=4 or (S^2)^.5=5:randInt(-5,5->S
:End
:End
:If X*is not equal to*(X^2)^.5:X+(S^2)^.5->X
:If X*greater than or equal to*94:1->X
:Pxl-On(Y,X
:Pxl-Off(L,K
:End
Posts: 330
Time spent in forums: 3 Days 3 h 29 m 28 sec
Reputation Power: 113
How about a bouncing ball program where you can shot the ball up, down, left, or right?
Just replace anything in the asterisks (* *) with it's appropriate symbol, and "->" with the sto-> symbol. Hold up, down, left, or right to shoot it farther. It will continue normally for about 4 frames until it will react to how you shoot it. I'm currently trying to fix that. Anyways, press VARS to reset the speed, acceleration, and directions, press CLEAR to reset everything VARS does but also reset the position, and press DEL or ON to quit. DEL won't automatically bring you to a "ERR:BREAK" screen, but will keep showing you the current frame. Again, tell me if there are any errors.
Code:
:ClrDraw
:62->Z------------------You can change the height of the screen by changing this value. It has to stay above 2, and below 63. If you change it to 2, then there is almost no area for the ball to bounce, and it will just "roll" around after getting rid of a part of the border, and if it's 63 or higher, then you'll get an error with the domain
:For(W,0,z
:Pxl-On(W,0
:Pxl-On(W,94
:End
:For(W,0,94
:Pxl-On(0,W
:Pxl-On(Z,W
:End
:randInt(1,93->X
:5(Z=62)+1->Y:0->A:1->I:1->J:1->N:1->O:1->F:1->G:0->H
:randInt(-5,5->S
:While S=0
:randInt(-5,5->S
:End
:Pxl-Off(2,X+(X+1*doesn't equal*94
:Pxl-On(Y,X
:While 1
:getKey->G
:If G=23:Stop
:N->K:O->L:I->N:J->O:X->I:Y->J:A+1->A:Y+A->Y:X+S->X
:If G=45 or G=44:Then
:If G=45:Then
:ranInt(1,93->X
:6->Y
:End
:0->A:randInt(-5,5->S
:While S=0
:randInt(-5,5->S
:End
:End
:If H=1:Then
:P+(G=26)-(G=24)->P:Q-(G=25)+(G=34)->Q
:If P*is not equal to*0:5(P/abs(P))(P>5 or P<-5)+P(P*greater than or equal to*-5 and P*less than or equal to*5)->P
:If Q*is not equal to*0:7(Q/abs(Q))(Q>7 or Q<-7)+Q(Q*greater than or equal to*-7 and Q*less than or equal to*7)->Q
:End
:S+Pnot(H)->S:A+Qnot(H)->A
:If H*is not equal to*:Then
:0->P:0->Q
:End
:(G*is not equal to*0)->H:(1-2(Y+A*greater than or equal to*Z-1 or Y+A*less than or equal to*0))A->A:(1-2(X+S*greater than or equal to*94 or X+S*less than or equal to*0))S->S:Y-(Y=Z)->Y:X+(X*is not equal to*abs(X))abs(S)->X:X(X<94 and X>0)+93(X*greater than or equal to*94)+(X*less than or equal to*0)->X:Y(Y>0 and Y<Z)+(Y*less than or equal to*0)+(Z-1)(Y*greater than or equal to*Z)->Y
:Pxl-On(Y,X
:If (L*is not equal to*Y or K*is not equal to*X) and (L*is not equal to*J or K*is not equal to*I) and (L*is not equal to*O or K*is not equal to*N):Pxl-Off(L,K--------------this part is optional. If you want to slightly increase the speed of the program, I suggest this be the first code you take out. It just checks to see if the current position of the final link of the trail is at the current position of any of the other parts. This is useful for when/if the ball finally loses all vertical speed and just "rolls" on the ground, or when/if you change the horizontal speed and neutralize it. Without this code, it just looks bad when it reaches the summit of each bounce and points overlap. But it doesn't speed the program up much so I'd keep it in just in case.
:End
Remember, you have to hold down the arrow you want to move the ball for a little while. It may help to count the frames you've held it down, and remember that it takes the input before it shows the frame every time it goes through the loop.
Last edited by MufinMcFlufin : May 2nd, 2009 at 09:11 PM.
Reason: Accidentally used wrong variable in one of two force restricting codes
LOADING INFUSIONSOFTLOADING INFUSIONSOFT 1debug:overlay status: OFF overlay not displayed
overlay cookie defined: TI_CAMPAIGN_1012_D
OVERLAY COOKIE set:
status off