Skip to content

Commit

Permalink
Merge remote-tracking branch 'refs/remotes/origin/Merge/GE-Server' in…
Browse files Browse the repository at this point in the history
…to Merge/GE-Server
  • Loading branch information
PharaEthan committed Jan 13, 2024
2 parents 7aebbe2 + 2df443b commit 4aaa700
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Client/src/Layer/RTypeLayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ namespace RType {
std::string player = "Player_" + oss.str();

if ((tc.Tag.compare(player) == 0) && sc.Instance != nullptr) {
//sc.Instance->OnKeyPressed(key);
// sc.Instance->OnKeyPressed(key);

_Network->SendEvent(false, key, true);
}
Expand All @@ -223,7 +223,7 @@ namespace RType {
std::string player = "Player_" + oss.str();

if ((tc.Tag.compare(player) == 0) && sc.Instance != nullptr) {
//sc.Instance->OnKeyReleased(key);
// sc.Instance->OnKeyReleased(key);
_Network->SendEvent(false, key, false);
}

Expand Down
2 changes: 1 addition & 1 deletion R-Type/src/Scripts/BulletEnnemy/BulletEnnemy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ namespace RType {
});

auto &bulletRBC = GetComponent<RigidBody2DComponent>();
auto &bulletTC = GetComponent<TransformComponent>();
auto &bulletTC = GetComponent<TransformComponent>();

bulletRBC.Velocity.x = -_Speed;
bulletRBC.Type = RigidBody2DComponent::BodyType::Dynamic;
Expand Down
6 changes: 3 additions & 3 deletions R-Type/src/Scripts/Pata-pata/Pata-pata.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -143,13 +143,13 @@ namespace RType {
bullet.AddComponent<ScriptComponent>().Bind("BulletEnnemy");

SpriteRendererComponent &sprite = bullet.AddComponent<SpriteRendererComponent>();
ParentComponent &parent = bullet.AddComponent<ParentComponent>();
IDComponent &ID = GetComponent<IDComponent>();
ParentComponent &parent = bullet.AddComponent<ParentComponent>();
IDComponent &ID = GetComponent<IDComponent>();

parent.Parent = ID.ID;

auto &tcBullet = bullet.GetComponent<TransformComponent>();
auto &tc = GetComponent<TransformComponent>();
auto &tc = GetComponent<TransformComponent>();

tcBullet.Translation = tc.Translation;
tcBullet.Scale = {0.5f, 0.5f, 1.0f};
Expand Down

0 comments on commit 4aaa700

Please sign in to comment.