首页/作品列表/键盘遥控小车
主要内容
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)

代码展示
暂无数据!
附件下载
  • 资料展示
  • 小车.zip
0
大牛,别默默的看了,快登录帮我点评一下吧!

立即注册