_________________________________________________________________________ Titel: Alien Worlds Author: Hidetake Jo Written by: Hidetake Jo Description: Shoot them. _________________________________________________________________________ Command translation: -> Single arrow (located on the keyboard) => Double arrow (press: [shift] [prgm] [f1] [f1]) _ Display, -Disp- (press: [shift] [prgm] [f4]) <= Less or equal (A <= B) >= Greater or equal (A >= B) <> Not equal (A <> B) ^ Raised to the power of / Division or fraction (explain which with a comment) 2rt() Root (2rt(7) is the square root of 7) 4rt() 4th root pi pi (~3.14159265359, low case) e() e(1) (~2.7818281846, low case) E Exponent (5E4 gives 5*10^4) (located on the keyboard, [EXP]) _________________________________________________________________________ Program _: "-ALIENS WORLD-" Deg Range 1,99,1,1,99,1 Mcl 5 -> S Int 7Ran#+4 -> A Int 9Ran#+31 -> B Int 40Ran#+51 -> C 1 -> M 1 -> N 1 -> O Lbl 1 Cls 0 -> I 0 -> Z M=0 => N=0 => O=0 => Goto C Plot 1,5 Plot 99,5 Line Plot 40,5 Plot 40,8 Line Plot 60,8 Line Plot 60,5 Line Plot 50,5 Plot 50,9 Line Plot 1,95 Plot 99,95 Line Lbl 2 M=1 => E=0 => A -> D N=1 => E=1 => B -> D O=1 => E=2 => C -> D E=3 => "ALIENS ARE" E=3 => "SHOOTING!" E=3 => Goto 3 Plot D,95 Plot D,92 Line Plot D+5,92 Line Plot D+5,95 Line E+1 -> E Goto 2 Lbl 3 " ":" " 0 -> E Int 180Ran#+1 -> F F =< 10 => Goto 3 F >= 165 => Goto 3 M=0 => I=0 => Goto 4 N=0 => I=1 => Goto 4 O=0 => I=2 => Goto 4 I=0 => A+2.5 -> K I=1 => B+2.5 -> K I=2 => C+2.5 -> K I=3 => Goto 6 3sin F -> H 3cos F -> G K -> P 92 -> Q Lbl 7 Plot P,Q P+G -> P Q-H -> Q P >= 95 => -G -> G P =< 5 => Abs G -> G P =< 60 => P >= 40 => Q =< 8 => "YOU ARE HIT" P =< 60 => P >= 40 => Q =< 8 => "SHIELD LEFT=" P =< 60 => P >= 40 => Q =< 8 = >S-1 -> S_ Q =< 8 => Goto 4 Goto 7 Lbl 4 I+1 -> I Goto 3 Lbl 6 S =< 0 => Goto B "TIME TO GET" "BACK AT THEM!" Plot 1,1_ "ANGLE"? -> T 3sin T -> G 3cos T -> H 8 -> P 50 -> Q Lbl E Plot Q,P P+G -> P Q+H -> Q Q >= 95 => -H -> H Q =< 3 => Abs H -> H M=1 => Q =< A+5 => Q >= A => P >= 92 => Goto 8 N=1 => Q =< B+5 => Q >= B => P >= 92 => Goto 9 O=1 => Q =< C+5 => Q >= C => P >= 92 => Goto 0 P >= 92 => Goto 1 Goto E Lbl 8 0 -> M Goto A Lbl 9 0 -> N Goto A Lbl 0 0 -> O Lbl A Plot 1,1 "HIT" Z+1 -> Z Z >= 10 => Goto 1 Goto A Lbl B " ":"YOU LOSE" " ":" ":" ":" " Goto D Lbl C " " " " "YOU SAVED THE" " WORLD!!" " " " " Lbl D " " _________________________________________________________________________