Esempio n. 1
0
def make_flag_ru(pos):
    animation = [
        texture_asset.TextureAsset("RU_Rendered/out{:04d}.png".format(i))
        for i in range(0, 50, 2)
    ]
    entext = EntityTexture(*([animation] * 4))

    return Flag(pos, entext)
Esempio n. 2
0
def make_rock(pos, size=0):
    animation = [
        texture_asset.TextureAsset("rock{}.png".format(i)) for i in range(10)
    ]

    entext = EntityTexture(*([animation] * 4))

    rock = Rock(pos, entext)
    rock.size_frame = size
    rock.mass = (size + 1) * 5

    return rock
Esempio n. 3
0
def make_sledgehammer(pos):
    animation = [texture_asset.TextureAsset("sledgehammer.png")]
    entext = EntityTexture(*([animation] * 4))

    return SledgeHammer(pos, entext)
Esempio n. 4
0
def make_shovel(pos):
    animation = [texture_asset.TextureAsset("shovel.png")]
    entext = EntityTexture(*([animation] * 4))

    return Shovel(pos, entext)
Esempio n. 5
0
def make_spoon(pos):
    animation = [texture_asset.TextureAsset("spoon.png")]
    entext = EntityTexture(*([animation] * 4))

    return Spoon(pos, entext)
Esempio n. 6
0
def make_swede(pos):
    return Swede(pos, EntityTexture.load_walking_texture("SwSw", [0, 1, 0, 1]))
Esempio n. 7
0
def make_american(pos):
    return American(pos, EntityTexture.load_walking_texture("AmAm"))
Esempio n. 8
0
def make_player(pos):
    return Russian(pos, EntityTexture.load_walking_texture("RuRu"))