Esempio n. 1
0
 def render(self, xpos, ypos):
     for y in range(0, dcfurs.nrows):
         zy = y + ypos
         if (zy < 0) or (zy >= self.height):
             dcfurs.set_row(y, 0)
             continue
         row = self.z[zy]
         for x in range(dcfurs.ncols):
             zx = x + xpos
             if (zx < 0) or (zx >= self.width):
                 dcfurs.set_pixel(x, y, 0)
             elif row[zx] == MAZE_WALL:
                 dcfurs.set_pixel(x, y, self.PX_WALL)
             elif row[zx] == MAZE_FINISH:
                 dcfurs.set_pixel(x, y, self.PX_FINISH if self.blink else 0)
             elif (zx == self.x) and (zy == self.y):
                 dcfurs.set_pixel(x, y, self.PX_PLAYER)
             else:
                 dcfurs.set_pixel(x, y, 0)
Esempio n. 2
0
def booptoggle():
    # Draw the text 'BP and part of an arrow'
    dcfurs.clear()
    dcfurs.set_row(0, 0x02066)
    dcfurs.set_row(1, 0x020aa)
    dcfurs.set_row(2, 0x02066)
    dcfurs.set_row(3, 0x0202a)
    dcfurs.set_row(4, 0x02026)

    # Toggle the boop selection.
    if settings.boopselect:
        settings.boopselect = 0
        badge.boop = dcfurs.boop(settings.boopselect)
        dcfurs.set_pixel(12, 1, 0xff)
        dcfurs.set_pixel(14, 1, 0xff)
        dcfurs.set_pixel(11, 2, 0xff)
        dcfurs.set_pixel(15, 2, 0xff)
    else:
        settings.boopselect = 1
        badge.boop = dcfurs.boop(settings.boopselect)
        dcfurs.set_pixel(12, 3, 0xff)
        dcfurs.set_pixel(14, 3, 0xff)
        dcfurs.set_pixel(11, 2, 0xff)
        dcfurs.set_pixel(15, 2, 0xff)
Esempio n. 3
0
def beep():
    dcfurs.set_row(0, 0x0e6ce)
    dcfurs.set_row(1, 0x12b52)
    dcfurs.set_row(2, 0x126d2)
    dcfurs.set_row(3, 0x0e24e)
    dcfurs.set_row(4, 0x026d2)
    dcfurs.set_row(5, 0x02012)
    dcfurs.set_row(6, 0x0200e)
Esempio n. 4
0
def beep(color=0xffffff):
    dcfurs.set_row(0, 0x0e00e, color)
    dcfurs.set_row(1, 0x12492, color)
    dcfurs.set_row(2, 0x12b52, color)
    dcfurs.set_row(3, 0x0e6ce, color)
    dcfurs.set_row(4, 0x02d92, color)
    dcfurs.set_row(5, 0x02012, color)
    dcfurs.set_row(6, 0x0200e, color)
Esempio n. 5
0
def boop(color=0xffffff):
    dcfurs.set_row(0, 0x0e48e, color)
    dcfurs.set_row(1, 0x12b52, color)
    dcfurs.set_row(2, 0x12b52, color)
    dcfurs.set_row(3, 0x0eb4e, color)
    dcfurs.set_row(4, 0x02492, color)
    dcfurs.set_row(5, 0x02012, color)
    dcfurs.set_row(6, 0x0200e, color)
Esempio n. 6
0
def beep():
    color = badge.color()
    dcfurs.set_row(0, 0x0e00e, color)
    dcfurs.set_row(1, 0x12492, color)
    dcfurs.set_row(2, 0x12b52, color)
    dcfurs.set_row(3, 0x0e6ce, color)
    dcfurs.set_row(4, 0x02d92, color)
    dcfurs.set_row(5, 0x02012, color)
    dcfurs.set_row(6, 0x0200e, color)
Esempio n. 7
0
def boop():
    dcfurs.set_row(0, 0x0e48e)
    dcfurs.set_row(1, 0x12b52)
    dcfurs.set_row(2, 0x12b52)
    dcfurs.set_row(3, 0x0eb4e)
    dcfurs.set_row(4, 0x02492)
    dcfurs.set_row(5, 0x02012)
    dcfurs.set_row(6, 0x0200e)
Esempio n. 8
0
def my_own_penis():
    dcfurs.set_row(0, 0x0f03c)
    dcfurs.set_row(1, 0x00000)
    dcfurs.set_row(2, 0x00000)
    dcfurs.set_row(3, 0x00000)
    dcfurs.set_row(4, 0x00000)
    dcfurs.set_row(5, 0x00000)
    dcfurs.set_row(6, 0x00000)
Esempio n. 9
0
def owo():
    dcfurs.set_row(0, 0x1C00E)
    dcfurs.set_row(1, 0x22011)
    dcfurs.set_row(2, 0x22851)
    dcfurs.set_row(3, 0x22B51)
    dcfurs.set_row(4, 0x22491)
    dcfurs.set_row(5, 0x22011)
    dcfurs.set_row(6, 0x1C00E)
Esempio n. 10
0
def beep():
    dcfurs.set_row(0, 0x0E00E)
    dcfurs.set_row(1, 0x12492)
    dcfurs.set_row(2, 0x12B52)
    dcfurs.set_row(3, 0x0E6CE)
    dcfurs.set_row(4, 0x02D92)
    dcfurs.set_row(5, 0x02012)
    dcfurs.set_row(6, 0x0200E)
