Skip to content

Commit

Permalink
b
Browse files Browse the repository at this point in the history
  • Loading branch information
janenntt committed Oct 16, 2023
1 parent 92edd2f commit da17278
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 4 deletions.
Binary file added Arial.ttf
Binary file not shown.
Binary file modified a
Binary file not shown.
Binary file added pauseButton.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resumeButton.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added startButton.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 4 additions & 4 deletions testBomber.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,23 +38,23 @@ if (event.type == sf::Event::Closed) {
window.close();
}
if (event.type == sf::Event::KeyPressed){
if(event.key.code == sf::Keyboard::W){
if(event.key.code == sf::Keyboard::W || event.key.code == sf::Keyboard::Up){
Move::up(player);
// std::cout<< player->getPoy()<< std::endl;
// std::cout<< player->getPox()<< std::endl;
// std::cout << std::endl;
}
if(event.key.code == sf::Keyboard::S){
if(event.key.code == sf::Keyboard::S || event.key.code == sf::Keyboard::Down){
Move::down(player);
// std::cout<< player->getPoy()<< std::endl;
// std::cout<< player->getPox()<< std::endl;
// std::cout << std::endl;
//std::cout<<player->getPoy() << std::endl;
}
if(event.key.code == sf::Keyboard::A){
if(event.key.code == sf::Keyboard::A || event.key.code == sf::Keyboard::Left){
Move::left(player);
}
if(event.key.code == sf::Keyboard::D){
if(event.key.code == sf::Keyboard::D || event.key.code == sf::Keyboard::Right){
Move::right(player);
// std::cout<< player->getPoy()<< std::endl;
// std::cout<< player->getPox()<< std::endl;
Expand Down

0 comments on commit da17278

Please sign in to comment.