Fly The Copter

Fly The Copter is a simple game where you have to navigate a scrolling tunnel for as long as possible, and you need to press 2nd to move the copter higher in the air, and don't press anything to lower the copter. Smoothscrolling isn't very viable in pure TI-Basic, so the way this game works is that once your copter gets to a certain point on the screen, the next part of the tunnel will be redrawn and the copter will be redisplayed at the beginning of the tunnel. Like with the other games, try out the game and try to understand and think through the code.

(NOTE: This game was created by Weregoose, and originally posted on the UTI forums.)

Table of Contents

The Code

:Vertical X
:For(θ,0,E9      // scientific E, not the variable E
:If not(fPart(A/3
:Vertical Ans
:If E=105:Pause
:If not(E=45 or pxl-Test(Ymax-round(B,0),A
:Disp "Distance:

The Download

In case you want to try the program on your calculator, you can download the program in .8xp format.


Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-NonCommercial-ShareAlike 3.0 License