Driftwood2D / Driftwood

Driftwood 2D Tiling Game Engine and Development Suite
http://tileengine.org/
MIT License
24 stars 1 forks source link

self.driftwood unneeded in classes #191

Closed seisatsu closed 7 years ago

seisatsu commented 7 years ago

"Driftwood" is already set as a builtin pointing to the engine instance at startup. Other class instances do not need to receive a reference to it as self.driftwood, as they can simply use the builtin.

seisatsu commented 7 years ago

Nevermind actually. Code-wise, it is probably cleaner to trace back to the class through internal variables whenever we can.