Advertisement
Guest User

map.h

a guest
Jul 23rd, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.47 KB | None | 0 0
  1. #pragma once
  2. #include <SFML\Graphics.hpp>
  3. #include "Player.h"
  4. class Map
  5. {
  6. public:
  7.     sf::Sprite Platform_sp;
  8.     int map[7][12] = { {0,0,0,0,0,0,0,0,0,0,0,0},
  9.                        {0,0,0,0,0,0,0,0,0,0,0,0},
  10.                        {0,0,0,0,0,0,0,1,0,0,0,0},
  11.                        {0,0,0,0,0,0,1,0,0,0,0,0},
  12.                        {0,0,0,0,0,1,0,0,0,0,0,0},
  13.                        {0,0,0,1,1,0,0,0,0,0,0,0},
  14.                        {1,1,1,0,0,0,0,0,1,1,1,1} };
  15.     void wyswietl_wszystko(sf::RenderWindow &window);
  16.     Map();
  17. private:
  18.     sf::Texture Platform_txt;
  19. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement