austingray / canvas-game-engine

An HTML 5 canvas game engine.
2 stars 0 forks source link

Make Canvas Threejs integration more flexible #2

Open austingray opened 5 years ago

austingray commented 5 years ago

Right now the Three.js integration is explicitly integrated as a "Shadow" class and called inside the Canvas class. It needs to be converted to be more general use. We need to look at how Layers are called too. We should probably pass layer args directly to the Layer class instead of parsing them out inside the Canvas, it's creating code duplication the way it is setup currently. We should also have a CreateLayer2D and CreateLayer3D methods instead of using the same CreateLayer?

austingray commented 5 years ago

Made a significant refactor to how Three.js is integrated. Going to use it as a basis for refactoring and optimizing. Def needs major optimizing.

cc @minauteur

4