1.5.2 • Published 3 months ago
@sorskoot/wonderland-components v1.5.2
Sorskoot's Wonderland Components Collection
This repository contains a collection of components, utilities, and shaders that Sorskoot personally uses in his Wonderland Engine projects. This collection aims to help other developers quickly get started with their own projects by providing reusable code.
Components are added to NPM to make it a bit easier to use the library.
Components
Core Components
- SelfDestruct - Destroys an object after a specified time. Perfect for temporary effects or objects.
- DieAfterTime - Similar to SelfDestruct but starts inactive by default, ideal for prefabs that need to be manually triggered.
- FadeToBlack - Creates screen transitions by fading to and from black (or any color). Useful for level transitions or scene changes.
- Flipbook - Animates textures from a sprite sheet. Great for animated effects, UI elements, or simple character animations.
- SnapRotate - Provides snap-based rotation for VR experiences. Helps reduce motion sickness by allowing users to rotate in fixed increments.
- SnowParticles - Creates a snow particle effect. Perfect for winter scenes or atmospheric effects.
- StartStopAnimationOnActivate - Controls animations based on object activation state. Useful for interactive elements.
- Tags - A lightweight tagging system for objects. Helps with object identification and filtering.
- TeleportController - Handles teleportation mechanics for VR experiences. Essential for comfortable VR locomotion.
Simple Animations
- SimpleAnimationBase - Base class for simple animation components. Provides common functionality for animation components.
- TweenPositionAnimation - Animates an object's position between two points. Great for moving platforms, doors, or UI elements.
- TweenScaleAnimation - Animates an object's scale. Perfect for growing/shrinking effects or attention-grabbing UI.
Input
- InputManager - Manages input from various sources. Provides a unified input system for your application.
- KeyboardController - Handles keyboard input for desktop experiences. Useful for testing or non-VR applications.
Prefab System
- PrefabBase - Base class for creating prefab components. Provides common functionality for prefab management.
Combat/Interaction
- ShootBase - Base component for shooting mechanics. Can be extended for various weapon types.
Utilities
The library also includes various utility classes for:
- Coroutine management
- Mathematics helpers (Lerp, Noise, RNG)
- Object caching
- Signal systems
- Haptic feedback
- And much more!
Deprecated
Some components are marked as deprecated and will be removed in future versions:
- Prefab - Use PrefabBase instead
- PrefabStorage - Use the new prefab system instead
For detailed information on how to use each component, please refer to the code documentation or the examples folder.