Oh soz I must have been really! tired last night,lol but here it is.
cls
print "The controls are: "
print "For player one: "
print "arrow keys to move"
print "l to recharge/heal"
print "m to attack"
print "For player two: "
print "w - forward"
print "a - left"
print "d - right"
print "s - down"
print "q - recharge/heal"
print "e - attack"
print "Press any key to play"
wait key
start:
backdrop on : color backdrop rgb(0,0,0)
player = 1
enemy = 2
make object cube player,0.1
color object player,rgb(255,0,0)
make object cube enemy,0.1
color object enemy,rgb(0,255,0)
life=1000
life2=1000
score=0
score2=0
extra=100
extra2=100
start:
do
print life
print life2
print "Player 1 Score : ",score
print "Player 2 Score : ",score2
if leftkey()=1 then move object left player,0.01
if rightkey()=1 then move object right player,0.01
if upkey()=1 then move object up player,0.01
if downkey()=1 then move object down player,0.01
if inkey$()="w" then move object up enemy,0.01
if inkey$()="a" then move object left enemy,0.01
if inkey$()="s" then move object down enemy,0.01
if inkey$()="d" then move object right enemy,0.01
if inkey$()="l" then life=life+1
if inkey$()="q" then life2=life2+1
if inkey$()="m" and object collision(player,enemy)
life2=life2-1
endif
if inkey$()="e" and object collision (player,enemy)
life=life-1
endif
if life<0 then Print "Player 2 wins!" : score2=score2+1 : goto start
if life2<0 then Print "Player 1 wins!" : score=score+1 : goto start
loop
Working for ELB software on Realms of Tutopia!