--- a/gigamole.bas Sun Feb 12 21:10:19 2017 -0600
+++ b/gigamole.bas Fri Apr 07 01:56:02 2023 -0500
@@ -44,1432 +44,1433 @@
DECLARE SUB eclose (ex!, ey!)
DECLARE SUB UpdateMenu ()
-COMMON SHARED AnimateMenu, MenuTimer, MenuColor
+Common Shared AnimateMenu, MenuTimer, MenuColor -CONST sclr = 11, oclr = 1
-CONST True = 1, False = 0
+Const sclr = 11, oclr = 1 +Const True = 1, False = 0
-CenterT "Despite the long wait this is not the final version.", 1, 7
-CenterT "Yes, I know, I've been working on this forever, but I want", 2, 7
-CenterT "it to be perfect! And by that I mean no bugs and no glitches.", 3, 7
-CenterT "So by playing this early version you agree that if you find", 5, 7
-CenterT "anything that seems wrong, or something does not work, that", 6, 7
-CenterT "you'll let me know! Call me if you know my number or else", 7, 7
-CenterT "E-Mail Me : " + CHR$(34) + "GRiMofMS@AOL.COM" + CHR$(34), 9, 7
-CenterT "Trust me, this game is well worth the wait! And the sequel,", 11, 7
-CenterT "Opps, I shouldn't have said that... But anyways, it's going", 12, 7
-CenterT "to be much better and if all goes according to plan, the user", 13, 7
-CenterT "will be able to create their own animation sequences for the", 14, 7
-CenterT "game! Not to mention everything else I have planned.", 15, 7
-CenterT "But I bet No one will ever read to this far, so I'm gunna make", 17, 7
-CenterT "you wait at 10 seconds before this screen will dispear!", 18, 7
-CenterT "Aren't I a little shit!?!", 20, 7
-LOCATE 22, 38: PRINT "Wait"
- IF LEN(Key$) THEN Keys$ = Keys$ + UCASE$(Key$)
- IF Keys$ = "OK" THEN EXIT DO
+'CenterT "Despite the long wait this is not the final version.", 1, 7 +'CenterT "Yes, I know, I've been working on this forever, but I want", 2, 7 +'CenterT "it to be perfect! And by that I mean no bugs and no glitches.", 3, 7 +'CenterT "So by playing this early version you agree that if you find", 5, 7 +'CenterT "anything that seems wrong, or something does not work, that", 6, 7 +'CenterT "you'll let me know! Call me if you know my number or else", 7, 7 +'CenterT "E-Mail Me : " + Chr$(34) + "GRiMofMS@AOL.COM" + Chr$(34), 9, 7 +'CenterT "Trust me, this game is well worth the wait! And the sequel,", 11, 7 +'CenterT "Opps, I shouldn't have said that... But anyways, it's going", 12, 7 +'CenterT "to be much better and if all goes according to plan, the user", 13, 7 +'CenterT "will be able to create their own animation sequences for the", 14, 7 +'CenterT "game! Not to mention everything else I have planned.", 15, 7 +'CenterT "But I bet No one will ever read to this far, so I'm gunna make", 17, 7 +'CenterT "you wait at 10 seconds before this screen will dispear!", 18, 7 +'CenterT "Aren't I a little shit!?!", 20, 7 +'Locate 22, 38: Print "Wait" +'Do While Timer - t < 10 +' If Len(Key$) Then Keys$ = Keys$ + UCase$(Key$) +' If Keys$ = "OK" Then Exit Do
- new AS INTEGER: snd AS INTEGER: Awake AS INTEGER: happ AS INTEGER: body AS INTEGER
- hung AS INTEGER: madd AS INTEGER: sikk AS INTEGER: room AS INTEGER: Od AS INTEGER
- Drunk AS INTEGER: months AS INTEGER: weeks AS INTEGER: days AS INTEGER: autosave AS INTEGER
+ new As Integer: snd As Integer: Awake As Integer: happ As Integer: body As Integer + hung As Integer: madd As Integer: sikk As Integer: room As Integer: Od As Integer + Drunk As Integer: months As Integer: weeks As Integer: days As Integer: autosave As Integer
-DIM SHARED DebugMenu$(11)
+Dim Shared DebugMenu$(11)
-OPEN "GIGAMOLE.DAT" FOR BINARY AS #1
- new = Game.new: snd = Game.snd: Happy = Game.happ: Awake = Game.Awake
- bo = Game.body: Hungry = Game.hung: Mad = Game.madd: sick = Game.sikk
- broom = Game.room: Od = Game.Od: Drunk = Game.Drunk: months = Game.months
- weeks = Game.weeks: days = Game.days: autosave = Game.autosave: AnimateMenu = Game.AnimateMenu
+Open "GIGAMOLE.DAT" For Binary As #1 +new = Game.new: snd = Game.snd: Happy = Game.happ: Awake = Game.Awake +bo = Game.body: Hungry = Game.hung: Mad = Game.madd: sick = Game.sikk +broom = Game.room: Od = Game.Od: Drunk = Game.Drunk: months = Game.months +weeks = Game.weeks: days = Game.days: autosave = Game.autosave: AnimateMenu = Game.AnimateMenu
- new = 1: snd = 1: Happy = 90: Awake = 100: bo = 0: Hungry = 10: Mad = 5
- sick = 0: broom = 0: Od = 0: Drunk = 0: months = 0
- weeks = 0: days = 0: autosave = 1: AnimateMenu = False
+ new = 1: snd = 1: Happy = 90: Awake = 100: bo = 0: Hungry = 10: Mad = 5 + sick = 0: broom = 0: Od = 0: Drunk = 0: months = 0 + weeks = 0: days = 0: autosave = 1: AnimateMenu = False '**************************Start of title screen*****************************
'***************************Start of actual game*****************************
st = 0: ss = 0: sel = 1: eye = 0: Mole = 0: xists = 0: sl = 0: eye = 1
-ed = TIMER: md = TIMER: dm = TIMER: d = TIMER: problem = 0: cheat$ = ""
+ed = Timer: md = Timer: dm = Timer: d = Timer: problem = 0: cheat$ = ""
- '*************************Check for Problems*****************************
- CheckProblems broom, 60, problem, "Bathroom"
- CheckProblems Ill, 35, problem, "Ill"
- CheckProblems bo, 55, problem, "Stinks"
- CheckProblems Mad, 55, problem, "Mad"
- CheckProblems Hungry, 45, problem, "Hungry"
- CheckProblems (-1 * Awake), (-1 * 40), problem, "Tired"
- CheckProblems (-1 * Happy), (-1 * 30), problem, "Sad"
- '*************************increment variables****************************
- IncrementVariable ticks, broom, 45, 10, 0
- IncrementVariable ticks, sick, 45, 5, 1
- DecrementVariable ticks, Awake, 30, 5, 2
- IncrementVariable ticks, Hungry, 30, 30, 3
- DecrementVariable ticks, Mad, 30, 5, 4
- IncrementVariable ticks, bo, 20, 10, 5
- SELECT CASE INT(2 * RND(1))
- CASE 0: DecrementVariable ticks, Happy, 10, 3, 6
- CASE 1: IncrementVariable ticks, Happy, 10, 3, 6
- IF bo > 90 AND s / 10 = INT(s / 10) THEN
- Happy = Happy - 1: CheckBounds Happy
- '%%%%%%%%%%%%%%%%%%%%End of Incrementing Variables%%%%%%%%%%%%%%%%%%%%%%%
- IF AnimateMenu = False AND MenuColor <> 4 THEN
- IF autosave = 0 AND TIMER - AutoSaveDelay > 60 THEN
- Save new, snd, Happy, Awake, bo, Hungry, Mad, sick, broom, Od, Drunk, months, weeks, days, autosave, AnimateMenu
- center "Auto save in progress", 2, 7
- IF Awake = 0 THEN sl = 1
- IF sl = 0 AND ss = 0 THEN
- '**************************Manip time and date***************************
- nosec$ = LEFT$(TIME$, 5)
- IF VAL(LEFT$(nosec$, 2)) > 12 THEN
- nosec$ = STR$(VAL((LEFT$(nosec$, 2))) - 12) + RIGHT$(nosec$, 3) + " PM"
- nosec$ = nosec$ + " AM"
- IF VAL(LEFT$(nosec$, 2)) = 0 THEN
- nosec$ = "12" + RIGHT$(nosec$, LEN(nosec$) - 2)
- noyear$ = LEFT$(noyear$, 2) + "/" + LEFT$(RIGHT$(noyear$, 7), 2) + "/"
- noyear$ = noyear$ + RIGHT$(DATE$, 2)
- '**************************Visual Problems****************************
- CASE IS >= 90: PALETTE 14, 12
- CASE IS < 90: PALETTE 14, 14
- CASE 0: autosave$ = "On "
- CASE 1: autosave$ = "Off"
- center ": " + snd$ + " Auto-Save: " + autosave$, 19, 3
- '*****************************Main Screen*******************************
- grimstext "giga mole!", 1, 4, 2, 15, 1
- '*****************************animate mole*******************************
- CIRCLE (111, 68), 3, 14: CIRCLE (111, 68), 2, MoleColor: PAINT (111, 68), MoleColor, MoleColor
- CIRCLE (111, 68), 3, MoleColor: Mole = 1: dm = TIMER
- '****************************Eye Animation*******************************
- IF TIMER - ed > .5 AND sl = 0 THEN
- eopen 0, 0: eye = 1: ed = TIMER
- ELSEIF TIMER - ed > .5 AND sl = 1 THEN
- CALL z1: eye = 1: ed = TIMER: eclose 0, 0
- IF TIMER - ed > 2 AND sl = 0 THEN
- eclose 0, 0: eye = 0: ed = TIMER
- ELSEIF TIMER - ed > .5 AND sl = 1 THEN
- CALL z2: eye = 0: ed = TIMER: eclose 0, 0
+ '*************************Check for Problems***************************** + CheckProblems broom, 60, problem, "Bathroom" + CheckProblems Ill, 35, problem, "Ill" + CheckProblems bo, 55, problem, "Stinks" + CheckProblems Mad, 55, problem, "Mad" + CheckProblems Hungry, 45, problem, "Hungry" + CheckProblems (-1 * Awake), (-1 * 40), problem, "Tired" + CheckProblems (-1 * Happy), (-1 * 30), problem, "Sad" + '*************************increment variables**************************** + IncrementVariable ticks, broom, 45, 10, 0 + IncrementVariable ticks, sick, 45, 5, 1 + DecrementVariable ticks, Awake, 30, 5, 2 + IncrementVariable ticks, Hungry, 30, 30, 3 + DecrementVariable ticks, Mad, 30, 5, 4 + IncrementVariable ticks, bo, 20, 10, 5 + Select Case Int(2 * Rnd(1)) + Case 0: DecrementVariable ticks, Happy, 10, 3, 6 + Case 1: IncrementVariable ticks, Happy, 10, 3, 6 + If bo > 90 And s / 10 = Int(s / 10) Then + Happy = Happy - 1: CheckBounds Happy + '%%%%%%%%%%%%%%%%%%%%End of Incrementing Variables%%%%%%%%%%%%%%%%%%%%%%% + If AnimateMenu = False And MenuColor <> 4 Then + If autosave = 0 And Timer - AutoSaveDelay > 60 Then + Save new, snd, Happy, Awake, bo, Hungry, Mad, sick, broom, Od, Drunk, months, weeks, days, autosave, AnimateMenu + center "Auto save in progress", 2, 7 + If Awake = 0 Then sl = 1 + If sl = 0 And ss = 0 Then + '**************************Manip time and date*************************** + nosec$ = Left$(Time$, 5) + If Val(Left$(nosec$, 2)) > 12 Then + nosec$ = Str$(Val((Left$(nosec$, 2))) - 12) + Right$(nosec$, 3) + " PM" + nosec$ = nosec$ + " AM" + If Val(Left$(nosec$, 2)) = 0 Then + nosec$ = "12" + Right$(nosec$, Len(nosec$) - 2) + noyear$ = Left$(noyear$, 2) + "/" + Left$(Right$(noyear$, 7), 2) + "/" + noyear$ = noyear$ + Right$(Date$, 2) + '**************************Visual Problems**************************** + Case Is >= 90: Palette 14, 12 + Case Is < 90: Palette 14, 14 + Case 0: autosave$ = "On " + Case 1: autosave$ = "Off" + center ": " + snd$ + " Auto-Save: " + autosave$, 19, 3 + '*****************************Main Screen******************************* + grimstext "giga mole!", 1, 4, 2, 15, 1 + '*****************************animate mole******************************* + Circle (111, 68), 3, 14: Circle (111, 68), 2, MoleColor: Paint (111, 68), MoleColor, MoleColor + Circle (111, 68), 3, MoleColor: Mole = 1: dm = Timer + '****************************Eye Animation******************************* + If Timer - ed > .5 And sl = 0 Then + eopen 0, 0: eye = 1: ed = Timer + ElseIf Timer - ed > .5 And sl = 1 Then + Call z1: eye = 1: ed = Timer: eclose 0, 0 + If Timer - ed > 2 And sl = 0 Then + eclose 0, 0: eye = 0: ed = Timer + ElseIf Timer - ed > .5 And sl = 1 Then + Call z2: eye = 0: ed = Timer: eclose 0, 0
- IF sel = 7 THEN debug Happy, Awake, bo, Hungry, Mad, Ill, broom, Od, Drunk
- CASE 0: snd = 1: SOUND 200, .5
- center "Saving game...", 2, 7
- Save new, snd, Happy, Awake, bo, Hungry, Mad, sick, broom, Od, Drunk, months, weeks, days, autosave, AnimateMenu
- CASE 1: autosave = 0: AutoSaveDelay = TIMER
- IF AnimateMenu = True THEN
- ELSEIF AnimateMenu = False THEN
- CASE 1, 4, 7: sel = sel + 2
- CASE ELSE: sel = sel - 1
- CASE 3, 6, 9: sel = sel - 2
- CASE ELSE: sel = sel + 1
- CASE 7, 8, 9: sel = sel - 6
- CASE ELSE: sel = sel + 3
- CASE 1, 2, 3: sel = sel + 6
- CASE ELSE: sel = sel - 3
- CASE CHR$(13), CHR$(32):
- Happy = Happy + 25: CheckBounds Happy
- Mad = Mad - 10: CheckBounds Mad
- Awake = Awake + 5: CheckBounds Awake
- IF Hungry > 20 AND sl = 0 THEN
- Hungry = Hungry - 30: CheckBounds Hungry
- ELSEIF Hungry <= 20 THEN
- LOCATE 2, 14: PRINT "I'm not hungry"
- LOCATE 2, 14: PRINT " "
- Awake = Awake + INT(TIMER - ss)
- LOCATE 2, 11: PRINT "I don't have to go"
- LOCATE 2, 11: PRINT " "
- ELSEIF broom >= 60 THEN
- IF bo >= 50 AND sl = 0 THEN
- center "All clean!", 2, 3
- ELSEIF bo < 50 AND sl = 0 THEN
- LOCATE 2, 9: PRINT "I don't want to shower"
- LOCATE 2, 4: PRINT "I don't want to go to the doctor"
+ If sel = 7 Then debug Happy, Awake, bo, Hungry, Mad, Ill, broom, Od, Drunk + Case 0: snd = 1: Sound 200, .5 + center "Saving game...", 2, 7 + Save new, snd, Happy, Awake, bo, Hungry, Mad, sick, broom, Od, Drunk, months, weeks, days, autosave, AnimateMenu + Case 1: autosave = 0: AutoSaveDelay = Timer + If AnimateMenu = True Then + ElseIf AnimateMenu = False Then + Case 1, 4, 7: sel = sel + 2 + Case Else: sel = sel - 1 + Case 3, 6, 9: sel = sel - 2 + Case Else: sel = sel + 1 + Case 7, 8, 9: sel = sel - 6 + Case Else: sel = sel + 3 + Case 1, 2, 3: sel = sel + 6 + Case Else: sel = sel - 3 + Case Chr$(13), Chr$(32): + Happy = Happy + 25: CheckBounds Happy + Mad = Mad - 10: CheckBounds Mad + Awake = Awake + 5: CheckBounds Awake + If Hungry > 20 And sl = 0 Then + Hungry = Hungry - 30: CheckBounds Hungry + ElseIf Hungry <= 20 Then + Locate 2, 14: Print "I'm not hungry" + Locate 2, 14: Print " " + Awake = Awake + Int(Timer - ss) + Locate 2, 11: Print "I don't have to go" + Locate 2, 11: Print " " + ElseIf broom >= 60 Then + If bo >= 50 And sl = 0 Then + center "All clean!", 2, 3 + ElseIf bo < 50 And sl = 0 Then + Locate 2, 9: Print "I don't want to shower" + Locate 2, 4: Print "I don't want to go to the doctor" + Locate 25, 14: Print "Press [ESC] to continue..." + grimstext "Giga mole status", 1, 4, 2, 12, 1 + Locate 3, 14: Print "Age: " + Case 1: months$ = "month" + Case Else: months$ = "months" + Locate 4, 15: Print months; months$ + Case 1: weeks$ = "week" + Case Else: weeks$ = "weeks" + Locate 5, 15: Print weeks; weeks$ + Case Else: days$ = "days" + Locate 6, 15: Print days; days$ + Locate 8, 14: Print "Current Problems:" + Locate p + 9, 15: Print problem$(p) + statsdelay = Timer: sttsdly = 0 + Do While InKey$ <> Chr$(27) + If Timer - statsdelay > 1 Then + grimstext "Giga mole status", 4, 2, 1, 12, 1 + statsdelay = Timer: sttsdly = 1 + If Timer - statsdelay > 1 Then + grimstext "Giga mole status", 2, 1, 4, 12, 1 + statsdelay = Timer: sttsdly = 2 + If Timer - statsdelay > 1 Then + grimstext "Giga mole status", 1, 4, 2, 12, 1 + statsdelay = Timer: sttsdly = 0 + grimstext "Goodbye!", 1, 4, 2, 16, 2 + Save new, snd, Happy, Awake, bo, Hungry, Mad, sick, broom, Od, Drunk, months, weeks, days, autosave, AnimateMenu + grimstext "Goodbye!", 1, 4, 2, 16, 2 + cheat$ = cheat$ + UCase$(Key$) + If Right$(cheat$, 4) = "WEED" Then + Od = Od + 10: CheckBounds Od + Happy = Happy + 50: CheckBounds Happy + Hungry = Hungry + 25: CheckBounds Hungry + If Right$(cheat$, 4) = "BEER" Then + Drunk = Drunk + 15: CheckBounds Drunk + If Right$(cheat$, 7) = "REFRESH" Then + If Right$(cheat$, 4) = "TIME" Then + center "It is" + nosec$, 2, 3 + If Right$(cheat$, 4) = "DATE" Then + center "It is " + noyear$, 2, 3 + If Right$(cheat$, 3) = "VER" Or Right$(cheat$, 7) = "VERSION" Then + center "Your playing ver 0.9B", 2, 11 + If Right$(cheat$, 6) = "PUNISH" Then + Mad = Mad + 25: CheckBounds Mad + Happy = Happy - 10: CheckBounds Happy + center "Why did you hit me?!?", 2, 3
- LOCATE 25, 14: PRINT "Press [ESC] to continue..."
- grimstext "Giga mole status", 1, 4, 2, 12, 1
- LOCATE 3, 14: PRINT "Age: "
- CASE 1: months$ = "month"
- CASE ELSE: months$ = "months"
- LOCATE 4, 15: PRINT months; months$
- CASE 1: weeks$ = "week"
- CASE ELSE: weeks$ = "weeks"
- LOCATE 5, 15: PRINT weeks; weeks$
- CASE ELSE: days$ = "days"
- LOCATE 6, 15: PRINT days; days$
- LOCATE 8, 14: PRINT "Current Problems:"
- LOCATE p + 9, 15: PRINT problem$(p)
- statsdelay = TIMER: sttsdly = 0
- DO WHILE INKEY$ <> CHR$(27)
- IF TIMER - statsdelay > 1 THEN
- grimstext "Giga mole status", 4, 2, 1, 12, 1
- statsdelay = TIMER: sttsdly = 1
- IF TIMER - statsdelay > 1 THEN
- grimstext "Giga mole status", 2, 1, 4, 12, 1
- statsdelay = TIMER: sttsdly = 2
- IF TIMER - statsdelay > 1 THEN
- grimstext "Giga mole status", 1, 4, 2, 12, 1
- statsdelay = TIMER: sttsdly = 0
- grimstext "Goodbye!", 1, 4, 2, 16, 2
- Save new, snd, Happy, Awake, bo, Hungry, Mad, sick, broom, Od, Drunk, months, weeks, days, autosave, AnimateMenu
- grimstext "Goodbye!", 1, 4, 2, 16, 2
- cheat$ = cheat$ + UCASE$(Key$)
- IF RIGHT$(cheat$, 4) = "WEED" THEN
- Od = Od + 10: CheckBounds Od
- Happy = Happy + 50: CheckBounds Happy
- Hungry = Hungry + 25: CheckBounds Hungry
- IF RIGHT$(cheat$, 4) = "BEER" THEN
- Drunk = Drunk + 15: CheckBounds Drunk
- IF RIGHT$(cheat$, 7) = "REFRESH" THEN
- IF RIGHT$(cheat$, 4) = "TIME" THEN
- center "It is" + nosec$, 2, 3
- IF RIGHT$(cheat$, 4) = "DATE" THEN
- center "It is " + noyear$, 2, 3
- IF RIGHT$(cheat$, 3) = "VER" OR RIGHT$(cheat$, 7) = "VERSION" THEN
- center "Your playing ver 0.9B", 2, 11
- IF RIGHT$(cheat$, 6) = "PUNISH" THEN
- Mad = Mad + 25: CheckBounds Mad
- Happy = Happy - 10: CheckBounds Happy
- center "Why did you hit me?!?", 2, 3
'********************************Music Subs**********************************
-IF snd = 1 THEN PLAY "mbt60o2d8d8f16e16o1c16o2d8o3msa8g#8g8mno2f16"
+If snd = 1 Then Play "mbt60o2d8d8f16e16o1c16o2d8o3msa8g#8g8mno2f16" -IF snd = 1 THEN PLAY "mb t80 l8 o4 bdc o5 gad o4 ebg o3 acb"
+If snd = 1 Then Play "mb t80 l8 o4 bdc o5 gad o4 ebg o3 acb" '********************************Menu Data***********************************
-DATA 20,8,Play,20,18,Feed,20,28,
-DATA 21,8,Bathroom,21,18,Shower,21,28,Doctor
-DATA 22,8,Stats,22,18,Help,22,28,Exit
+Data 20,8,Play,20,18,Feed,20,28, +Data 21,8,Bathroom,21,18,Shower,21,28,Doctor +Data 22,8,Stats,22,18,Help,22,28,Exit -DATA Happiness,Awake,Body Odor,Hungry,Mad,Ill,Bathroom,Overdose,Drunk
+Data Happiness,Awake,Body Odor,Hungry,Mad,Ill,Bathroom,Overdose,Drunk
- FOR t = 0 TO INT(10 * RND(1)) + 1
- switch = INT(66 * RND(1)) + 1
- RemoveY(i) = RemoveY(switch)
- COLOR 7: center "ANDERS", 13, 15
- COLOR 15: center "Anti Anders Inc.", 19, 15
- CIRCLE (160, 100), 30, 4: CIRCLE (160, 100), 38, 4: PAINT (125, 100), 4, 4
- LINE (180, 80)-(130, 118), 4: LINE (190, 82)-(140, 120), 4: PAINT (160, 100), 4, 4
- LINE (122, RemoveY(i) + 67)-(198, RemoveY(i) + 67), 0
- SOUND INT(200 * RND(1)) + 40 + RemoveY(i), .5
- IF INKEY$ <> INKEY$ THEN EXIT SUB
+ For t = 0 To Int(10 * Rnd(1)) + 1 + switch = Int(66 * Rnd(1)) + 1 + RemoveY(i) = RemoveY(switch) + Color 7: center "ANDERS", 13, 15 + Color 15: center "Anti Anders Inc.", 19, 15 + Circle (160, 100), 30, 4: Circle (160, 100), 38, 4: Paint (125, 100), 4, 4 + Line (180, 80)-(130, 118), 4: Line (190, 82)-(140, 120), 4: Paint (160, 100), 4, 4 + Line (122, RemoveY(i) + 67)-(198, RemoveY(i) + 67), 0 + Sound Int(200 * Rnd(1)) + 40 + RemoveY(i), .5 + If InKey$ <> InKey$ Then Exit Sub
- CIRCLE (100, 60 + i), 50 - i, 7, , , 1 / 8
- LINE (60, 15)-(140, 60), 7, BF
- CIRCLE (100, 60), 50, 8, , , 1 / 8
- CIRCLE (100, 60), 30, 8, , , 1 / 12
- LINE (69, 75)-(131, 110), 7, B
- CIRCLE (100, 75), 36, 8, 180 * (3.14 / 180), , 1 / 8
- LINE (77, 18)-(62, 20), 8, BF
- CIRCLE (62, 25), 15, 8, 10 * (3.14 / 180), 90 * (3.14 / 180), 1 / 4
- LINE (69, 21)-(70, 21), 8
- IF snd = 1 THEN SOUND 40, 5 * ((ha + 1) / 2)
- LINE (50, 10)-(150, 110), 2, BF
+ Circle (100, 60 + i), 50 - i, 7, , , 1 / 8 + Line (60, 15)-(140, 60), 7, BF + Circle (100, 60), 50, 8, , , 1 / 8 + Circle (100, 60), 30, 8, , , 1 / 12 + Line (69, 75)-(131, 110), 7, B + Circle (100, 75), 36, 8, 180 * (3.14 / 180), , 1 / 8 + Line (77, 18)-(62, 20), 8, BF + Circle (62, 25), 15, 8, 10 * (3.14 / 180), 90 * (3.14 / 180), 1 / 4 + Line (69, 21)-(70, 21), 8 + If snd = 1 Then Sound 40, 5 * ((ha + 1) / 2) + Line (50, 10)-(150, 110), 2, BF
- LINE (65, 30)-(135, 110), 2, BF
- CIRCLE (100, B), 12, 8, , , 1 / 4
- CIRCLE (100, B), 10, 7, , , 1 / 4
- CIRCLE (100, B), 12, 8, , , 1 / 4
- CIRCLE (112, 62), 4, 8, 270 * (3.14 / 180), 90 * (3.14 / 180)
- CIRCLE (112, 62), 5, 8, 270 * (3.14 / 180), 90 * (3.14 / 180)
- CIRCLE (112, 62), 10, 8, 270 * (3.14 / 180), 90 * (3.14 / 180)
- CIRCLE (112, 62), 11, 8, 270 * (3.14 / 180), 90 * (3.14 / 180)
- LINE (90, 55)-(110, 55), 8
- IF snd = 1 THEN SOUND 100, .5
+ Line (65, 30)-(135, 110), 2, BF + Circle (100, B), 12, 8, , , 1 / 4 + Circle (100, B), 10, 7, , , 1 / 4 + Circle (100, B), 12, 8, , , 1 / 4 + Circle (112, 62), 4, 8, 270 * (3.14 / 180), 90 * (3.14 / 180) + Circle (112, 62), 5, 8, 270 * (3.14 / 180), 90 * (3.14 / 180) + Circle (112, 62), 10, 8, 270 * (3.14 / 180), 90 * (3.14 / 180) + Circle (112, 62), 11, 8, 270 * (3.14 / 180), 90 * (3.14 / 180) + Line (90, 55)-(110, 55), 8 + If snd = 1 Then Sound 100, .5 -SUB center (line$, y, clr)
- LOCATE y, (21 - INT(LEN(line$) / 2)): PRINT line$
+Sub center (line$, y, clr) + Locate y, (21 - Int(Len(line$) / 2)): Print line$ -SUB CenterT (Text$, y!, clr!)
- x = 40 - INT(LEN(Text$) / 2)
- LOCATE y, x: PRINT Text$
+Sub CenterT (Text$, y!, clr!) + x = 40 - Int(Len(Text$) / 2) + Locate y, x: Print Text$ -SUB CheckBounds (Variable)
- IF Variable > 100 THEN Variable = 100
- IF Variable < 0 THEN Variable = 0
+Sub CheckBounds (Variable) + If Variable > 100 Then Variable = 100 + If Variable < 0 Then Variable = 0 -SUB CheckProblems (Variable, value, problem, probstr$)
- IF Variable >= value THEN
- IF problem$(q) = probstr$ THEN
- ELSEIF q = problem THEN
- IF problem$(q) = "None" THEN
- ELSEIF Variable < value THEN
- IF problem$(q) = probstr$ THEN
- problem$(L) = problem$(L + 1)
- IF q = problem THEN EXIT DO
+Sub CheckProblems (Variable, value, problem, probstr$) + If Variable >= value Then + If problem$(q) = probstr$ Then + ElseIf q = problem Then + If problem$(q) = "None" Then + ElseIf Variable < value Then + If problem$(q) = probstr$ Then + problem$(L) = problem$(L + 1) + If q = problem Then Exit Do
- CIRCLE (100, 75), 10, 4, , , 1 / 4
- LINE (90, 75)-(110, 75), 4
+ Circle (100, 75), 10, 4, , , 1 / 4 + Line (90, 75)-(110, 75), 4
-SUB debug (Happy, Awake, bo, Hungry, Mad, Ill, broom, Od, Drunk)
- RESTORE DebugMenuCommands
- Variable(1) = Happy: Variable(2) = Awake: Variable(3) = bo
- Variable(4) = Hungry: Variable(5) = Mad: Variable(6) = Ill
- Variable(7) = broom: Variable(8) = Od: Variable(9) = Drunk
- IF dbug = i THEN COLOR 4 ELSE COLOR 1
- LOCATE i, 1: PRINT DebugMenu$(i)
- LOCATE i, 10: PRINT RTRIM$(STR$(Variable(i))); "% "
- LOCATE i + 1, 1: PRINT DebugMenu$(i)
- Variable(dbug) = Variable(dbug) - 10
- IF Variable(dbug) < 0 THEN Variable(dbug) = 100
- Variable(dbug) = Variable(dbug) + 10
- IF Variable(dbug) > 100 THEN Variable(dbug) = 0
- Variable(dbug) = Variable(dbug) - 1
- IF Variable(dbug) < 0 THEN Variable(dbug) = 100
- CASE CHR$(0) + "M", CHR$(13), CHR$(32)
- Variable(dbug) = Variable(dbug) + 1
- IF Variable(dbug) > 100 THEN Variable(dbug) = 0
- IF dbug = 11 THEN dbug = 1
- IF dbug = 0 THEN dbug = 10
- Happy = Variable(1): Awake = Variable(2): bo = Variable(3)
- Hungry = Variable(4): Mad = Variable(5): Ill = Variable(6)
- broom = Variable(7): Od = Variable(8): Drunk = Variable(9)
+Sub debug (Happy, Awake, bo, Hungry, Mad, Ill, broom, Od, Drunk) + Restore DebugMenuCommands + Variable(1) = Happy: Variable(2) = Awake: Variable(3) = bo + Variable(4) = Hungry: Variable(5) = Mad: Variable(6) = Ill + Variable(7) = broom: Variable(8) = Od: Variable(9) = Drunk + If dbug = i Then Color 4 Else Color 1 + Locate i, 1: Print DebugMenu$(i) + Locate i, 10: Print RTrim$(Str$(Variable(i))); "% " + Locate i + 1, 1: Print DebugMenu$(i) + Variable(dbug) = Variable(dbug) - 10