Here's something I programmed awhile back taht does that. The only problem is that it is s....o.... v.....e.....r....y.... s....l....o...w..... .
sync on
x = 320
y = 10
line rnd(640),rnd(480),rnd(640),rnd(480)
line rnd(640),rnd(480),rnd(640),rnd(480)
line rnd(640),rnd(480),rnd(640),rnd(480)
monx# = 320
moninc# = .9
monexist = 1
do
ink rgb(255,255,255),0:line x,y,x,y-10
oldx = x
oldy = y
if spacekey()=1 then attack = 1
ink rgb(255,0,0),0
if monexist = 1 then line monx#,168,monx#,158
if attack = 1 and r = 1 then line x,y-5,x+5,y-5
if attack = 1 and l = 1 then line x,y-5,x-5,y-5
if point(x-1,y) > 0 then y = y - 1 ; stairl = 1
if point(x+1,y) > 0 and stairl = 0 then y = y - 1 ; stairr = 1
if point(x,y+1) < 1 and stairr = 0 and stairl = 0 then y = y + 1
if point(x,y+1) < 1 and stairr = 0 and stairl = 0 then y = y + 1
if leftkey()=1 then x = x - 1 ; l = 1 ; r = 0
if rightkey()=1 then x = x + 1 ; r = 1 ; l = 0
monx# = monx# + moninc#
if monx# > 457 then moninc# = -.9
if monx# < 85 then moninc# = .9
if point(x-1,y) = 16711680 then text 300,240,"GAME OVER"
if point(x+1,y) = 16711680 then text 300,240,"GAME OVER"
if attack = 1 and r = 1 and point(x+6,y-5) = 16711680 then monexist = 0
if attack = 1 and l = 1 and point(x-6,y-5) = 16711680 then monexist = 0
ink 0,0
stairr = 0
stairl = 0
sync
line oldx,oldy,oldx,oldy-10
if attack = 1 then line oldx,oldy-5,oldx+5,oldy-5 ; line oldx,oldy-5,oldx-5,oldy-5
line monx#-moninc#,168,monx#-moninc#,158
attack = 0
loop
"Computers in the future may weigh no more then
1.5 tons. - Popular Mechanics, 1949