This repository has been archived on 2022-10-27. You can view files and clone it, but cannot push or open issues or pull requests.
space-war/include/game/constants.hpp

45 lines
1.2 KiB
C++
Raw Normal View History

#pragma once
#include "tinyengine/libmath.hpp"
2022-02-15 22:50:31 +08:00
constexpr float FightShipMaxSpeed = 400;
constexpr int FightShipLife = 10;
constexpr float FightShipRotationDegree = 6;
constexpr float FightShipAccelration = 200;
constexpr float FreightShipMaxSpeed = 200;
constexpr int FreightShipLife = 20;
2022-02-15 22:50:31 +08:00
constexpr float FreightShipAccelerate = 100;
constexpr float FreightShipLazerDelay = 0.3;
2022-02-15 22:50:31 +08:00
constexpr float LazerDamage = 3.4;
constexpr float LazerShooterSpeed = 800;
constexpr float LazerShooterMaxSpeed = 2000;
constexpr float LazerShooterCooldown = 0.15;
2022-02-09 22:33:06 +08:00
constexpr float MissileRotateDegree = 150;
2022-02-15 22:50:31 +08:00
constexpr float CoreMaxHp = 100;
constexpr int CoreEnergyProductDuration = 2;
constexpr int CoreEnergyProductAmount = 1;
constexpr Size GameWindowSize = {1024, 720};
2022-02-17 16:54:05 +08:00
constexpr float BulletDieTime = 10;
2022-02-15 22:50:31 +08:00
constexpr int BlockSize = 16;
constexpr int PlayerGroup = 0;
constexpr int Enemy1Group = 1;
constexpr int Enemy2Group = 2;
constexpr int Enemy3Group = 3;
constexpr float EntityRenderSize = 20;
constexpr float EntityCollisionSize = 16;
constexpr Color GroupSpecColor[4] = {
Color{0.8, 0, 0, 1},
Color{0, 0.8, 0, 1},
Color{0, 0, 0.8, 1},
Color{0.8, 0.8, 0, 1}
};