똥피하기 게임
import pygamefrom pygame.locals import *import randomimport sysFPS = 60MAX_WIDTH = 400MAX_HEIGHT = 600pygame.init()clock = pygame.time.Clock()screen = pygame.display.set_mode((MAX_WIDTH,MAX_HEIGHT))class Player(): def __init__(self,x,y): self.x = x self.y = y def draw(self): return pygame.draw.rect(screen,(0,0,255),(self.x,self.y,40,40)) def move(self): if pr..
python
2025. 4. 6. 14:41