0.0.6 • Published 4 years ago
@personalidol/framework v0.0.6
framework
Base interfaces and services other paackages rely on.
Services
EventBus- global event bus that broadcasts events like mouse wheel use etc.MainLoop- main animation loop that allows adding function to be called during the animation window.MouseObserver- keeps the state of currently pressed mouse buttons and pointer position.MouseWheelObserver- broadcasts event when mouse wheel is used as it's stateless.PreventDefaultInput- simple service that disables any interaction with a given DOM element.ServiceManager- service bag that starts and stops all added services.TouchObserver- keeps the state of currently active touch points, pressure etc.
Interfaces
Scene.interface- base properties that should be implemented in the app scene (like main menu, game itself etc).