diff options
author | drumsetmonkey <abelleisle@roadrunner.com> | 2015-10-06 11:55:04 -0400 |
---|---|---|
committer | drumsetmonkey <abelleisle@roadrunner.com> | 2015-10-06 11:55:04 -0400 |
commit | 1bc1c3baf833a62720d4df67d7d37ebc74d1395d (patch) | |
tree | d19e966de0139dd5467d67da04613ed0f0d7c583 | |
parent | 66bdd492971199bac94511320be53ae6a834e7d8 (diff) |
Updated Textures
-rw-r--r-- | assets/NPC.png | bin | 1024 -> 535 bytes | |||
-rw-r--r-- | assets/house1.png | bin | 694 -> 1483 bytes | |||
-rw-r--r-- | assets/player.png | bin | 312 -> 566 bytes | |||
-rw-r--r-- | main.cpp | 4 | ||||
-rw-r--r-- | src/entities.cpp | 12 |
5 files changed, 8 insertions, 8 deletions
diff --git a/assets/NPC.png b/assets/NPC.png Binary files differindex 6f2fbca..2317ade 100644 --- a/assets/NPC.png +++ b/assets/NPC.png diff --git a/assets/house1.png b/assets/house1.png Binary files differindex 460c675..2f5034b 100644 --- a/assets/house1.png +++ b/assets/house1.png diff --git a/assets/player.png b/assets/player.png Binary files differindex 4dbe772..708954b 100644 --- a/assets/player.png +++ b/assets/player.png @@ -64,7 +64,7 @@ int main(int argc, char *argv[]){ if( music == NULL ){ printf( "Failed to load beat music! SDL_mixer Error: %s\n", Mix_GetError() ); } - Mix_PlayMusic( music, -1 ); + //Mix_PlayMusic( music, -1 ); @@ -188,7 +188,7 @@ void render(){ **************************/ 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(); diff --git a/src/entities.cpp b/src/entities.cpp index 42f93c8..0f555b2 100644 --- a/src/entities.cpp +++ b/src/entities.cpp @@ -103,8 +103,8 @@ void Entity::getName(){ } 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; @@ -120,8 +120,8 @@ void Player::interact(){ //the function that will cause the player to search for } 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; @@ -165,8 +165,8 @@ unsigned int Structures::spawn(_TYPE t, float x, float y){ //spawns a structure //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++){ |