Skip to content

Commit

Permalink
Większość działa (poza widoczną nazwą gracza przy podawaniu)
Browse files Browse the repository at this point in the history
  • Loading branch information
xXxF0RR35TC4MPxXx committed Jan 22, 2022
1 parent 3bfebd6 commit 452c0da
Show file tree
Hide file tree
Showing 11 changed files with 618 additions and 583 deletions.
5 changes: 5 additions & 0 deletions 2201
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
1 f Komputer 7 4 3 0
0 0 1 0 2 2 0 0 0 0 1 0 0 . 0 0 0 0 0 0 0 0 1 0 3 3 3 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 2 2 0 0 0 0 0 0 2 0 0 0 . 0 0 0 0 0 2 0 0 4 0 3 0 0 0 0 0 0 0 4 0 3 0 0 0 0 0 0 0 4 . 3 0 0 0 0 0 0 0 4 0 0 . 0 0 0
x x x 0 0 0 0 0 0 0 0 0 . 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 . 0 0 0 0 0 0 0 . 0 0 0 . 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
x x x 0 0 0 0 2 2 0 0 0 . 0 0 4 0 0 0 0 0 0 0 0 0 4 0 0 0 0 0 0 . 1 0 4 0 0 0 0 . 0 0 0 . 4 0 0 0 0 0 0 0 0 0 0 0 2 2 0 0 0 0 2 2 0 0 0 0 0 0 0 0 0 0 0 3 0 1 0 0 1 0 0 1 0 3 0 0 0 0 0 0 0 0 0 3 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 . 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 . 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 . 0 0 0 0 0 0 0 0 0 0 0 . 0 0 0
Binary file removed Texture/komputer_ustawia.png
Binary file not shown.
Binary file removed Texture/ruch_komputera.png
Binary file not shown.
18 changes: 3 additions & 15 deletions game_screen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,9 @@ game_screen::~game_screen() {
}


void game_screen::draw(RenderWindow& window, Plansza plansza1, Plansza plansza2, int typ) {
Texture sprite_pustego_pola_texture;
sprite_pustego_pola_texture.loadFromFile("Texture/empty_tile.png");
Texture sprite_1_tile;
sprite_1_tile.loadFromFile("Texture/1_tile.png");
Texture sprite_2_tile;
sprite_2_tile.loadFromFile("Texture/2_tile.png");
Texture sprite_3_tile;
sprite_3_tile.loadFromFile("Texture/3_tile.png");
Texture sprite_4_tile;
sprite_4_tile.loadFromFile("Texture/4_tile.png");
Texture sprite_hit_tile;
sprite_hit_tile.loadFromFile("Texture/hit_tile.png");
Texture sprite_miss_tile;
sprite_miss_tile.loadFromFile("Texture/missed_tile.png");
void game_screen::draw(RenderWindow& window, Plansza plansza1, Plansza plansza2, int typ, Texture sprite_pustego_pola_texture, Texture sprite_1_tile,
Texture sprite_2_tile, Texture sprite_3_tile, Texture sprite_4_tile, Texture sprite_hit_tile, Texture sprite_miss_tile) {

for (int i = 0; i < 10; i++) {
for (int j = 0; j < 10; j++) {
int p2 = floor(PoleSelected / 10);
Expand Down
2 changes: 1 addition & 1 deletion game_screen.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class game_screen {
public:
game_screen();
game_screen(float width, float height, RenderWindow* Window);
void draw(RenderWindow& window, Plansza plansza1, Plansza plansza2, int typ);
void draw(RenderWindow& window, Plansza plansza1, Plansza plansza2, int typ, Texture, Texture, Texture, Texture, Texture, Texture, Texture);
void MoveUp(Plansza plansza, int typ);
void MoveDown(Plansza plansza, int typ);
void MoveLeft(Plansza plansza, int typ);
Expand Down
Loading

0 comments on commit 452c0da

Please sign in to comment.