jpfed / Adrift

You are a space pilot lost in an endless maze of extraterrestrial caverns. Can you find your way home?
http://www.ludumdare.com/compo/author/jpfed/
2 stars 3 forks source link

object-ify level #10

Closed jpfed closed 14 years ago

jpfed commented 14 years ago

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.