Zaimplementowane menu i wybieranie skinów statku
This commit is contained in:
@@ -7,8 +7,13 @@
|
||||
#include <SFML/Graphics/RenderWindow.hpp>
|
||||
#include <SFML/Graphics/Text.hpp>
|
||||
|
||||
#include "../headers/Plansza.h"
|
||||
|
||||
Player::Player(int x, int y, const sf::Texture& texture) : Actor(x, y, texture) {
|
||||
hp = 3;
|
||||
if(Plansza::selectedShip != none) {
|
||||
actorSprite.setScale(0.20f, 0.20f);
|
||||
}
|
||||
}
|
||||
|
||||
Player* Player::getInstance(int x, int y, const sf::Texture& texture) {
|
||||
|
||||
Reference in New Issue
Block a user