TI-Basic Programs/CStart

From Wikibooks, open books for an open world
Jump to navigation Jump to search

Program Description[edit | edit source]

CStart is a title screen start-up program which works in conjunction with prgmCHASE. A user must have both programs on their calculator in order to play Chase. When both programs are in place, the user never needs to actually run prgmCSTART, but it must be un-archived while playing Chase so that Chase can access it. The user simply runs prgmCHASE and the program will then link to CStart automatically. CStart doesn't change any part of the actual gameplay of Chase, but it displays a very cool start-up screen. As outlined in the Program Description section for prgmCHASE in this wikibook, the title screen gives the player four options:
1) New Game (to start a new game)
2) Continue (to continue a currently saved game)
3) Instructions (to bring up the instructions for Chase)
4) Quit (to leave the program and return to the main screen)

It also displays a large drawing of the word "CHASE" with the vicious ≠'s as part of the E. It displays the current High Score in the upper-right (which will show 0 if the user has not played before), and an image of a < sign with angry eyes and sharp teeth chasing a frightened X in order to eat him.

Choice 3 will clear the screen and draw up page 1 of the instructions for Chase. This page gives an introduction and a background for Chase and tells the player what his goal is. The program will be paused when this screen is displayed and it will wait for the player to press ENTER, upon which the screen will be cleared again and page 2 of the instructions will be displayed. On this page, the player will see a diagram of which keys are to be used for controlling the > symbol during gameplay. It also tells of how the game will slow down, and needs to be re-booted using the ENTER key while playing in order to get it back up to speed.

Program Code[edit | edit source]


  1. Many of these lines of code can be linked together in one line by just typing a ":" instead of pressing ENTER and typing the next command on the next line. Also, some of the commands displayed here are already linked in this way.
  2. The "¤" found in the command, " :Text(8,69,"¤ ", is actually a very small square and it can be found in the CATALOG menu on your calculator. It will be above what looks like a small plus sign (+), near the bottom of the list.
:"CHASE STARTUP   SCREEN      <-- This line is unnecessary, but is a helpful note
:FnOff                              for anyone who opens the editing screen for CStart
:Text(0,52,"HI SCORE:
:If 100≤[J](1,5
:If 1000≤[J](1,5
:Text(42,39,"(PRESS ENTER)
:Text(39,40,") NEW GAME
:Text(45,75," "               <-- These end-quote marks are unnecessary but there must
:Text(42,76,"         "       <---- be this many spaces before the end of the command.
:Text(45,40,") Continue             (There must be 1 space after "Text(45,75"
:Text(51,37,"3                       and 9 spaces after "Text(42,76", but no
:Text(51,40,") Instructions          close-quote mark is needed in either case.)
:Text(57,40,") Quit
:While 1
:If Ans=92
:If Ans=93
:If Ans=94
:Goto 9
:If Ans=82
:Lbl 9
:StorePic 0
:Text(7,3,"Welcome to Chase!  In Chase
:Text(14,5,"You are a hungry  >  symbol
:Text(21,2,"who's always on the lookout
:Text(28,10,"for a tasty  X  to eat.  But
:Text(35,6,"watch out for the  ≠  signs!
:Text(42,4,"They are vicious and would
:Text(49,5,"love to have you for lunch.
:Text(56,11,"Avoid them at all costs.
:Text(6,3,"Use the number
:Text(12,5,"keys to move:
:Text(18,62,"1   2   3
:Text(0,62,"7   8   9
:Text(27,10,"Press ENTER to pause or
:Text(33,1,"'Save' your game.  To restore
:Text(39,3,"the speed when Chase slows
:Text(45,3,"down    press ENTER twice:  it
:Text(51,9,"will save your game and
:Text(57,6,"then resume at full speed.
:RecallPic 0