/** * Módulo del héroe: registra 'hero', 'tool.bubble', 'hero.fireball' y 'hero.water'. */ import type { Game } from '../../core/game'; import { Hero } from './hero'; import { Bubble, Fireball, IceBlock, WaterShot } from './projectiles'; export { Hero, TUNING } from './hero'; export function install(game: Game): void { game.register('hero', () => new Hero()); game.register('tool.bubble', (_g, _x, _y, props) => new Bubble(props)); game.register('hero.fireball', (_g, _x, _y, props) => new Fireball(props)); game.register('hero.water', (_g, _x, _y, props) => new WaterShot(props)); game.register('hero.iceblock', (_g, _x, _y, props) => new IceBlock(props)); }