Exemplo n.º 1
0
 def draw(self):
     jngl.draw(self.img, self.x, self.y + self.height)
     if self.active:
         xs = (self.anim_size*.13)-(.1*sin(self.animation))
         ys = self.anim_size*.2+(.1*sin(self.animation))
         y = self.y + (114-(64 * ys))
         x = self.x + (self.width-(16 * xs)) -12
         jngl.drawScaled(self.fire[int(self.animation)], x, y, xs, ys)
Exemplo n.º 2
0
 def draw(self):
     jngl.setColor(255, 255, 255)
     x = self.x - self.width * (self.breathFactor - 1) / 2
     y = self.y + self.height * (self.breathFactor - 1)
     xfactor = self.breathFactor
     yfactor = 1 + (1 - self.breathFactor)
     if self.xspeed >= 0:
         jngl.drawScaled(self.filenames[self.currentFile], x, y, xfactor, yfactor)
     else:
         jngl.drawScaled(self.filenames[self.currentFile], x + self.width, y, -xfactor, yfactor)
     if self.hasKey:
         jngl.draw(RESOURCEWORLD + "key.png", self.x, self.y - 20)
Exemplo n.º 3
0
 def draw(self):
     #jngl.draw(self.img, self.x, self.y)
     y = self.y - self.height * (self.scalefactor - 1)
     jngl.drawScaled(self.img, self.x, y+3, 1, self.scalefactor)
Exemplo n.º 4
0
 def drawPreview(self):
     jngl.draw(self.img, self.x, self.y + self.height)
     jngl.drawScaled(self.fire[0], self.x, self.y, 1, 1.8)