Skip to content

Uneven coordinates for food spawn #33

@Northern-Web

Description

@Northern-Web

Describe the bug
Since the last two commits (70d49fe and f4e85c7), food spawning coordinates does not have the desired behaviour. The food is now being generated using uneven coordinates.

To Reproduce
Steps to reproduce the behavior:

  1. Start the game
  2. Refresh browser or game to see changes in food spawn.
  3. See error

Expected behavior
The food should spawn on even x and y coordinates using a factor of the maps block size.

Screenshots
Snake-uneven-food-coordinatess

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser: Chrome
  • Version: 79.0.3945.130 (64-Bit)

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions