I know the 20 line challenge has had a winner named but I hope they keep this part of the forum up as I last night made a simple 20 line boxing game. Its 2 player and the controls are
PLAYER 1:
left/right arrow keys to move
enter to punch
PLAYER 2:
A/S keys to move
space to punch.
You will need to download the images from my web site I will post a link in a minute.
create animated sprite 1, "jab.png", 3, 1, 1:create animated sprite 2, "jab1.png", 3, 1, 2
load image "ring.png",3
do
sprite 1,player1x+10,player1y+385,1:scale sprite 1,25:if leftkey()=1 then player1x=player1x-1
if rightkey()=1 then player1x=player1x+1
if returnkey()=1 then play sprite 1,1,3,100
if returnkey()=0 then set sprite frame 1,3
sprite 2,player2x+400,player2y+385,2:scale sprite 2,25:if inkey$()="a" then player2x=player2x-1
if inkey$()="s" then player2x=player2x+1
if spacekey()=1 then play sprite 2,1,3,100
set cursor 10,10:print "PLAYER 1 BEATOMETER! :";plyr1health:set cursor 425,10:print "PLAYER 2 BEATOMETER! :";plyr2health
if spacekey()=0 then set sprite frame 2,3
if sprite collision(1,2)=1 and sprite frame(1)=2 then INC plyr2health:if plyr2health>1500 then end
if sprite collision(2,1)=1 and sprite frame(2)=2 then inc plyr1health:if plyr1health>1500 then END
sprite 3,-70,-120,3
size sprite 3,700,600
set sprite priority 1,1
set sprite priority 2,2
loop
monkey by day, crime fighting sex god by night