This is the Chung-ang univ OSS class Team Project with making a game of Snake.
You can play the game from this link :
https://myeongbaek.github.io/SnakeGame_Team07/
Or if you are using the VSCODE, just simply play with 'Live Server' Extension
Start the game and move your snake with arrow key. Your Snake will be longer when you eat up the apple. Get your best score and rank your record!!
Source code :
dir : mode
App.js
MainScreen.js
index.html
index.js
style.css
mode :
dir : solver
Auto.js
Dual.js
Single.js
utils.js
solver :
search.js
solver.js
Explanation :
Our game is web console game running on index.html. From the index.html, the game style is implemented by style.css and the game module is implemented by index.js.
Inside of the index.js, App object is generated. And App.js is generating the MainScreen object.
So index.html, index.js, style.css, and App.js are the skeleton of our game.
And the others of the source code, from the MainScreen.js mode Single.j Dual.js Auto.js are functioning during the game. MainScreen.js is defining MainScreen object and it show us mainscreen. Start, Dual Mode, Auto Play, Load, Rank, and Exit are implemented. Also their function is defined. Single.js is defining Single object which is containing game state, snake movement, key input, puase action, gameover, and save. The state is stored at localstorage to show us score, save, and rank. Moreover utils.js is supporting Single.js by defining functions to calculate. Similary Dual.js and Auto.js are defining each mode, state, game play, movement,,,
Team Number : 07
Team Member : KimHyeongWoo, Margarita, ChoiMyeongBaek
Language : JavaScript