]> git.localhorst.tv Git - orbi.git/blobdiff - src/app/Controller.cpp
orientation for entities
[orbi.git] / src / app / Controller.cpp
index 4d1bf0f31f0255bd4aafbed49bc027f8a984dce2..b98688a91ba8710b280998de26e699155f3c5fe5 100644 (file)
@@ -40,6 +40,7 @@ void Controller::Update(float delta) {
 
 void Controller::MoveLeft() {
        moving -= 1;
+       e->orient = Entity::LOOKS_LEFT;
 }
 
 void Controller::StopLeft() {
@@ -48,6 +49,7 @@ void Controller::StopLeft() {
 
 void Controller::MoveRight() {
        moving += 1;
+       e->orient = Entity::LOOKS_RIGHT;
 }
 
 void Controller::StopRight() {