● GIT URL : https://github.com/yooyijun15/Python/tree/main/Day20
● 학습 내용
1) tracer - update
import time
game_screen.tracer(0)
버전 1.
while game_is_on:
for seg in segments:
seg.forward(20)
game_screen.update()
time.sleep(0.2)
버전 2.
while game_is_on:
game_screen.update()
time.sleep(0.1)
for seg in segments:
seg.forward(20)
'여러가지 > Python' 카테고리의 다른 글
Day22 - 프로젝트 Pong 게임 (0) | 2024.04.30 |
---|---|
Day 21 - 프로젝트 Snake Game (2) (0) | 2024.04.29 |
Day 19 - Turtle Game (0) | 2024.04.27 |
Day 18 - Turtle, colorgram, tuples(터플), PyCharm (0) | 2024.04.27 |
Day 17 - Class(클래스) (0) | 2024.04.20 |