acleverpun / letsgoonanadventure

Adventure game prototype built from our skeleton
0 stars 0 forks source link

Make geolocation class #20

Closed rosshadden closed 9 years ago

rosshadden commented 9 years ago

In a lot of places we're using objects like the following:

{
    map: 'mapName',
    x: 64,
    y: 32,
    tileX: 4,
    tileY: 2
}

This should be abstracted into a class, which would have sane defaults like setting properties that don't exist from those that do.