Allen-ISD-Computer-Science / REPO_IceTilePhysics_2024

3 stars 1 forks source link

Coordinate Converter for Slide Lookup (game -> level.lvl) #59

Closed Delikatessen closed 8 months ago

Delikatessen commented 8 months ago

traversabletiles cords need to be able to call for slide definitions from the lvl folder

Delikatessen commented 8 months ago

this works, to access a geometric tile from lvl file, levelCubes[coordinateObject.face][coordinateObject.x][coordinateObject.y].

level cubes is a 3D array storing every tile for coordinate based access (thanks for the help austin)

coordinateObject is any variable assigned to a json object from the lvl folder, I assume it can work from parent objects too (data.player_point.face, etc)