Skip to content
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

Open
wants to merge 15 commits into
base: main
Choose a base branch
from

Conversation

wzjwzjwzjwzjwzj
Copy link

一定概率暴击+吸血

Comment on lines 5 to 7
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);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

你是不是搞反了?这个文件不能动

Comment on lines 5 to 22
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};
};
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

你应该改名字的是这部分吧

Comment on lines 1 to 2
#include "strange_tank.h"

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

路径写全

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants