diff options
author | drumsetmonkey <abelleisle@roadrunner.com> | 2015-12-14 08:43:28 -0500 |
---|---|---|
committer | drumsetmonkey <abelleisle@roadrunner.com> | 2015-12-14 08:43:28 -0500 |
commit | 840cf5f0d3fc60aceb95385010eac02ae6c95dcc (patch) | |
tree | 0b7eb237737289ad9b3f9bffc1478875d0d71abf /src/entities.cpp | |
parent | 3f70fa248e411178f33075f4b90f112eced37f14 (diff) | |
parent | 477e6cdde57a428b41e814943233d8b01f0db6bf (diff) |
Merge branch 'master' of http://github.com/tcsullivan/gamedev
Diffstat (limited to 'src/entities.cpp')
-rw-r--r-- | src/entities.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/entities.cpp b/src/entities.cpp index 9d0ea9b..24c0d01 100644 --- a/src/entities.cpp +++ b/src/entities.cpp @@ -154,6 +154,10 @@ Mob::Mob(int sub){ width = HLINE * 20; height = 2000; tex = new Texturec(0); + case MS_DOOR: + width = HLINE * 10; + height = HLINE * 16; + tex = new Texturec(1,"assets/door.png"); break; } @@ -240,6 +244,7 @@ void Entity::draw(void){ //draws the entities goto NOPE; break; case MS_BIRD: + case MS_DOOR: default: tex->bind(0); break; @@ -456,6 +461,7 @@ void Mob::wander(int timeRun){ hey(this); } break; + case MS_DOOR: default: break; } |