How sparrowworks/vanguard works
Vanguard is a Godot library for building and customizing 2D weapons. A user starts from a blueprint scene, inherits it into a game-specific scene, and can build ranged weapons, projectiles, fields, melee weapons, hitboxes, and hurtboxes. Weapon kits provide modification capabilities, while the core Weapon class is the documented base for custom weapon types. The README describes these capabilities but no source excerpts were provided, so internal runtime calls and interactions between blueprints are not asserted.
Main entry points: weapon.gd Weapon base · ranged.gd Ranged weapon · kits Weapon kits · projectile.gd Projectile
Components 11
Weapon foundations
- Weapon base
addons/vanguard/blueprints/weapon/weapon.gd - Ranged weapon
addons/vanguard/blueprints/ranged/ranged.gd
Combat blueprints
- Projectile
addons/vanguard/blueprints/projectile/projectile.gd - Effect field
addons/vanguard/blueprints/field/field.gd - Melee weapon
addons/vanguard/blueprints/melee/melee.tscn - Hitbox
addons/vanguard/blueprints/hitbox/hitbox.gd - Hurtbox
addons/vanguard/blueprints/hurtbox/hurtbox.gd
Weapon modifications
- Weapon kits
addons/vanguard/kits
Example weapons
- Pistol example
src/weapons/pistol/pistol.gd - Sword example
src/weapons/sword/sword.gd
Other components
- Godot user
Connections 9
- Godot user → Weapon base: inherits scene
README.md - Godot user → Ranged weapon: inherits scene
README.md - Godot user → Projectile: inherits scene
README.md - Godot user → Effect field: inherits scene
README.md - Godot user → Melee weapon: inherits scene
README.md - Godot user → Hitbox: inherits scene
README.md - Godot user → Hurtbox: inherits scene
README.md - Weapon base → Ranged weapon: base for
README.md - Weapon kits → Weapon base: modifies
README.md