iiitl / snake-game-js

0 stars 44 forks source link

Implemented Difficulty Levels (Fixed #7) #64

Closed ArshiaAdhya closed 4 months ago

ArshiaAdhya commented 4 months ago

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 image image

Game-over on hitting any obstacle: Screenshot 2024-03-17 113923