Nice tricks done here. Awesome start, Dennis!
Code: |
program a;
begin
load_fpg("f");
p(1,1,9); // 180 can be 9, makes it rather unplayable though...
end
process p(t,x,y)
begin
graph=t*t; // you need to update the fpg with the new code here
repeat
if(t)
x=mouse.x;
if(mouse.left)
p(-8,x,y-9);
end
p(6,timer%99,0); // Don't like this, one, but as per rules, rocks don't NEED to be spread out when falling
end
y+=t-1; // shaved off the else
frame;
until(collision(type p)) // like iWizard said, the y comparisons can go as per rules. Not a big fan of it either.
end
|
Try that. |