/CrayonGame

๐ŸŽฎ ์งฑ๊ตฌ๊ต์‹ค ์น˜์นด์น˜์นด๊ฒŒ์ž„ ๐Ÿชฅ๐Ÿฆท

Primary LanguageSwift

CrayonGame

* iPhone 11 ํ•ด์ƒ๋„ ์ตœ์ ํ™”

๊ฒŒ์ž„ ์„ค๋ช…

- ์ฃผ์–ด์ง„ ์‹œ๊ฐ„ ์•ˆ์— ๋ชฉํ‘œ ์ ์ˆ˜๋ฅผ ์ฑ„์›Œ์•ผํ•˜๋Š” ๊ฒŒ์ž„
- ์ด๋นจ์— ์ข‹์€ ์Œ์‹(๐ŸŽ , ๐Ÿฅฌ ), ์ด๋นจ์— ์•ˆ์ข‹์€ ์Œ์‹ (๐Ÿฅค,๐Ÿฆ, ๐Ÿซ)
- ์ด๋นจ์— ์ข‹์ง€ ์•Š์€ ์Œ์‹์ด ์ด๋นจ์— ๋‹ฟ๊ธฐ ์ „์— ์งฑ๊ตฌ(Player)๊ฐ€ ๋ง‰๋Š” ๊ฒŒ์ž„

๊ฒŒ์ž„ ๊ทœ์น™

- Start ๋ฒ„ํŠผ์„ ๋ˆ„๋ฅด๋ฉด ํƒ€์ด๋จธ (40์ดˆ) ์‹œ์ž‘
- ๋ฉ”์ธ ๋กœ์ง: ์ด๋นจ์— ์•ˆ์ข‹์€ ์Œ์‹์ด ๋–จ์–ด์ง€๋ฉด์„œ Player์™€ ์ถฉ๋Œํ•˜๋ฉด ๋ง‰์€ ๊ฒƒ์œผ๋กœ ์ฒ˜๋ฆฌํ•˜์—ฌ ์ ์ˆ˜๋ฅผ ํš๋“, Player์™€ ์ถฉ๋Œํ•˜์ง€ ์•Š๊ณ  ๊ทธ๋Œ€๋กœ ์ด๋นจ๊ณผ ์ถฉ๋Œํ•˜๋ฉด ์ด๋นจ์ด ์ฉ๋Š”๋‹ค. (๐Ÿฆท  = ์ƒ๋ช…)
- Tap Recognizer๋ฅผ ์ด์šฉํ•˜์—ฌ Player๊ฐ€ Tapํ•œ x์ขŒํ‘œ๋กœ ์งฑ๊ตฌ๊ฐ€ ์ด๋™ํ•  ์ˆ˜ ์žˆ๋‹ค.
- ๋žœ๋ค ์Œ์‹์ด ๋žœ๋ค ์ž๋ฆฌ์— ๋–จ์–ด์ง„๋‹ค.
- Player๊ฐ€ ์Œ์‹์„ ๋ง‰์ง€ ๋ชปํ•˜๋ฉด (์ด๋นจ์— ๋‹ฟ์œผ๋ฉด) ์Œ์‹์€ ์‚ฌ๋ผ์ง„๋‹ค.
- ๋ชฉํ‘œ ์ ์ˆ˜์— ๋„๋‹ฌํ•˜๋ฉด Game Clear
- ์ด๋นจ 3๊ฐœ๊ฐ€ ์ฉ์œผ๋ฉด Game Over
- BGM
  - AVFoundation ์‚ฌ์šฉ 
  - Turn on/off ๊ฐ€๋Šฅ

์‹œ์ž‘ ํ™”๋ฉด

  • ๊ฒŒ์ž„ ์‹œ์ž‘
  • How To Play

Play ํ™”๋ฉด

  • Thread , GCD, ๋™๊ธฐ, ๋น„๋™๊ธฐ
    • ์ „์ฒด ํƒ€์ด๋จธ ๊ฐ€๋™
    • ์Œ์‹ ์ƒ์„ฑ, ๋ฐ˜๋ณต
    • ์Œ์‹์™€ ํ”Œ๋ ˆ์ด์–ด์˜ ์ถฉ๋Œ ํŒ๋‹จ: intersects ์‚ฌ์šฉ

๊ฒŒ์ž„ ์ข…๋ฃŒ

  • ์ตœ๊ณ ๊ธฐ๋ก ๋‹ฌ์„ฑ ์‹œ UserDefaults๋ฅผ ์ด์šฉํ•ด ๊ฐฑ์‹ 
  • Replay / EXIT ๊ฐ€๋Šฅ