Skip to content

Commit

Permalink
Fix egg sprite
Browse files Browse the repository at this point in the history
  • Loading branch information
Mathnerd314 committed Aug 3, 2014
1 parent 963fb96 commit 6751741
Show file tree
Hide file tree
Showing 21 changed files with 0 additions and 8 deletions.
Binary file removed data/images/powerups/egg/egg-1.png
Binary file not shown.
Binary file removed data/images/powerups/egg/egg-10.png
Binary file not shown.
Binary file removed data/images/powerups/egg/egg-11.png
Binary file not shown.
Binary file removed data/images/powerups/egg/egg-12.png
Binary file not shown.
Binary file removed data/images/powerups/egg/egg-13.png
Binary file not shown.
Binary file removed data/images/powerups/egg/egg-14.png
Binary file not shown.
Binary file removed data/images/powerups/egg/egg-15.png
Binary file not shown.
Binary file removed data/images/powerups/egg/egg-16.png
Binary file not shown.
Binary file removed data/images/powerups/egg/egg-17.png
Binary file not shown.
Binary file removed data/images/powerups/egg/egg-18.png
Binary file not shown.
Binary file removed data/images/powerups/egg/egg-19.png
Binary file not shown.
Binary file removed data/images/powerups/egg/egg-2.png
Binary file not shown.
Binary file removed data/images/powerups/egg/egg-3.png
Binary file not shown.
Binary file removed data/images/powerups/egg/egg-4.png
Binary file not shown.
Binary file removed data/images/powerups/egg/egg-5.png
Binary file not shown.
Binary file removed data/images/powerups/egg/egg-6.png
Binary file not shown.
Binary file removed data/images/powerups/egg/egg-7.png
Binary file not shown.
Binary file removed data/images/powerups/egg/egg-8.png
Binary file not shown.
Binary file removed data/images/powerups/egg/egg-9.png
Binary file not shown.
File renamed without changes
8 changes: 0 additions & 8 deletions src/object/growup.cpp
Expand Up @@ -37,8 +37,6 @@ GrowUp::GrowUp(Direction direction) :
//set light for glow effect
lightsprite->set_blend(Blend(GL_SRC_ALPHA, GL_ONE));
lightsprite->set_color(Color(0.2f, 0.2f, 0.0f));

sprite->set_action((direction == LEFT) ? "left" : "right");
}

void
Expand Down Expand Up @@ -77,12 +75,6 @@ GrowUp::collision_solid(const CollisionHit& hit)
physic.set_velocity_y(0);
if(hit.left || hit.right) {
physic.set_velocity_x(-physic.get_velocity_x());
if(hit.left)
sprite->set_action("right");
else {
sprite->set_action("left");
}

}
}

Expand Down

0 comments on commit 6751741

Please sign in to comment.