New enemies
rework existing enemies or create new ones
Reworking enemy stats
struct EnemyStats {
int health;
int damage;
Animation::AnimationID sprite;
float speed;
Armament::Type armament;
};
// inside Game class
std::vector<EnemyStats> _enemies = {
{10, 5, Animation::AnimationID::Orb, 8.0, Armament::Type::Laser},
{20, 25, Animation::AnimationID::Orb, 10.0, Armament::Type::Laser},
{30, 15, Animation::AnimationID::Orb, 3.0, Armament::Type::Laser},
{50, 50, Animation::AnimationID::Orb, 1.0, Armament::Type::Laser},
// add new instance here
};Create new Weapon
1. Create new Armament::Type enum in Components.hpp
Armament::Type enum in Components.hpp 2. Add enum to switch in src/server/ArmamentSystems.cpp
3. Call your attack function in the Factory::Weapon namespace
Factory::Weapon namespace 4. Define new attack function in the Factory::Weapon namespace
Factory::Weapon namespacebullets consit of:
Custom animation
Last updated