Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
The MGC
#2
1 line of text... :lol:

Code:
'Compile with -s gui ;)
#Include "fbgfx.bi"

Option Explicit
ScreenRes 24,8
Randomize Timer
Dim As Integer Win_Col, c_Col, Last_Key
Dim As String In

Win_Col = Int(Rnd*255)

Do
    c_Col=(c_Col+1) MOD 255
    Locate 1,1
    Print Ltrim$(Str$(c_Col))
    
    If Multikey(Sc_Space) Then
        If Last_Key<>Sc_Space Then
            Last_Key = Sc_Space
            If c_Col = Win_Col Then
                Beep
                Exit do
            End If
        End If
    Else
        Last_Key = -1
    End If
Loop Until  Multikey(Sc_Escape)
Reply


Messages In This Thread
The MGC - by speedlemon - 12-31-2005, 04:42 AM
The MGC - by Dr_Davenstein - 12-31-2005, 02:48 PM
The MGC - by speedlemon - 01-01-2006, 12:57 AM
The MGC - by Dr_Davenstein - 01-01-2006, 01:33 AM
The MGC - by speedlemon - 01-01-2006, 03:42 AM
The MGC - by anarky - 01-03-2006, 04:59 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)