공이 쪼개지지 않고 1개가 작아지기만 합니다(에러메세지)
638
작성한 질문수 2
공이 안쪼개지고 아래 실행칸에는 이런 메세지가 뜨는데요
뭐가 문제일까요??
c:/Users/user/Desktop/python work space/pygame_project/5_ball_division.py:160: DeprecationWarning: an integer is required (got type float). Implicit conversion to integers using __int__ is
deprecated, and may be removed in a future version of Python.
character_rect.left = character_x_pos
c:/Users/user/Desktop/python work space/pygame_project/5_ball_division.py:171: DeprecationWarning: an integer is required (got type float). Implicit conversion to integers using __int__ is
deprecated, and may be removed in a future version of Python.
ball_rect.top = ball_pos_y
c:/Users/user/Desktop/python work space/pygame_project/5_ball_division.py:246: DeprecationWarning: an integer is required (got type float). Implicit conversion to integers using __int__ is
deprecated, and may be removed in a future version of Python.
screen.blit(ball_images[ball_img_idx], (ball_pos_x, ball_pos_y)) # 공 이미지 그려주기
c:/Users/user/Desktop/python work space/pygame_project/5_ball_division.py:250: DeprecationWarning: an integer is required (got type float). Implicit conversion to integers using __int__ is
deprecated, and may be removed in a future version of Python.
screen.blit(character, (character_x_pos, character_y_pos))
답변 1
0
Implicit conversion to integers using __int__ is
deprecated, and may be removed in a future version of Python.
이렇게 적혀있네요. 잘 읽어봐요. 이게 답이네요.
애초에 __int__ 는 쓰인적이 없어요. 이건 읽어볼 생각도 안하고 계신거 같은데,,, 오류가 뜨면 그냥 왜 안되지 하지 말고 그 오류 를 읽어봐요.
pygame 설치오류
0
121
1
pip install pygame 이 실패합니다
0
205
1
pip install pygame 이 안되요
0
886
1
(4:00) linting enabled 항목이 보이지 않습니다
0
155
1
마지막 프로젝트 그림 파일들을 올려주실 수는 없을까요?
0
202
1
import pygame에서 계속 오류가 발생해요
0
3580
2
무기 Y포지션 speed 감소
0
294
1
pygame 공부
0
504
0
마지막 부분 스프라이트가 맨 왼쪽에 위치해있습니다
0
264
1
공 쪼개기 문제
0
305
0
실행시 글자가 깨집니다.
0
309
1
키보드 이벤트 오류
0
569
1
스크린의 높이를 680으로 설정했을 때 오류?
0
294
1
pygame.time.get_ticks() 질문있습니다.
0
534
0
캐릭터의 이동
0
328
0
적(똥)과 케릭터가 충돌했을 때 게임 오버가 뜨게 만들려고..
0
298
1
시작을 하기에 앞서...
0
388
0
이미지 배경을 투명하게 하려면?
0
374
0
파이게임이 실행은 되는데....
0
227
0
실행이 안됩니다.
0
320
0
똑같이 따라 쳤는데 오류가 생겨요
0
302
0
배경색이 안 나와요
0
328
0
import pygame 실행이 안 돼요
0
2697
1
Error
0
151
0





