Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- unsigned int width = size.x-584;
- unsigned int height = size.y-584;
- Image map_image;
- map_image.loadFromFile("images/chess.png");
- Texture map;
- map.loadFromImage(map_image);
- Sprite s_map;
- s_map.setTexture(map);
- s_map.setTextureRect(IntRect(0, 0, 584, 584));
- s_map.setPosition(width/2, height/2);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement