Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Obj {
- public:
- string name;
- string path; //путь к текстуре
- Sprite sprite;
- Texture texture;
- int x,y,z;
- Obj(string Name, int X, int Y, int Z, string Path){
- name = Name;
- x = X;y = Y;z = Z;
- texture.loadFromFile(Path);
- sprite.setTexture(texture);
- sprite.move(Vector2f(64*x, 64*y));
- }
- void create()
- {
- texture.loadFromFile(path);
- sprite.setTexture(texture);
- sprite.move(Vector2f(64*x, 64*y));
- }
- };
Add Comment
Please, Sign In to add comment