hi all! my teacher expects me to make a simple soccer game witch is due tomorrow (monday z 19th) and i am stuck cant just do it...would u pls help? heres my thing..
i need to make a soccer game using the arrows on the keybord and a switch bottens. the the LEFT ARROW makes the player to move to left and the RIGHT ARROW makes it move to right and the UP ARROW UP, the DOWN ARROW down plus . there are 2 players , playing against one contros from keybord and the other player contros from switch on z brad bord...my here is my code so far i hope some one will help me out its a final project and am so behind good luck to me
thank u in advance | CODE |
var y2:int var rx: real var val:int var move:int:=1 var playz:int:=1 var pl, p2:int:=0
% builds the field. drawfillbox (0,0,maxx,maxy,green) drawbox (1,5,maxx,maxy,white) drawfillbox (0,125,30,290,gray) drawfillbox (600,110,650,290,gray) drawbox (0,0,maxx,maxy,2) drawline (300,150,300,0,white) drawline (300,395,300,260,white) drawoval(300,205,50,10,white)
%players loop
drawfillbox (90,130,110,110,gray) drawfillbox (90,130,110,110,green)
%ball moving end loop loop for t: 1 .. 3 for x: 10..630 drawfilloval (x,40,10,10,brightred) delay (5) drawoval (x,40,10,10,green) end for for decreasing x: 630..10 drawfilloval (x,40,10,10,brightred) delay (5) drawfilloval (x,40,10,10,green) end for end for end loop |
|