How lan2two/vampire-survivors-like works
Vampire-Survivors-Like is a Godot top-down survival game: the player moves, rolls, and attacks while enemy waves spawn; defeating enemies yields loot and experience, which supports weapon pickup and upgrades, and the run ends in a game-over state. The graph combines documented gameplay with relationships visible in the source index and excerpts. Several GUI and player-control scripts were not sampled, so their detailed wiring is omitted rather than inferred.
Main entry points: InventoryManager.cs Inventory and weapons · Bullet.cs Bullet · EnemyDeath.cs Enemy death · GameScene.cs Game scene
Components 26
Combat and enemies
- Enemy spawning
scripts/enemy/EnemySpawner.cs - Enemy
scripts/enemy/Enemy.cs - Enemy death
scripts/enemy/EnemyDeath.cs - Attack handling
scripts/components/AttackComponent.cs - Bullet
scripts/bullet/Bullet.cs - Hurtbox
scripts/components/HurtboxComponent.cs - Health
scripts/components/HealthComponent.cs - Bullet configuration
resources/BulletData.cs - Attack data
resources/Attack.cs
Items and upgrades
- Inventory and weapons
scripts/player/InventoryManager.cs - Weapon controller
scripts/player/WeaponController.cs - Melee weapon
scripts/items/MeleeWeapon.cs - Weapon resources
resources/WeaponBase.cs - Item resources
resources/ItemData.cs - World pickups
scripts/items/WorldItem.cs - Experience orb
scripts/items/XpOrb.cs - Upgrade application
scripts/player/UpgradeManager.cs - Upgrade strategies
utils/strategy/Strategy.cs
Run and player
- Player controls
scripts/player/player.cs - Movement and roll
scripts/player/Move.cs - Game scene
scripts/GUI/GameScene.cs - Run statistics
utils/Stats.cs
Game interface
- Upgrade choices
scripts/GUI/UpgradeButtonContainer.cs - Experience display
scripts/GUI/XpBar.cs - Game over
scripts/GUI/GameOverNode.cs
Other components
- Player
Connections 31
- Player → Movement and roll: moves and rolls
- Player → Melee weapon: holds attack
- Enemy spawning → Enemy: spawns
scripts/enemy/EnemySpawner.cs - Bullet → Upgrade application: applies upgrades
scripts/bullet/Bullet.cs - Bullet → Hurtbox: hits
scripts/bullet/Bullet.cs - Bullet → Bullet configuration: reads configuration
scripts/bullet/Bullet.cs - Bullet → Attack data: creates attack
scripts/bullet/Bullet.cs - Attack handling → Hurtbox: damages
scripts/components/AttackComponent.cs - Hurtbox → Health: applies damage
scripts/components/HurtboxComponent.cs - Enemy death → Health: checks health
scripts/enemy/EnemyDeath.cs - Enemy death → Run statistics: updates kills
scripts/enemy/EnemyDeath.cs - Enemy death → Attack handling: uses attack
scripts/enemy/EnemyDeath.cs - Inventory and weapons → Weapon controller: equips weapon
scripts/player/InventoryManager.cs - Inventory and weapons → World pickups: spawns drops
scripts/player/InventoryManager.cs - Inventory and weapons → Weapon resources: stores weapon
scripts/player/InventoryManager.cs - Inventory and weapons → Item resources: stores items
scripts/player/InventoryManager.cs - World pickups → Item resources: holds item data
scripts/items/WorldItem.cs - Melee weapon → Weapon resources: uses weapon data
scripts/items/MeleeWeapon.cs - Melee weapon → Attack handling: uses attack handling
scripts/items/MeleeWeapon.cs - Upgrade application → Inventory and weapons: reads upgrades
scripts/player/UpgradeManager.cs - Upgrade application → Upgrade strategies: applies strategies
scripts/player/UpgradeManager.cs - Upgrade choices → Inventory and weapons: uses inventory
scripts/GUI/UpgradeButtonContainer.cs - Upgrade choices → Upgrade strategies: presents upgrades
scripts/GUI/UpgradeButtonContainer.cs - Upgrade choices → Experience display: uses display
scripts/GUI/UpgradeButtonContainer.cs - Experience orb → Game scene: appears in run
scripts/GUI/GameScene.cs - Game scene → Enemy: uses enemies
scripts/GUI/GameScene.cs - Game scene → Run statistics: uses run statistics
scripts/GUI/GameScene.cs - Game scene → Game over: references game over
scripts/GUI/GameScene.cs - Enemy death → Experience orb: drops experience
- Player controls → Inventory and weapons: collects and drops items
- Weapon controller → Bullet: fires automatically