Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improving Snake Game: Turn Logic, UX, and Bug Fixes #873

Closed
zakhaev26 opened this issue Jul 27, 2023 · 2 comments
Closed

Improving Snake Game: Turn Logic, UX, and Bug Fixes #873

zakhaev26 opened this issue Jul 27, 2023 · 2 comments
Assignees
Labels
bug Something isn't working gssoc23 GirlScript summer of code level1 easy

Comments

@zakhaev26
Copy link

Description

There are a couple of issues with the Snake game present here

  1. Currently, in the snake game, the snake is able to make an immediate turn from left to right, which is not allowed in the game's logic. This behavior is inconsistent with standard snake game rules and gameplay. We need to implement a restriction that prevents the snake from making an instantaneous 180-degree turn, ensuring a more realistic and challenging gaming experience.

  2. While playing the snake game, using the arrow keys to control the snake causes the page to scroll, which negatively impacts the user experience (UX). The scrolling behavior is unintended and interferes with smooth gameplay. To enhance UX, we must find a solution to disable the page scrolling while playing the game, allowing players to focus solely on the game without distractions.

  3. During gameplay, there are instances where the game incorrectly displays a "game over" message even when the snake doesn't collide with any obstacles. This erroneous behavior needs to be resolved to ensure accurate detection of game-ending conditions. Additionally, it would be beneficial to provide a clear and consistent losing message, such as "You got hit by a wall" or "You hit yourself," to help players understand the cause of their defeat.

Screenshots

No response

Additional information

No response

@panwar8279 panwar8279 added bug Something isn't working gssoc23 GirlScript summer of code level1 easy labels Jul 28, 2023
@panwar8279
Copy link
Collaborator

Hi @mogulcoder26 , I have assigned this issue to you. Kindly complete your work within a week. Good luck!

@github-actions
Copy link

👋 @mogulcoder26 This issue is closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working gssoc23 GirlScript summer of code level1 easy
Projects
None yet
Development

No branches or pull requests

2 participants