์คํ๋ผ์ดํธ1 pygame_(3)_์คํ๋ผ์ดํธ(์บ๋ฆญํฐ) import pygame def main(): pygame.init() # ํ์ดํ pygame.display.set_caption("MYGAME") #๊ฒ์ ์ด๋ฆ # ํ๋ฉด ํฌ๊ธฐ ์ค์ screen_width = 480 #๊ฐ๋ก ํฌ๊ธฐ screen_height = 640 #์ธ๋ก ํฌ๊ธฐ screen = pygame.display.set_mode((screen_width, screen_height)) # ์คํ๋ผ์ดํธ ๋ถ๋ฌ์ค๊ธฐ(์บ๋ฆญํฐ) character = pygame.image.load(์บ๋ฆญํฐ ์ด๋ฏธ์ง ๊ฒฝ๋ก) character_size = character.get_rect().size # rect = ์ฌ๊ฐํ / ์ด๋ฏธ์ง์ ํฌ๊ธฐ๋ฅผ ๊ตฌํด์ด character_width = character_size[0] # ์บ๋ฆญํฐ์ ๊ฐ๋ก ํฌ๊ธฐ .. 2021. 11. 5. ์ด์ 1 ๋ค์ ๋ฐ์ํ