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

18 lines
552 B
C++
Raw Normal View History

#pragma once
#include "tinyengine/libmath.hpp"
constexpr float FreightShipMaxSpeed = 100;
constexpr float FightShipMaxSpeed = 250;
constexpr int FreightLife = 10;
constexpr float LazerDamage = 2;
constexpr float LazerShooterSpeed = 500;
constexpr float LazerShooterMaxSpeed = 1000;
constexpr float LazerShooterCooldown = 0.3;
2022-02-09 22:33:06 +08:00
constexpr float MissileRotateDegree = 150;
constexpr Size GameWindowSize = {1024, 720};
constexpr Rect BulletRefreshArea{-100, -100, 1124, 820};
2022-02-09 22:33:06 +08:00
constexpr Rect SpaceshipRefreshArea{-1024 * 3, -720 * 3, 1024 * 7, 720 * 7};