Did I find the right examples for you? yes no

All Samples(5)  |  Call(4)  |  Derive(0)  |  Import(1)

src/p/y/python-tactics-HEAD/scene.py   python-tactics(Download)
from pyglet.text import Label
 
from util import load_sprite_asset, load_sprite_animation,\
                 faces_from_images, find_path
from sprite import PixelAwareSprite, MovingSprite
    def _load_moogle(self):
        moogle_image = load_sprite_asset("moogle")
        moogle_image.anchor_x = moogle_image.width / 2
        moogle_image.anchor_y = moogle_image.height / 2
        moog_sprite = Sprite(moogle_image,
        for i, column in enumerate(map_points):
            for j, (x, y) in enumerate(column):
                image = load_sprite_asset("grass")
                image.anchor_x = image.width / 2
                image.anchor_y = image.height / 2
    def _load_characters(self):
        # Just load the knight for now
        knight_north = load_sprite_asset("knight/look_north")
        knight_west = load_sprite_asset("knight/look_west")
        knight_walk_west  = load_sprite_animation("knight", "walk_west", 8, 0.15)