Ejemplo n.º 1
0
    def __init__(self,name="Storm",sprite_path=".//sprites//entities//storm.png",position=[0,0,0],tags=[],control=[None,True],visible=True,tile_type="entity",inventory_slots=[items.item_slot(name="current_weapon")]):

        world.grid_obj.__init__(self,sprite_path=sprite_path,position=position,tags=tags,visible=visible,tile_type=tile_type)

        self.control = control

        self.inventory_slots = inventory_slots

        self.name = name

        self.text_stats = [True,10]

        self.text_label = pyglet.text.Label("lol",x=self.position[0]*64+32,y=self.position[1]*32+112,anchor_x="center",anchor_y="bottom",width = 480,multiline=False)