FANDOM


Star Smash is a game I created to entertain some of my friends. It is similar to Galaga, in that you command a space fighter that can only move laterally, or in this case, I guess it's vertically. You then have to shoot at multiplication signs that come at you from the other side of the screen. Lots of mindless entertainment for those of you with a really dull Science teacher like I have...

Control SummaryEdit

The controls are simple:

-Up Arrow to move up

-Down Arrow to move down

-MODE to shoot

-ENTER to pause/unpause

-2ND to quit

ProgramEdit

Here's the actual coding. The coding between the arrows is unnecessary to write unless you want a nice title screen and directions.

:ClrHome      <--------------------------Start unnecessary programming
:Output(1,4,"STARSMASH!
:Output(3,1,"    *  [  *    <-- (spacing: 4 spaces, *, 2 spaces, [, 2 spaces, *)
:Output(4,8,":>
:Output(5,1,"   *   [   *   <-- (spacing: 3 spaces, *, 3 spaces, [, 3 spaces, *)
:Output(7,2,"ENTER TO START
:Output(8,1,"+ FOR DIRECTIONS
:Lbl 4
:getKey→M
:If M=105
:Goto 6
:If M=95:Then
:ClrHome
:Output(1,1,"-PRESS MODE
:Output(2,1,"TO SHOOT
:Output(4,1,"-PRESS ARROWS
:Output(5,1,"TO MOVE
:Output(7,1,"-PRESS ENTER
:Output(8,1,"TO PAUSE
:Pause
:Goto 6
:End
:If M=15
:Goto 6
:Goto 4
:End       <-----------------------------End unnecessary programming
:Lbl 6 
:randInt(2,7)→A
:16→B
:2→L
:3→Z
:0→Q
:0→S
:0→P
:Lbl 1
:B-1→B
:ClrHome
:Output(1,5,"SCORE:
:Output(1,12,S
:Output(L,1,"[
:Output(L+1,1,":>
:Output(L+2,1,"[
:Output(A,B,"*
:getKey→K
:If K=25 and L≠1
:L-1→L
:If K=34 and L≠6
:L+1→L
:If K=22
:Output(L+1,Z,"((((((((((((((
:If A=L+1 and 3<B<7 and K=22:Then
:randInt(2,7)→A
:16→B
:S+1→S
:End
:If B=1:Then
:If A=L or A=L+2:Then
:ClrHome
:Output(4,2,"YOU EPIC FAIL!
:Pause
:Goto 6
:End
:End
:If B=2 and A=L+1:Then
:ClrHome
:Output(4,2,"YOU EPIC FAIL!
:Pause
:Goto 6
:End
:If B=1:Then
:randInt(2,7)→A
:16→B
:End
:If K=21
:Stop
:If K=105
:Pause
:1→X
:2→X
:3→X
:4→X
:5→X
:6→X
:7→X
:8→X
:Goto 1

ConclusionEdit

Now you no longer have to sit through that ridiculously boring Science class or review that Math concept you've learned a thousand times. Have fun!

One might also like to add a high score table or multiple levels, or make multiple asteroids fly at the space fighter at a time. If so, we would love it if you would post them here in the code!

  • Note that TI-BASIC Wiki is not responsible for any repercussions caused by playing Star Smash in class. Stay in school kids!

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.