wyrt_projectiles
v1.0.0Gameplay
Projectile physics system with velocity-based movement, collision detection, and damage calculation
Features
- Velocity-based projectile movement
- Collision detection with players and obstacles
- Configurable projectile types (bullets, arrows, spells)
- Damage calculation on impact
- Projectile lifetime and range limits
- Game-scoped manager instances
Quick Start
const projectilesModule = context.getModule('wyrt_projectiles');
const projManager = projectilesModule.createProjectileManager('my_game');
// Fire a projectile
projManager.spawn({
type: 'arrow',
x: 100, y: 200,
velocityX: 10, velocityY: 0,
ownerId: playerId,
damage: 25
});
// Update projectiles each tick
projManager.update(deltaTime);Exports
ProjectileManagerManages projectile lifecycle and physics