Permalink
Browse files

Fixed jumping drawing.

  • Loading branch information...
1 parent 2d8980a commit e6785822a02f81e0997ff62aafb360513406123e namaste committed Apr 1, 2008
Showing with 4 additions and 1 deletion.
  1. +4 −1 soylent/weapon/Hero.py
View
5 soylent/weapon/Hero.py
@@ -36,7 +36,10 @@ def Draw(self):
glBindTexture(GL_TEXTURE_2D, self.texture)
glPushMatrix()
glTranslatef(self.rect.centerx, self.rect.centery, 0.0)
- glScalef(self.rect.width, self.rect.height, 0.0)
+ if self.isJumping:
+ glScalef(self.rect.width + 32, self.rect.height + 32, 0.0)
+ else:
+ glScalef(self.rect.width, self.rect.height, 0.0)
glBegin(GL_QUADS)
glTexCoord2f(0.0, 0.0); glVertex3f(-1.0, -1.0, 1.0) # Bottom Left Of The Texture and Quad
glTexCoord2f(1.0, 0.0); glVertex3f( 1.0, -1.0, 1.0) # Bottom Right Of The Texture and Quad

0 comments on commit e678582

Please sign in to comment.