示例#1
0
    def update(self, dt) -> str:
        self.timer += dt
        jvcr.spr(0, 0, 0, 48*16, 256, 144, 0, 0, 0)

        if self.timer > 10:
            return "next"
        if self.timer > 0.5 and jvcr.btn(jvcr.BTN_B, 0):
            return "next"
 def draw(self, dt, x, y, flip=0, rotate=0, scale=1):
     self._time += dt
     index = -1
     if not self.full_cycle:
         index = int(self._time * self.speed) % len(self._sprites)
         if index == len(self._sprites) - 1 and not self.cycle:
             self.full_cycle = True
     sprite = self._sprites[index]
     jvcr.spr(x, y, sprite[0], sprite[1], self.width, self.height, flip,
              rotate, scale)
示例#3
0
 def draw(self, x, y, dt):
     spr(x, y, 13 * 16, 46 * 16, 32, 16, 0, 0, 0)
示例#4
0
 def draw(self, x, y, dt):
     spr(x, y, 12 * 16, 46 * 16, 16, 16, 0, 0, 0)
示例#5
0
 def draw(self, x, y, dt):
     spr(x, y, 28 * 16, 0, 32, 16 * 6, 0, 0, 0)
示例#6
0
 def draw(self, x, y, dt):
     spr(x, y, 0, 41 * 16, 32, 48, 0, 0, 0)
示例#7
0
 def draw(self, x, y, dt):
     spr(x, y, 15 * 16, 46 * 16, 16, 32, 0, 0, 0)
示例#8
0
 def draw_back(self, dt):
     px, py = LEVELS[self.storage['level']]['spr']
     jvcr.spr(32, 0, px, py, 240, 144, 0, 0, 0)
示例#9
0
 def draw(self, x, y, dt):
     jvcr.spr(x, y, 18 * 16, 47 * 16, 16, 16, 0, 0, 0)
示例#10
0
def update(dt):
    jvcr.cls(1)

    jvcr.spr(0, 0, 0, 0, 256, 144, 0, 0, 0)