Advertisement
L3peha

Untitled

Dec 13th, 2019
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. unsigned int width = size.x-584;
  2. unsigned int height = size.y-584;
  3. Image map_image;
  4. map_image.loadFromFile("images/chess.png");
  5. Texture map;
  6. map.loadFromImage(map_image);
  7. Sprite s_map;
  8. s_map.setTexture(map);
  9. s_map.setTextureRect(IntRect(0, 0, 584, 584));
  10. s_map.setPosition(width/2, height/2);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement