Guest User

Untitled

a guest
Nov 18th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. bool loadMedia() {
  2.  
  3. // Init survivor
  4. survivor.texture = loadTexture("assets/survivor.png");
  5. survivor.x = 200;
  6. survivor.y = 100;
  7. survivor.w = 64;
  8. survivor.h = 64;
  9. survivor.scaleX = 1;
  10. survivor.scaleY = 1;
  11. survivor.frameX = 0;
  12. survivor.state = "state_idle";
  13.  
  14. if (survivor.texture == NULL) {
  15. printf("Failed to load survivor texture!\n");
  16. success = false;
  17. }
  18. }
Add Comment
Please, Sign In to add comment