Esempio n. 11
0
def __loading__(step, total):
    x = dcfurs.ncols + dcfurs.nrows - 1
    shift = x - (step * x) // total
    dcfurs.set_row(0, 0x03fffff >> shift, 0xff0000)  # Red
    dcfurs.set_row(1, 0x07fffff >> shift, 0xff8000)  # Orange
    dcfurs.set_row(2, 0x0ffffff >> shift, 0xffff00)  # Yellow
    dcfurs.set_row(3, 0x1ffffff >> shift, 0x00ff00)  # Green
    dcfurs.set_row(4, 0x3ffffff >> shift, 0x00ffff)  # Cyan
    dcfurs.set_row(5, 0x7ffffff >> shift, 0x0000ff)  # Blue
    dcfurs.set_row(6, 0xfffffff >> shift, 0xff00ff)  # Purple
Esempio n. 12
0
def boop():
    color = badge.color()
    dcfurs.set_row(0, 0x0e48e, color)
    dcfurs.set_row(1, 0x12b52, color)
    dcfurs.set_row(2, 0x12b52, color)
    dcfurs.set_row(3, 0x0eb4e, color)
    dcfurs.set_row(4, 0x02492, color)
    dcfurs.set_row(5, 0x02012, color)
    dcfurs.set_row(6, 0x0200e, color)
Esempio n. 13
0
def owo():
    color = badge.color()
    dcfurs.set_row(0, 0x1c00e, color)
    dcfurs.set_row(1, 0x22011, color)
    dcfurs.set_row(2, 0x22851, color)
    dcfurs.set_row(3, 0x22b51, color)
    dcfurs.set_row(4, 0x22491, color)
    dcfurs.set_row(5, 0x22011, color)
    dcfurs.set_row(6, 0x1c00e, color)
Esempio n. 14
0
def awoo():
    color = badge.color()
    dcfurs.set_row(0, 0x00006, color)
    dcfurs.set_row(1, 0x11229, color)
    dcfurs.set_row(2, 0x2aa29, color)
    dcfurs.set_row(3, 0x2aaaf, color)
    dcfurs.set_row(4, 0x11149, color)
    dcfurs.set_row(5, 0x00009, color)
    dcfurs.set_row(6, 0x00000, color)
Esempio n. 15
0
def derp():
    dcfurs.set_row(0, 0x1d18e)
    dcfurs.set_row(1, 0x26a52)
    dcfurs.set_row(2, 0x24bd2)
    dcfurs.set_row(3, 0x1c852)
    dcfurs.set_row(4, 0x04b92)
    dcfurs.set_row(5, 0x04012)
    dcfurs.set_row(6, 0x0400e)
Esempio n. 16
0
def awoo():
    dcfurs.set_row(0, 0x00006)
    dcfurs.set_row(1, 0x11229)
    dcfurs.set_row(2, 0x2aa29)
    dcfurs.set_row(3, 0x2aaaf)
    dcfurs.set_row(4, 0x11149)
    dcfurs.set_row(5, 0x00009)
    dcfurs.set_row(6, 0x00000)
Esempio n. 17
0
def boop():
    dcfurs.set_row(0, 0x0E48E)
    dcfurs.set_row(1, 0x12B52)
    dcfurs.set_row(2, 0x12B52)
    dcfurs.set_row(3, 0x0EB4E)
    dcfurs.set_row(4, 0x02492)
    dcfurs.set_row(5, 0x02012)
    dcfurs.set_row(6, 0x0200E)
Esempio n. 18
0
def owo():
    dcfurs.set_row(0, 0x1c00e)
    dcfurs.set_row(1, 0x22011)
    dcfurs.set_row(2, 0x22851)
    dcfurs.set_row(3, 0x22b51)
    dcfurs.set_row(4, 0x22491)
    dcfurs.set_row(5, 0x22011)
    dcfurs.set_row(6, 0x1c00e)
Esempio n. 19
0
def awoo(color=0xffffff):
    dcfurs.set_row(0, 0x00006, color)
    dcfurs.set_row(1, 0x11229, color)
    dcfurs.set_row(2, 0x2aa29, color)
    dcfurs.set_row(3, 0x2aaaf, color)
    dcfurs.set_row(4, 0x11149, color)
    dcfurs.set_row(5, 0x00009, color)
    dcfurs.set_row(6, 0x00000, color)
Esempio n. 20
0
def beep():
    dcfurs.set_row(0, 0x0e00e)
    dcfurs.set_row(1, 0x12492)
    dcfurs.set_row(2, 0x12b52)
    dcfurs.set_row(3, 0x0e6ce)
    dcfurs.set_row(4, 0x02d92)
    dcfurs.set_row(5, 0x02012)
    dcfurs.set_row(6, 0x0200e)
Esempio n. 21
0
def owo(color=0xffffff):
    dcfurs.set_row(0, 0x1c00e, color)
    dcfurs.set_row(1, 0x22011, color)
    dcfurs.set_row(2, 0x22851, color)
    dcfurs.set_row(3, 0x22b51, color)
    dcfurs.set_row(4, 0x22491, color)
    dcfurs.set_row(5, 0x22011, color)
    dcfurs.set_row(6, 0x1c00e, color)