小编Dan*_*llo的帖子

如何一次停止发射 1 颗以上的子弹?

import pygame
pygame.init()

red = 255,0,0
blue = 0,0,255
black = 0,0,0

screenWidth = 800
screenHeight = 600

gameDisplay = pygame.display.set_mode((screenWidth,screenHeight))        ## screen width and height
pygame.display.set_caption('JUST SOME BLOCKS')       ## set my title of the window

clock = pygame.time.Clock()

class player():       ## has all of my attributes for player 1
    def __init__(self,x,y,width,height):
        self.x = x
        self.y = y
        self.height = height
        self.width = width
        self.vel = 5
        self.left = False
        self.right = False
        self.up = False
        self.down = False

class …
Run Code Online (Sandbox Code Playgroud)

python pygame pygame-tick

3
推荐指数
1
解决办法
383
查看次数

标签 统计

pygame ×1

pygame-tick ×1

python ×1