Пример #1
0
def draw():
    gfw.world.draw()
    gobj.draw_collision_box()

    font.draw(get_canvas_width() // 2 - FONT_SIZE,
              get_canvas_height() - FONT_SIZE, str(player.score))
    if player.ea_score > 0:
        font_meso.draw(get_canvas_width() - 300,
                       get_canvas_height() - 50,
                       f'메소를 얻었습니다 (+{player.ea_score})')
Пример #2
0
def draw():
    global xOffset
    global yOffset
    for t in gfw.world.objects_at(gfw.layer.platform):
        t.image.clip_draw_to_origin(*t.sPos, t.width, t.height, t.pos[0] - xOffset, t.pos[1] - yOffset)

    image = gfw.image.load(gobj.RES_DIR + '/PrtWhite.png')
    image.clip_draw_to_origin(horzSelected * 32, VertSelected * 32, 32, 32, 0, canvas_height - 64, 64, 64)
    gobj.draw_collision_box(xOffset, yOffset)

    wimage = gfw.image.load(gobj.RES_DIR + '/Arms.png')
    for i in gfw.world.objects_at(gfw.layer.item):
        wimage.clip_draw_to_origin(i.type * 36, 0, 36, 13, i.pos[0] - xOffset, i.pos[1] - yOffset)
Пример #3
0
def draw():
    gfw.world.draw()
    gobj.draw_collision_box()
    font.draw(20, canvas_height - 45, 'Wave: %d' % enemy_gen.wave_index)
Пример #4
0
def draw():
    gfw.world.draw()
    gobj.draw_collision_box()
Пример #5
0
def draw():
    gfw.world.draw()
    gobj.draw_collision_box()
    score_pos = 800, get_canvas_height() - 30
    font.draw(*score_pos, 'Score: %.0f' % score, (255, 255, 255))
Пример #6
0
def draw():
    gfw.world.draw()
    gobj.draw_collision_box()
    font.draw(canvas_width / 2 - 30, canvas_height - 45, '%d' % player.score)
Пример #7
0
def draw():
    gfw.world.draw()
    gobj.draw_collision_box()

    font.draw(0, get_canvas_height() - 15, f'Attempt: {player.n_die}', (255, 0, 0))
Пример #8
0
def draw():
    gfw.world.draw()
    #for b in Bullet.bullets: b.draw()
    gobj.draw_collision_box()