Skip to content

Instantly share code, notes, and snippets.

@Mikepicker
Created November 18, 2017 13:58
Show Gist options
  • Save Mikepicker/d3559767dc4e1ac5f18dbf7327967064 to your computer and use it in GitHub Desktop.
Save Mikepicker/d3559767dc4e1ac5f18dbf7327967064 to your computer and use it in GitHub Desktop.
#include <stdlib.h>
#include <time.h>
...
void loadMedia() {
// Seed random number generator
srand(time(NULL));
// Init zombie
zombieTexture = loadTexture("assets/zombie.png");
spawnZombie();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment