Anders-E / Ouija

HTML5 Ouija board
GNU General Public License v3.0
3 stars 1 forks source link

Break down main.ts into smaller files #42

Closed Anders-E closed 5 years ago

Anders-E commented 5 years ago

main.ts (no class)

Sets up all classes and connects the pieces.

OuijaScene

Contains everything regarding non-UI graphics.

Network

Contains everything regarding network (communication w/ server)

UI

Contains everything regarding the DOM UI.

EventSystem

Basically the current class but extended. Includes all references to assets used for events.

Anders-E commented 5 years ago

OuijaScene and Network classes created in 21235204c6864d2e05f651237e0ae93ba82a8c98. Still too tightly tied to main.ts.

Anders-E commented 5 years ago

https://codeburst.io/event-emitters-and-listeners-in-javascript-9cf0c639fd63

Anders-E commented 5 years ago

The classes should probably be namespaces or simply modules instead of classes.

Anders-E commented 5 years ago

Closed in aa3e110fefafe962ba0e0c73d54165377588e5c2