Skip to content

Commit

Permalink
updating
Browse files Browse the repository at this point in the history
  • Loading branch information
mkarroqe committed May 12, 2020
1 parent 16459ec commit e5010e8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Binary file not shown.
3 changes: 2 additions & 1 deletion 06-Students-Choice/SDLProject/Entity.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,9 @@ void Entity::Update(float deltaTime, Entity *snail, Entity *player, Entity *obje
// if you haven't collided before, live ur life, betta
else {
// within reason ofc
if (position.x < 10 && position.x > -10)
if (position.x < 10 && position.x > -10) {
position.x += 0.05;
}
else {
position.x -= 0.05; // maybe we'll get rid of this
}
Expand Down

0 comments on commit e5010e8

Please sign in to comment.