import sprite
import mcookie
while True:
if sprite.is_keypressed('up arrow'):
mcookie.carControl(-70, 70)
if sprite.is_keypressed('down arrow'):
mcookie.carControl(70, -70)
if sprite.is_keypressed('left arrow'):
mcookie.carControl(-40, 70)
if sprite.is_keypressed('right arrow'):
mcookie.carControl(-70, 40)
if sprite.is_keypressed('space'):
mcookie.carControl(0, 0)
if sprite.is_keypressed('w'):
mcookie.carControl(-255, 255)
if sprite.is_keypressed('s'):
mcookie.carControl(-70, 70)
立即注册