if( music == NULL ){
printf( "Failed to load beat music! SDL_mixer Error: %s\n", Mix_GetError() );
}
- Mix_PlayMusic( music, -1 );
+ //Mix_PlayMusic( music, -1 );
**************************/
currentWorld->draw(&player->loc); // Draw the world around the player
- glColor3ub(0,0,0);
+ glColor3ub(255,255,255);
player->near=true;
player->draw(); // Draw the player
player->inv->draw();
}
Player::Player(){ //sets all of the player specific traits on object creation
- width = HLINE * 8;
- height = HLINE * 12;
+ width = HLINE * 10;
+ height = HLINE * 16;
speed = 1;
type = PLAYERT; //set type to player
subtype = 5;
}
NPC::NPC(){ //sets all of the NPC specific traits on object creation
- width = HLINE * 8;
- height = HLINE * 12;
+ width = HLINE * 10;
+ height = HLINE * 16;
speed = 1;
type = NPCT; //sets type to npc
subtype = 0;
//spawns between 1 and 5 villagers around the village
if(type == STRUCTURET){
loc.y=100;
- width = 30 * HLINE;
- height = 30 * HLINE;
+ width = 50 * HLINE;
+ height = 40 * HLINE;
int tempN = (getRand() % 5 + 2); //amount of villagers that will spawn
for(int i=0;i<tempN;i++){