Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
1 key challenge revisited
#3
this is the first thing that came to mind: (which evadently is usally a bad thing)

FB:

Code:
? "RULES:"
? "press the space bar when you are over a gap."
? "to exit, press Esc key"
dim cb(1000)
sleep 5000
screen 13,,,1:randomize timer
line (0,0)-(319,199),2,b
for y = 0 to 197 step 2
line (0,y)-(319,y),2
x = int((314-4+1)*rnd+4)
if y > 0 then line (x-2,y)-(x+4,y),0
next
for y = 197 to 198
for x = 1 to 318 step 2
  if x = 1 and y = 198 then x = x +1
  pset (x,y),15
next
next
get (1,197)-(318,198),cb
x = 1:y = 1
windowtitle "I rule!"
dc = 15
do
  setmouse 0,0,0
  if y = 197 or y = 198 then locate 8,16:print "YOU WIN!" :SLEEP :END
  ox = x
  if a = 0 then x = x + 1:if x = 319 then a = 1
  if a = 1 then x = x - 1:if x = 1 then a = 0
  for dlay = 0 to 10000000:next
  pset (ox,y),bgd:pset (x,y),dc
  press$ = inkey$
  if press$ = chr$(27) then end
  if press$ = " " then
    if point (x,y+1) = bgd then pset (x,y),bgd:y = y +2 :goto 1
    if point (x,y+1) <> bgd then
      cc = point (0,0)
      select case cc
        case 2
          for cy = 0 to 199
          for cx = 0 to 319
            if point (cx,cy) = 2 then pset (cx,cy),44
            if point (cx,cy) = 0 then pset (cx,cy),15:dc = 0:bgd = 15
            
          next
          next
          put (1,197),cb,pset
        case 44
          for cy = 0 to 199
          for cx = 0 to 319
            if point (cx,cy) = 44 then pset (cx,cy),4:dc = 15:bgd = 0
            if point (cx,cy) = 15 then pset (cx,cy),0:
          next
          next
          put (1,197),cb,pset

        case 4
          locate 8,16:? "YOU LOSE!":SLEEP :end
      end select
    end if
  end if
1
loop

edit: update
edit: i'm really obsessive as it turns out.
quote="whitetiger0990"]whitetiger is.. WHITE POWER!!! [/quote]
Here
Reply


Messages In This Thread
1 key challenge revisited - by Z!re - 10-02-2005, 08:40 PM
1 key challenge revisited - by red_Marvin - 10-02-2005, 09:35 PM
1 key challenge revisited - by Dio - 10-03-2005, 03:17 AM
1 key challenge revisited - by urger - 10-03-2005, 06:37 AM
1 key challenge revisited - by moochthemonkey - 10-03-2005, 08:34 AM
1 key challenge revisited - by Dio - 10-03-2005, 12:01 PM
1 key challenge revisited - by Anonymous - 10-03-2005, 12:22 PM
1 key challenge revisited - by Rattrapmax6 - 10-03-2005, 09:52 PM
1 key challenge revisited - by rpgfan3233 - 10-03-2005, 09:59 PM
1 key challenge revisited - by Z!re - 10-03-2005, 10:18 PM
1 key challenge revisited - by Rattrapmax6 - 10-03-2005, 10:23 PM
1 key challenge revisited - by whitetiger0990 - 10-04-2005, 02:21 AM
1 key challenge revisited - by KiZ - 10-04-2005, 02:37 AM
1 key challenge revisited - by urger - 10-04-2005, 02:44 AM
1 key challenge revisited - by whitetiger0990 - 10-04-2005, 05:37 AM
1 key challenge revisited - by Z!re - 10-04-2005, 05:40 AM
1 key challenge revisited - by urger - 10-04-2005, 05:47 AM
1 key challenge revisited - by red_Marvin - 10-08-2005, 10:40 PM
1 key challenge revisited - by Z!re - 10-11-2005, 11:50 PM
1 key challenge revisited - by red_Marvin - 10-12-2005, 12:18 PM
1 key challenge revisited - by d.j.peters - 10-12-2005, 03:29 PM
1 key challenge revisited - by rpgfan3233 - 10-12-2005, 08:31 PM
1 key challenge revisited - by urger - 10-13-2005, 02:05 AM
1 key challenge revisited - by j2krei08 - 10-19-2005, 01:57 AM
1 key challenge revisited - by speedlemon - 10-19-2005, 02:20 AM
1 key challenge revisited - by urger - 10-19-2005, 06:16 AM
1 key challenge revisited - by whitetiger0990 - 10-19-2005, 06:36 AM
1 key challenge revisited - by urger - 10-19-2005, 07:02 AM
1 key challenge revisited - by whitetiger0990 - 10-19-2005, 07:17 AM
1 key challenge revisited - by urger - 10-19-2005, 07:21 AM
1 key challenge revisited - by whitetiger0990 - 10-19-2005, 08:18 AM
1 key challenge revisited - by urger - 10-19-2005, 05:54 PM
1 key challenge revisited - by j2krei08 - 10-19-2005, 11:37 PM
1 key challenge revisited - by speedlemon - 10-20-2005, 01:49 AM
1 key challenge revisited - by Dio - 10-20-2005, 05:07 AM
1 key challenge revisited - by Pyrokid - 10-30-2005, 11:10 AM
1 key challenge revisited - by Z!re - 11-13-2005, 09:30 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)