Qbasicnews.com
July 22, 2019, 07:15:44 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Back to Qbasicnews.com | QB Online Help | FAQ | Chat | All Basic Code | QB Knowledge Base
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: The MGC  (Read 3731 times)
speedlemon
I hold this place together
*****
Posts: 874



« on: December 30, 2005, 08:42:27 PM »

The challenge is make a game that takes up smallest space possible on the screen.  Here is an example in case you don't understand me.  

Download MiniPong.zip

I am probably going to make at least one more and spend more time on it.  Well I'm looking forward to what some of you create.

There is no     line, but please make a post if you plan on joining, so I have a feel on how many prizes I should make.
Logged
Dr_Davenstein
Na_th_an
*****
Posts: 2052


« Reply #1 on: December 31, 2005, 06:48:04 AM »

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)
Logged
speedlemon
I hold this place together
*****
Posts: 874



« Reply #2 on: December 31, 2005, 04:57:10 PM »

Nice job.  I couldn't figure out what to do though.  But it looks like it could be pretty fun once I get used to it.
Logged
Dr_Davenstein
Na_th_an
*****
Posts: 2052


« Reply #3 on: December 31, 2005, 05:33:22 PM »

At the beginning, a random number from 0 to 255 is chosen. It then runs in a loop, counting from 0 to 255. If you press the space bar at the moment the counter equals the first random number, you win!  :lol:
Logged
speedlemon
I hold this place together
*****
Posts: 874



« Reply #4 on: December 31, 2005, 07:42:46 PM »

That's a good and creative idea for a small game. I will play it again now I think I have the hang of the rules.

Anyone else plan on entering?
Logged
anarky
Been there, done that
*****
Posts: 1231


The Blobworld Comics King


« Reply #5 on: January 03, 2006, 08:59:57 AM »

I actually made something similar to this a few years ago but lost it in the last major system failure I had... It was called "Wheel" and was like roulette. You chose a number and bet an amount of money. The wheel spun, and if it landed on a number you chose (between 1 and 10) you doubled your wager. Or else you lost it.

I was thinking some time back "should I make it again?" Then decided against it...

>anarky
Logged

Screwing with your reality since 1998.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!