Try to move the pitchfork to smash the computers.

#background stage.set_background("grid") #pitchfork def up_key(): pitchfork.move_right(1) def right_key(): pitchfork.move_down(1) def down_key(): pitchfork.move_left(1) def left_key(): pitchfork.move_up(1) pitchfork = codesters.Sprite("pitchfork") pitchfork.set_size(0.5) stage.event_key("up", up_key) stage.event_key("right", right_key) stage.event_key("down", down_key) stage.event_key("left", left_key) #computer def interval(): computer = codesters.Sprite("computer") computer.set_size(0.1) x = random.randint(-200,200) computer.set_x(x) y = random.randint(-200,200) computer.set_y(y) stage.event_interval(interval, 1) #save def collision(sprite, hit_sprite): stage.remove_sprite(hit_sprite) pitchfork.event_collision(collision)
Support