Introduced 3 different difficulty levels in the game, easy being the regular level with no obstacles, moderate slightly more challenging with one obstacle right in the center, and Difficult level comprising of 4 symmetrically placed obstacles, hitting any of which will cause the game to end.
This PR includes:
Option to switch between the modes using interactive buttons
Gameplay changing accordingly
It has also been taken care that the food does not appear on the obstacle, thereby enhancing the overall gameplay of the harder modes.
Below is a series of screen captures that gives an overview of what this feature looks like:
FIXES #7
Introduced 3 different difficulty levels in the game, easy being the regular level with no obstacles, moderate slightly more challenging with one obstacle right in the center, and Difficult level comprising of 4 symmetrically placed obstacles, hitting any of which will cause the game to end.
This PR includes:
It has also been taken care that the food does not appear on the obstacle, thereby enhancing the overall gameplay of the harder modes.
Below is a series of screen captures that gives an overview of what this feature looks like:
![image](https://github.com/iiitl/snake-game-js/assets/143324730/64e6a115-23bf-4e7f-8224-a10c823588a2)
Game-over on hitting any obstacle:![Screenshot 2024-03-17 113923](https://github.com/iiitl/snake-game-js/assets/143324730/0efb7832-be0e-4e69-ac79-ba38dfa09112)