-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wzjwzjwzjwzjwzj #503
base: main
Are you sure you want to change the base?
wzjwzjwzjwzjwzj #503
Conversation
class Tank : public Unit { | ||
class Strangetank : public Unit { | ||
public: | ||
Tank(GameCore *game_core, uint32_t id, uint32_t player_id); | ||
Strangetank(GameCore *game_core, uint32_t id, uint32_t player_id); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
你是不是搞反了?这个文件不能动
class Tank : public Unit { | ||
public: | ||
Tank(GameCore *game_core, uint32_t id, uint32_t player_id); | ||
void Render() override; | ||
void Update() override; | ||
[[nodiscard]] bool IsHit(glm::vec2 position) const override; | ||
|
||
protected: | ||
void TankMove(float move_speed, float rotate_angular_speed); | ||
void TurretRotate(); | ||
void Fire(); | ||
[[nodiscard]] const char *UnitName() const override; | ||
[[nodiscard]] const char *Author() const override; | ||
|
||
float turret_rotation_{0.0f}; | ||
uint32_t fire_count_down_{0}; | ||
uint32_t mine_count_down_{0}; | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
你应该改名字的是这部分吧
#include "strange_tank.h" | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
路径写全
一定概率暴击+吸血