猫史档案馆


【Python作品分享】新的作品

用户:田峻伟田峻伟查看:0 回复:0 评论:0 创建时间:2023-07-07T08:59:30


【作品展示】

center_image

 

【作品介绍】

jnmkl,;./

 

【作品源代码】

import pgzrun
WIDTH = 480
HEIGHT = 852
score = 0
background = Actor("background")
hero = Actor("hero")
bullet = Actor("bullet")
enemy = Actor("enemy")
hero.x = WIDTH/2
hero.y = HEIGHT*2/3
bullet.y = -HEIGHT
enemy.x = WIDTH/2
enemy.y = 0
def draw():
    background.draw()
    hero.draw()
    bullet.draw()
    enemy.draw()
pgzrun.go()

 

【提示】

部分含有Python第三方库相关内容的作品,在海龟编辑器网页端无法运行哦!如遇到这种情况,可以打开下面的链接,下载海龟编辑器客户端:

https://python.codemao.cn


回复

上一页1 页 / 共 0下一页