Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bool loadMedia() {
- // Init survivor
- survivor.texture = loadTexture("assets/survivor.png");
- survivor.x = 200;
- survivor.y = 100;
- survivor.w = 64;
- survivor.h = 64;
- survivor.scaleX = 1;
- survivor.scaleY = 1;
- survivor.frameX = 0;
- survivor.state = "state_idle";
- if (survivor.texture == NULL) {
- printf("Failed to load survivor texture!\n");
- success = false;
- }
- }
Add Comment
Please, Sign In to add comment