finalcut02
@finalcut022069
Reviews Written
2
Average Rating
5.0
Posts
Q&A
์ ๋ํฐ๊ฐ ์๋ฐ์คํฌ๋ฆฝํธ๋ฅผ ๋์ด์ ์ง์ํ์ง ์๋ค์..ใ ใ
์ ๋์ใ ใ ใ ์ ๋ ๊ทธ๋ฅ ์ ๋ํฐ ํ๋ก๊ฐ ์๋๋ผ ๊ทธ๋ฐ ์ค ์์๋๋ฐ ๋๊ฐ์ ์๊ฐ ํ์๋ค์ใ ใ
- 5
- 1
- 1.8K
Q&A
์ด๊ฑด ์ง๋ฌธ์ ์๋๊ณ ..
๊ฐ์จํฉ๋๋น^^
- 3
- 3
- 327
Q&A
๋๊ฐ์ด ํ๋๋ฐ ์์๋์ฃ ?
์ ์ด์ ๋์ต๋๋คใ ใ ์คํ ๋ง ๋ฌธ์ ์๋ด์ฌ ๊ดํ ์๊ฐ ๋บ๊ธฐ๊ฒ ํด์ ์ฃ์กํฉ๋๋คใ ใ
- 0
- 2
- 271
Q&A
๋นจ๊ฐ ๊ธ์ ์๋๋์
์ ๊ฐ์ฌํฉ๋๋ค ๊ทธ๋ฆฌ๊ณ ์ ์ ์ด๋ ๊ฒ ํด๋ดค๋๋ฐ ์คํ๊ฐ ์์๋ค์ใ ใ ๊ทธ๋์ ๋ฉ์ถฐ์์๋ค๊ฐ ๋ต๋ณ์ด ์์ ์ด์ ํ ์ ์๊ฒ๋ค์ฌใ ๊ฐ์ฌํฉ๋๋ค^^
- 0
- 2
- 286
Q&A
์ ๊ทธ๋ฐ์ง ๋ชจ๋ฅด๊ฒ ์ง๋ง ๋ค๋ฅธ ๋ฒ๊ทธ๊ฐ ์์ต๋๋ค.
์ ๊ทธ๋ฆฌ๊ณ ๊ทธ๋ ๊ฒ ํด๋ ์๋๋ฉด ์ ๊ฐ ๋ชป์ฐพ์ ๋ถ๋ถ์ด ์์ ์๋ ์์ต๋๋ค.
- 0
- 4
- 412
Q&A
์ ๊ทธ๋ฐ์ง ๋ชจ๋ฅด๊ฒ ์ง๋ง ๋ค๋ฅธ ๋ฒ๊ทธ๊ฐ ์์ต๋๋ค.
๋ค! ์ ball_img_idx๋ผ๋ ๋ณ์๋ฅผ ์ง์ ํ ๋ 'ball'_img.... ์ด๋ผ๊ณ ์ ์๋๋ฐ ์๋ ์ฒ๋ผ balloon_img_idx์ด๋ผ๊ณ ์ด๊ฒ ๋ง์๋ฐ --> ๋ก ์์ ํ ๋ถ๋ถ์ ํ์ํ๋๋ก ํ๊ฒ ์ต๋๋ค. (ball_img_idx๋ก) ๊ทธ๋ฆฌ๊ณ ๋๋๋ก์ด๋ฉด ์์์ ๋ณ์ ์ด๋ฆ๊ณผ ๋๊ฐ์ด ์ฐ๋๊ฒ ํผ๋๋์ง ์๊ธฐ ๋๋ฌธ์ ์ข์ต๋๋ค. # ๊ฐ์ฅ ์์ ํฌ๊ธฐ์ ํ์ ์ด ์๋๋ผ๋ฉด ๋ค์ ๋จ๊ณ์ ํ์ ์ผ๋ก ๋๋ ์ฃผ๊ธฐ if ์๊ธฐ --> balloon_img_idx # ๋๋ ์ง ๊ณต ์ ๋ณด small_balloon_rect = balloon_images[--> balloon_img_idx balloon_img_idx balloon_img_idx balloon_img_idx balloon_img_idx -1: del balloons[balloon_to_remove] balloon_to_remove = -1 if weapon_to_remove > -1: del weapons[weapon_to_remove] weapon_to_remove = -1 # ๋ชจ๋ ํ์ ์ ์์ค ๊ฒฝ์ฐ ๊ฒ์ ์ข ๋ฃ (Mission Complete) if len(balloons) == 0: game_result = "Mission Complete" running = False # 5. ํ๋ฉด์ ๊ทธ๋ฆฌ๊ธฐ screen.blit(background, (0, 0)) for weapon_x_pos, weapon_y_pos in weapons: screen.blit(weapon, (weapon_x_pos, weapon_y_pos)) for idx, val in enumerate(balloons): balloon_x_pos = val["pos_x"] balloon_y_pos = val["pos_y"] --> balloon_img_idx balloon_img_idx pygame.quit()
- 0
- 4
- 412
Q&A
์ ๊ทธ๋ฐ์ง ๋ชจ๋ฅด๊ฒ ์ง๋ง ๋ค๋ฅธ ๋ฒ๊ทธ๊ฐ ์์ต๋๋ค.
์ฝ๋๋ฅผ ์ฃผ์ ์ผ ๋ต๋ณ ํ ์ ์๋๋ฐ์ฌ..
- 0
- 4
- 412
Q&A
๋น์ฅฌ์ผ ์คํ๋์ค ์์ ๋๋์ฝ๋ฉ๋ ์ฒ๋ผ ๋๊ฐ์ด ์ฝ๋๋ฅผ ์ณค๋๋ฐ ์๋ฌ๊ฐ ๋น๋๋ค. ์ด๋ป๊ฒ ํด์ผํ๋์?
์ ...์์.... screen_width, screen_width๋ฅผ ๋ค์ screen_width, screen_height์ผ๋ก ๋ฐ๊พธ์ธ์
- 2
- 3
- 327
Q&A
์ ๊ฐ ์ถ๊ฐํ๊ฑด๋ฐ ์ ์๋๋ค์ใ ใ (์ฐธ๊ณ ๋ก ์คํํฌ๋ํํธ ์ ๋ชฐ๋ผ์ฌ)
์ค ๊ฐ์ฌํฉ๋๋ค
- 0
- 2
- 258
Q&A
while ๋ฃ์ด ๋ดค๋๋ฐ ์ ์๋๋ ๊ฑฐ์ฃ ?
๋ฐํ ๋๊ฑธ ๋ด๊ฐ ๋ชป๋ณด๋คใ ใ
- 0
- 2
- 222




