From: drumsetmonkey Date: Sun, 4 Oct 2015 23:39:08 +0000 (-0400) Subject: Added texture support and basic textures X-Git-Url: https://code.bitgloo.com/?a=commitdiff_plain;h=e58c8920f5332678e4446a8c33bc74a716024010;p=clyne%2Fgamedev.git Added texture support and basic textures --- e58c8920f5332678e4446a8c33bc74a716024010 diff --cc src/entities.cpp index 429e3e5,d5328f0..64c8cb7 --- a/src/entities.cpp +++ b/src/entities.cpp @@@ -125,7 -89,7 +125,8 @@@ Player::Player(){ //sets all of the pla alive = true; ground = false; near = true; + texture = loadTexture("assets/player.png"); + inv = new Inventory(PLAYER_INV_SIZE); } void Player::interact(){ //the function that will cause the player to search for things to interact with @@@ -141,7 -105,7 +142,8 @@@ NPC::NPC(){ //sets all of the NPC speci alive = true; canMove = true; near = false; + texture = loadTexture("assets/NPC.png"); + inv = new Inventory(NPC_INV_SIZE); } void NPC::addAIFunc(int (*func)(NPC *)){