first off, apologies if this show up as a double post.
heres what i got sofar for this challenge.
only 219 lines of code now. still have to add collision.
Rem Project: frogger
Rem Created: 10/9/2005 7:10:44 PM
Rem Creator: sizer : gregory.sizer@us.army.mil
Rem FOR PROPER DISPLAY SET PROJECT TO WINDOWED AT 800x600
`-------------------------------------------
sync off
`game variables
dim fx#(1)
dim fy#(1)
dim lives#(1)
dim gator$(1)
dim lilly$(1)
dim car$(1)
dim l_semi$(1)
dim r_semi$(1)
dim l_start#(1)
dim r_start#(1)
dim l_pos#(15)
dim r_pos#(15)
dim l_pos1#(15)
dim r_pos1#(15)
`initialize hazards
setup_game()
`-------------------------------------------
`main loop
do
cls
text 20,550,"Lives Left:" + str$(lives#(1))
Draw_BG()
Con_Frog()
Con_Traffic()
Con_Aqua()
` end program when [END] key is pressed
if keystate(207) then end
` CALL DEBUG CODE ON [d]
if keystate(32) then DEBUG()
sync
loop
`-------------------------------------------
`setup hazards
function setup_game()
fx#(1)=400
fy#(1)=500
lives#(1)=9
gator$(1)=">\===----"
lilly$(1)="%%%"
car$(1)="[#]"
l_semi$(1)="[#]=[#####]"
r_semi$(1)="[#####]=[#]"
l_start#(1)=len(l_semi$)
l_start#(1)=800-l_start#
r_start#(1)=len(r_semi$)
for i = 1 to 15
l_pos#(i) = l_start#(1) - (i * 10)
r_pos#(i) = (i * 10) + r_start#(1)
next i
for i = 1 to 15
l_pos1#(i) = (l_start#(1) - 200) - (i * 15)
r_pos1#(i) = (i * 15) + (r_start#(1) + 200)
next i
endfunction
`-------------------------------------------
`main screen
function Draw_BG()
ink RGB(0,64,0),RGB(0,0,0)
for s2=1 to 3
print "######## ##### ##### ##### ##### ##### ##### ##### ##### ########"
next s2
ink RGB(0,0,255),RGB(255,255,255)
for w=1 to 10
print "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
next i
ink RGB(108,80,40),RGB(240,216,40)
for s1=1 to 3
print ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"
next s1
ink RGB(255,255,0),RGB(0,0,0)
for r=1 to 15
select r
case 4 : print "=====================================================================================================" :endcase
case 8 : print "=====================================================================================================" :endcase
case 12 : print "=====================================================================================================" :endcase
case default : print "" : endcase
endselect
next r
ink RGB(108,80,40),RGB(108,80,40)
for s0=1 to 3
print "*****************************************************************************************************"
next s0
print "-----------------------------------------------------------------------------------------------------"
endfunction
`-------------------------------------------4
`control frogger
function Con_Frog()
if keystate(200) then fy#(1)=fy#(1)-10
if keystate(208) then fy#(1)=fy#(1)+10
if keystate(203) then fx#(1)=fx#(1)-10
if keystate(205) then fx#(1)=fx#(1)+10
if fy#(1) >= 499 then fy#(1)=498
if fx#(1) >= 791 then fx#(1)=790
if fx#(1) <= 9 then fx#(1)=10
if fy#(1) <= 9 then fy#(1)=10
ink RGB(0,255,0),RGB(0,0,0)
text fx#(1),fy#(1),"@"
endfunction
`-------------------------------------------
`control traffic
function Con_Traffic()
ink RGB(255,255,255),RGB(0,0,0)
for i = 1 to 15
` sets current vehicle moving left position
l_pos#(i)=l_pos#(i)-(i*0.75)
if l_pos#(i)<=1 then l_pos#(i)=l_start#(1)
l_pos1#(i)=l_pos1#(i)-(i*0.75)
if l_pos1#(i)<=1 then l_pos1#(i)=l_start#(1)
` sets current vehicle moving right position
r_pos#(i)=r_pos#(i)+(i*0.75)
if r_pos#(i)>=790 then r_pos#(i)=r_start#(1)
r_pos1#(i)=r_pos1#(i)+(i*0.75)
if r_pos1#(i)>=790 then r_pos1#(i)=r_start#(1)
next i
` display vehicles in current position
for i = 1 to 15
select i
case 1 : set cursor l_pos#(i),410 : print l_semi$(1) : endcase
case 2 : set cursor r_pos#(i),399 : print car$(1) : endcase
case 3 : set cursor l_pos#(i),388 : print car$(1) : endcase
case 4 : set cursor r_pos#(i),377 : print r_semi$(1) : endcase
case 5 : set cursor l_pos#(i),366 : print l_semi$(1) : endcase
case 6 : set cursor r_pos#(i),355 : print car$(1) : endcase
case 7 : set cursor l_pos#(i),344 : print car$(1) : endcase
case 8 : set cursor r_pos#(i),333 : print r_semi$(1) : endcase
case 9 : set cursor l_pos#(i),322 : print l_semi$(1) : endcase
case 10 : set cursor r_pos#(i),311 : print car$(1) : endcase
case 11 : set cursor l_pos#(i),300 : print car$(1) : endcase
case 12 : set cursor r_pos#(i),289 : print r_semi$(1) : endcase
case 13 : set cursor l_pos#(i),278 : print l_semi$(1) : endcase
case 14 : set cursor r_pos#(i),267 : print car$(1) : endcase
case 15 : set cursor l_pos#(i),256 : print car$(1) : endcase
endselect
next i
for i = 1 to 15
select i
case 1 : set cursor l_pos1#(i),410 : print l_semi$(1) : endcase
case 2 : set cursor r_pos1#(i),399 : print car$(1) : endcase
case 3 : set cursor l_pos1#(i),388 : print car$(1) : endcase
case 4 : set cursor r_pos1#(i),377 : print r_semi$(1) : endcase
case 5 : set cursor l_pos1#(i),366 : print l_semi$(1) : endcase
case 6 : set cursor r_pos1#(i),355 : print car$(1) : endcase
case 7 : set cursor l_pos1#(i),344 : print car$(1) : endcase
case 8 : set cursor r_pos1#(i),333 : print r_semi$(1) : endcase
case 9 : set cursor l_pos1#(i),322 : print l_semi$(1) : endcase
case 10 : set cursor r_pos1#(i),311 : print car$(1) : endcase
case 11 : set cursor l_pos1#(i),300 : print car$(1) : endcase
case 12 : set cursor r_pos1#(i),289 : print r_semi$(1) : endcase
case 13 : set cursor l_pos1#(i),278 : print l_semi$(1) : endcase
case 14 : set cursor r_pos1#(i),267 : print car$(1) : endcase
case 15 : set cursor l_pos1#(i),256 : print car$(1) : endcase
endselect
next i
endfunction
`-------------------------------------------
`Control water based stuff
function Con_Aqua()
ink RGB(0,128,64),RGB(0,0,0)
for i = 1 to 12
select i
case 1 : set cursor l_pos#(i),180 : print gator$(1) : endcase
case 2 : set cursor r_pos#(i),168 : print lilly$(1) : endcase
case 3 : set cursor l_pos#(i),156 : print gator$(1) : endcase
case 4 : set cursor r_pos#(i),144 : print lilly$(1) : endcase
case 5 : set cursor l_pos#(i),132 : print gator$(1) : endcase
case 6 : set cursor r_pos#(i),120 : print lilly$(1) : endcase
case 7 : set cursor l_pos#(i),108 : print gator$(1) : endcase
case 8 : set cursor r_pos#(i),96 : print lilly$(1) : endcase
case 9 : set cursor l_pos#(i),84 : print gator$(1) : endcase
case 10 : set cursor r_pos#(i),72 : print lilly$(1) : endcase
case 11 : set cursor l_pos#(i),60 : print gator$(1) : endcase
case 12 : set cursor r_pos#(i),48 : print lilly$(1) : endcase
endselect
next i
for i = 1 to 12
select i
case 1 : set cursor l_pos1#(i),180 : print gator$(1) : endcase
case 2 : set cursor r_pos1#(i),168 : print lilly$(1) : endcase
case 3 : set cursor l_pos1#(i),156 : print gator$(1) : endcase
case 4 : set cursor r_pos1#(i),144 : print lilly$(1) : endcase
case 5 : set cursor l_pos1#(i),132 : print gator$(1) : endcase
case 6 : set cursor r_pos1#(i),120 : print lilly$(1) : endcase
case 7 : set cursor l_pos1#(i),108 : print gator$(1) : endcase
case 8 : set cursor r_pos1#(i),96 : print lilly$(1) : endcase
case 9 : set cursor l_pos1#(i),84 : print gator$(1) : endcase
case 10 : set cursor r_pos1#(i),72 : print lilly$(1) : endcase
case 11 : set cursor l_pos1#(i),60 : print gator$(1) : endcase
case 12 : set cursor r_pos1#(i),48 : print lilly$(1) : endcase
endselect
next i
endfunction
`-------------------------------------------
`DEBUG CODE : REMOVE FOR FINAL ENTRY.
function DEBUG()
cls
ink RGB(255,255,255),RGB(0,0,0)
text 309,11,"fx# = " + str$(fx#(1))
text 309,22,"fy# = " + str$(fy#(1))
text 309,33,"lives# = " + str$(lives#(1))
text 309,44,"car$ = " + car$(1)
text 309,55,"l_semi$ = " + l_semi$(1)
text 309,66,"r_semi$ = " + r_semi$(1)
text 309,77,"l_start# = " + str$(l_start#(1))
text 309,88,"r_start# = " + str$(r_start#(1))
text 309,99,"gator$ = " + gator$(1)
text 309,110,"lilly$ = " + lilly$(1)
for i = 1 to 15
text 1,(i*11),"l_pos# = " + str$(l_pos#(i))
text 155,(i*11),"r_pos# = " + str$(r_pos#(i))
next i
text 20,550,"Framerate:"+str$(screen fps())
endfunction
-------------------------------------------------------------
AMD Sempron 2800+ : 768MB RAM DDR400 : ATI 9800PRO 128MB AIW