Skip to content

Implement collision control #4

Description

@louisayd
  • Create a table data structure in order to lookup whether or not given tiles are solid / passable
  • Flag tiles as solid when parsing the csv files
  • Keep track of players and AI's current tile location
  • Perform a solidity check when moving into a new tile (return True if passable, false otherwise)
  • Generate a CollisionEvent when the new tile is found to be impassable
  • Handle collision between enemies and players properly

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions