aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authordrumsetmonkey <abelleisle@roadrunner.com>2015-12-18 07:32:05 -0500
committerdrumsetmonkey <abelleisle@roadrunner.com>2015-12-18 07:32:05 -0500
commit0f379ae55e07d4e1e7904a3eb33b1c29c2177ec1 (patch)
tree7e6b0303ec43fec9c19d54dd875c0e77b3681237 /src
parentf871cdcce267621adac4e5eb1f6705fd26462544 (diff)
Added lights
Diffstat (limited to 'src')
-rw-r--r--src/entities.cpp4
-rw-r--r--src/world.cpp1
2 files changed, 2 insertions, 3 deletions
diff --git a/src/entities.cpp b/src/entities.cpp
index 6a2f4db..cd8d29e 100644
--- a/src/entities.cpp
+++ b/src/entities.cpp
@@ -83,8 +83,8 @@ Player::Player(){ //sets all of the player specific traits on object creation
subtype = 0;
health = maxHealth = 100;
speed = 1;
- //tex = new Texturec(3, "assets/player1.png", "assets/player.png", "assets/player2.png");
- tex = new Texturec(3, "assets/maybeplayer.png", "assets/maybeplayer.png", "assets/maybeplayer.png");
+ tex = new Texturec(3, "assets/player1.png", "assets/player.png", "assets/player2.png");
+ //tex = new Texturec(3, "assets/maybeplayer.png", "assets/maybeplayer.png", "assets/maybeplayer.png");
inv = new Inventory(PLAYER_INV_SIZE);
}
Player::~Player(){
diff --git a/src/world.cpp b/src/world.cpp
index 7f4d6f6..0ecf7ee 100644
--- a/src/world.cpp
+++ b/src/world.cpp
@@ -555,7 +555,6 @@ LOOP2:
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT); //for the s direction
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT); //for the t direction
glBegin(GL_QUADS);
- std::cout<<shade<<std::endl;
for(i=is;i<(unsigned)ie-GEN_INC;i++){
cline[i].y+=(yoff-DRAW_Y_OFFSET); // Add the y offset
if(!cline[i].y){