The Programming Page


This is my programming page. I use several
programming languages, including DarkBASIC,
Visual Basic, HTML, and JavaScript. (not to
mention RCX code for my Lego RCX)


This is a sample program in DarkBASIC.

`The Simple Sample Program
`By Rosco

sync on
hide mouse

x=320 : y=240

ink rgb(255,255,255),rgb(0,0,0)
do

cls

if upkey()=1 then y=y-1
if downkey()=1 then y=y+1
if leftkey()=1 then x=x-1
if rightkey()=1 then x=x+1

ellipse x,y,100,50
line x-10,y,x+10,y
line x,y-5,x,y+5

sync

loop


This is a sample program in RCX Code.
Note: It is written for the Pathfinder.
See pages 4 and 5 of the Constructopedia for details.

on AC
wait 2.0
off C
wait 1.0
on C
wait 2.0
off A
wait 1.0
on A
wait 2.0

Go Back