Exemple #1
0
    def __init__(self, **kwargs):
        SpriteNode.__init__(self, 'rsc/hedgehog.png', **kwargs)
        self.size = (70, 70)
        self.color = '#337aff'
        self.dead = False
        self.death_flash_frames = 4
        self.cur_dff = 0
        self.x_scale = -1
        self.gravity = .25
        self.y_vel = 0
        self.x_vel = 0
        self.y_vel_max_up = 12
        self.y_vel_max_down = 15
        self.flap_speed = 6

        self.reset()
Exemple #2
0
 def __init__(self, **kargs):
     SpriteNode.__init__(self, 'plf:HudX', **kargs)
     self.scale = 0.5
Exemple #3
0
 def __init__(self, **kargs):
     SpriteNode.__init__(self, **kargs)
     self.anchor_point = (0, 0)
     self.color = '#8989ff'