Zaimplementowane menu i wybieranie skinów statku

This commit is contained in:
2024-12-14 20:21:46 +01:00
parent 34424da9d6
commit 9432cd94fe
8 changed files with 182 additions and 6 deletions

View File

@@ -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) {