]> code.bitgloo.com Git - clyne/gamedev.git/commitdiff
Added texture support and basic textures
authordrumsetmonkey <abelleisle@roadrunner.com>
Sun, 4 Oct 2015 23:39:08 +0000 (19:39 -0400)
committerdrumsetmonkey <abelleisle@roadrunner.com>
Sun, 4 Oct 2015 23:39:08 +0000 (19:39 -0400)
1  2 
include/entities.h
src/entities.cpp
src/main.cpp

Simple merge
index 429e3e58b5b8ea864d34423cc538e36114a22760,d5328f0303a398368b4bf807c45adf5819a04f42..64c8cb7de7194c6d897e0e1171eca02eed93ac31
@@@ -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 *)){
diff --cc src/main.cpp
Simple merge