Skip to content

Map/Maze  #3

@archerbird

Description

@archerbird

So this is in a very messy state right now. A map is simply a 2D Array of Tiles. The idea here was to mimic the Excel.Range.Value array, where you can access tiles from the map like Map(row,column). I have a module called MapManager acting as a global static class that the controller and models can all call on. I'm thinking this should maybe just become a class though.

For now, I've encoded the maze as a series of characters in a .pmap file that can be easily read and converted into a 2D array of Tiles. One icky issue with my encoding is that it is technically not quite to-scale with the original pacman game. I have put a spacer tile between each pellet on the map, which effectively means that my tiles are equal to ~1.6 original pacman tiles. The problem I have with this is that the map string representation can't really be used for every view implementation. Ideally, we would have a correctly scaled map encoding, and the excel view, if we want to keep the way it looks now, would have to have some sort of scaling logic.

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