2020-08-01から1ヶ月間の記事一覧
def main(): # Initialize pygame screen pygame.init() screen = pygame.display.set_mode(GAME_RECT.size) pygame.display.set_caption("Game Title") # Create sprite group sprite_group = pygame.sprite.RenderUpdates() Paddle.containers = sprite_gr…
#!/usr/bin/env python import os import sys import pygame from pygame.locals import * GAME_RECT = Rect(0, 0, 384, 384) def main(): pygame.init() screen = pygame.display.set_mode(GAME_RECT.size) pygame.display.set_caption("Game Title") while…