Formatting cleanup on GL floats
self.frameno = (self.frameno + int(dt / self.anim_period)) % len(self.frames)
self.anim_t = now
glPushMatrix()
- glTranslatef(pos[0], pos[1], 0)
+ glTranslatef(pos[0], pos[1], 0.0)
if self.rotation != 0:
- glRotatef(self.rotation, 0, 0, -1)
+ glRotatef(self.rotation, 0.0, 0.0, -1.0)
if self.scale != 1.0:
glScalef(self.scale, self.scale, 1.0)
glCallList(self.displaylists[self.frameno])
if self.showup:
glDisable(GL_TEXTURE_2D)
- glColor3f(0.0,0.0,1.0)
+ glColor3f(0.0, 0.0, 1.0)
glBegin(GL_TRIANGLES)
glVertex(-5, 0, 0)
glVertex(0, 20, 0)
glPopMatrix()
if self.showhitbox:
glDisable(GL_TEXTURE_2D)
- glColor3f(1.0,1.0,1.0)
+ glColor3f(1.0, 1.0, 1.0)
glBegin(GL_LINE_LOOP)
glVertex(self.hitbox.left, self.hitbox.bottom, 0)
glVertex(self.hitbox.left, self.hitbox.top, 0)