Skip to content
This repository has been archived by the owner on Jun 3, 2023. It is now read-only.

Commit

Permalink
コメントアウト消し忘れてた
Browse files Browse the repository at this point in the history
  • Loading branch information
su8ru committed Oct 8, 2018
1 parent 74fc378 commit 5b0aaf0
Showing 1 changed file with 1 addition and 19 deletions.
20 changes: 1 addition & 19 deletions SpaceWars2/functions/Player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ void Player::Init(int32 _x, int32 _y, bool _isLeft){

void Player::Control(){
int32 tmpX = 0, tmpY = 0;
Rect tmpZoon;// = Rect(0, 0, 0, 0);
Rect tmpZoon;
tmpX = this->posX;
tmpY = this->posY;

Expand All @@ -29,22 +29,4 @@ void Player::Control(){
if(Input::KeyL.pressed && tmpZoon.contains(Circle(this->posX, this->posY + SPEED, 40))) this->posY += SPEED;
}
this->ship = Circle(this->posX, this->posY, 40);
/*if(this->isLeft){
if(Input::KeyD.pressed) this->posX += SPEED;
else if(Input::KeyA.pressed) this->posX -= SPEED;
if(Input::KeyW.pressed) this->posY -= SPEED;
else if(Input::KeyS.pressed) this->posY += SPEED;
tmpZoon = Rect(0, 0, Config::Width / 2, Config::Height);
}else{
if(Input::KeySemicolon.pressed) this->posX += SPEED;
else if(Input::KeyK.pressed) this->posX -= SPEED;
if(Input::KeyO.pressed) this->posY -= SPEED;
else if(Input::KeyL.pressed) this->posY += SPEED;
tmpZoon = Rect(Config::Width/2, 0, Config::Width / 2, Config::Height);
}
this->ship = Circle(this->posX, this->posY, 40);
if(tmpZoon.contains(this->ship) == false){
this->posX = tmpX;
this->posY = tmpY;
}*/
}

0 comments on commit 5b0aaf0

Please sign in to comment.