2D fight game with JavaScript, HTML, Canvas
https://bugpigg-2d-fight-game.netlify.app/
- Project Setup
- html, js ํ์ผ ์์ฑ
- html canvas API ์ด๊ธฐ ์ค์
- Create Player and Enemy
- Sprite ํด๋์ค ์์ฑ
- Player, Enmey ์ธ์คํด์ค ์์ฑ
- ๊ฐ Sprite ์ธ์คํด์ค์ ์ด๊ธฐ ์์น ์ค์ ๋ก์ง ์ถ๊ฐ
- Move Characters with Event Listeners
- Player, Enemy์ ์ด๋ ํค ๋งคํ
- ์ ๊ตํ ์ด๋์ ์ํ ๋ฆฌํฉํ ๋ง
- Attacks
- Player, Enemy์ attackBox ๊ตฌํ
- Player, Enemy์ ๊ณต๊ฒฉ ๋ฐฉํฅ ์ค์
- Health Bar Interface
- HTML ์ด์ฉํ์ฌ Health Bar ๊ตฌํ
- Game Timers and Game Over
- Game Timer ๊ธฐ๋ฅ ๊ตฌํ
- Game Over ๊ธฐ๋ฅ ๊ตฌํ
- Background Sprite
- ๋ฐฐ๊ฒฝ์ game asset ์ฌ์ดํธ ์ฐธ์กฐ
https://itch.io/ - ํด๋์ค, ์ ํธ ์๋ฐ ์คํฌ๋ฆฝํธ ๋ถ๋ฆฌ
- ๋ฐฐ๊ฒฝ ์ด๋ฏธ์ง ์ ์ฉ
- ๋ฐฐ๊ฒฝ์ game asset ์ฌ์ดํธ ์ฐธ์กฐ
- Shop Sprite with Animation
- ๋ฐฐ๊ฒฝ์ Shop Sprite ์ถ๊ฐ
- ์ ๋๋ฉ์ด์ ํจ๊ณผ์ ์ฉ์ ์ํ ์ฝ๋ ์ถ๊ฐ
- Player Sprite
- Idle, Run, Jump, Attakc์ ๋ํ Player image ์ ์ฉ
- Enemy Sprite
- Idle, Run, Jump, Attakc์ ๋ํ Enemy image ์ ์ฉ
- React to Sprite Attacks
- Attack Box๋ฅผ ํตํ ๊ณต๊ฒฉ ์ ๋ฌด ํ๋ณ ์ ์ฉ
- Receive Animations
- ๊ฐ Player๊ฐ ๊ณต๊ฒฉ ๋ฐ์์์ ์ ๋๋ฉ์ด์ ์ถ๊ฐ
- Death Animations
- ๊ฐ Player ์ฌ๋ง์ ์ ๋๋ฉ์ด์ ์ถ๊ฐ
- Interface Design and Animation
- ์ฒด๋ ฅ๋ฐ ๋์์ธ ์์
- ํ์ด๋จธ ๋์์ธ ์์
- gsap cdn์ ํ์ฉํ ์ฒด๋ ฅ๋ฐ ์ ๋๋ฉ์ด์ ์์
Sprite
- 2D ๊ฒ์ ๋ด์์ ์์ง์ด๋ ๊ฐ์ฒด๋ฅผ ์ผ์ปซ๋ ๋ง
- ์ถ์ฒ
https://namu.wiki/w/%EC%8A%A4%ED%94%84%EB%9D%BC%EC%9D%B4%ED%8A%B8(%EC%BB%B4%ED%93%A8%ED%84%B0%20%EA%B7%B8%EB%9E%98%ED%94%BD)
Chris Courses's
JavaScript Fighting Game Tutorial with HTML Canvas
https://www.youtube.com/watch?v=vyqbNFMDRGQ&list=LL&index=8&t=974s- Game Assets
- Oak Woods Assets: https://brullov.itch.io/oak-woods
- Fighter Asset #1: https://luizmelo.itch.io/martial-hero
- Fighter Asset #2: https://luizmelo.itch.io/martial-hero-2