Ignore:
Timestamp:
09/03/13 21:33:44 (8 years ago)
Author:
Stefano Rivera <stefano@…>
Branch:
default
Phase:
public
Rebase:
37626333353332656333383765353062326232303836633163386630393364623938313362303432
Message:

Break out Renderers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • nagslang/protagonist.py

    r200 r207  
    44import math
    55
     6from nagslang import render
    67from nagslang.constants import COLLISION_TYPE_PLAYER, ZORDER_MID
    7 from nagslang.game_object import (
    8     GameObject, SingleShapePhysicser, AnimatedFacingImageRenderer, make_body)
     8from nagslang.game_object import GameObject, SingleShapePhysicser, make_body
    99from nagslang.mutators import FLIP_H
    1010from nagslang.resources import resources
     
    5656    def _setup_renderers(self):
    5757        self._renderers = {
    58             self.HUMAN_FORM: AnimatedFacingImageRenderer(
     58            self.HUMAN_FORM: render.AnimatedFacingImageRenderer(
    5959                (self._get_image('human_1.png'),
    6060                 self._get_image('human_1.png'),
     
    6969                 self._get_image('human_2.png', FLIP_H),
    7070                 self._get_image('human_2.png', FLIP_H))),
    71             self.HUMAN_FORM_BACK: AnimatedFacingImageRenderer(
     71            self.HUMAN_FORM_BACK: render.AnimatedFacingImageRenderer(
    7272                (self._get_image('human_back_1.png'),
    7373                 self._get_image('human_back_1.png'),
     
    8282                 self._get_image('human_back_2.png', FLIP_H),
    8383                 self._get_image('human_back_2.png', FLIP_H))),
    84             self.WOLF_FORM: AnimatedFacingImageRenderer(
     84            self.WOLF_FORM: render.AnimatedFacingImageRenderer(
    8585                (self._get_image('werewolf_1.png'),
    8686                 self._get_image('werewolf_1.png'),
     
    9595                 self._get_image('werewolf_2.png', FLIP_H),
    9696                 self._get_image('werewolf_2.png', FLIP_H))),
    97             self.WOLF_FORM_BACK: AnimatedFacingImageRenderer(
     97            self.WOLF_FORM_BACK: render.AnimatedFacingImageRenderer(
    9898                (self._get_image('werewolf_back_1.png'),
    9999                 self._get_image('werewolf_back_1.png'),
Note: See TracChangeset for help on using the changeset viewer.