Computer/Micro:bit

๋น—๋ฐฉ์šธ ํ”ผํ•˜๊ธฐ

๋งˆ์ดํฌ๋กœ ๋น„ํŠธ๋ฅผ ์ œ์–ดํ•˜๋Š” ๊ธฐ๋ณธ ๋ฌธ๋ฒ•์„ ํ•™์Šตํ•˜์—ฌ ๊ฒŒ์ž„์„ ๋งŒ๋“ ๋‹ค. # ๊ฒŒ์ž„์…‹ํŒ… def gameSetting(): global start, gameSpeed, sprite, direction start = False gameSpeed = 500 sprite = game.create_sprite(2, 4) # sprite๊ฐ€ ์ฒ˜์Œ ๋ฐฐ์น˜๊ฐ€ ๋˜๋ฉด ์˜ค๋ฅธ์ชฝ์„ ๋ฐ”๋ผ๋ณด๊ณ  ์žˆ๋‹ค. ์ดˆ๊ธฐ ์„ธํŒ…์„ ํ•ด์ฃผ๋Š”๊ฒƒ. direction = "right" rainSetting() # ๊ฒŒ์ž„์˜ค๋ฒ„ ๋งŒ๋“ค๊ธฐ def spriteDie(): global start if sprite.is_touching(rain1) or sprite.is_touching(rain2) or sprite.is_touching(rain3): rain1.delete() rain2..
EIGHTBOX
EIGHTBOX
hwaya.

programmer

๐Ÿ‹์ผ์ƒ์˜ ์†Œ์†Œํ•œ ์ˆœ๊ฐ„๋“ค๋ถ€ํ„ฐ ํฐ ๊ฟˆ๊นŒ์ง€, ํ˜ธ๊ธฐ์‹ฌ์„ ๋งŒ์กฑ์‹œํ‚ฌ ๋‹ค์–‘ํ•œ ์นดํ…Œ๊ณ ๋ฆฌ๋ฅผ ๋‹ด์€ ๋ธ”๋กœ๊ทธ ์ž…๋‹ˆ๋‹ค. ๊ทธ๋ฆฌ๊ณ , ์†Œ์†Œํ•œ ํ–‰๋™์— ๊ฐ๋™ํ•˜๋ฉฐ ๊ธฐ๋ปํ•˜๊ณ  ํ•˜๋ฃจํ•˜๋ฃจ์— ๊ฐ์‚ฌํ•˜๋Š” ์‚ฌ๋žŒ๐ŸŒต

Today Yesterday Total
์ตœ์‹ ๊ธ€