Remove direct references to level members like tiles. These accesses should be done with functions.
The level, like any other object, should be able to draw itself. Right now, camera renders the level, but it doesn't have to; camera:xy() is enough for other objects to draw themselves.
Remove direct references to level members like tiles. These accesses should be done with functions.
The level, like any other object, should be able to draw itself. Right now, camera renders the level, but it doesn't have to; camera:xy() is enough for other objects to draw themselves.