猫史档案馆


淡若天涯心境如水

淡若天涯心境如水

Lv.1

404 not found

获赞:88收藏:0浏览:179作品收藏:0

签名:印象派全套 我的人生(模拟赚钱) 小说《命悬一线》

回复帖子评论
上一页1 页 / 共 1下一页

求师傅参加编程猫长隆之旅 中回复

我是有实力的

下面是我没完成的

import pgzrun
import random
import math

WIDTH = 450
HEIGHT = 650
score = 0
game_state = 'start'
speed = 6
shoot = False
t = 0

spaceship = Actor('spaceship',(200,550))
diamond = Actor('diamond',(100,-200))
enermy = Actor('enermy2',(300,-200))
bullet = Actor('bullet',(200,-100))


def draw():
    global game_state,shoot,score
    if game_state == 'start':
        screen.blit('space',(0,0))
        screen.draw.text('Spacecraft',(115,260),fontsize = 60)
        screen.draw.text('Press SPACE to start!',(85,320),fontsize = 40)
        if keyboard.space:
            game_state = 'play'
            sounds.bg_music.play(-1)

    elif game_state == 'play':
        screen.blit('space',(0,0))
        screen.draw.text('score:' + str(score),(10,10),fontsize = 30)
        spaceship.draw()
        diamond.draw()
        enermy.draw()
        bullet.draw()

def place_object(obj):
    obj.x = ra

def update():
    global score,game_state,shoot,t
    if game_state == 'play':
        enermy.y += speed - 3
        enermy.x = WIDTH / 2 * ( 1 + math.sin(t))
        t += 0.02
        diamond.y += speed


pgzrun.go

2021-07-03T22:12:48 点赞:1

海龟编辑器手机版 中回复

发布会中说是已上线各大应用商店

2021-07-31T18:57:22 点赞:0

印象派全家桶 中回复

正式改名为印象派

2021-10-31T09:05:19 点赞:0

印象派全家桶 中回复

import os

print("欢迎印象派")

2021-10-31T09:06:44 点赞:0