Changeset 176:57a78f19c673


Ignore:
Timestamp:
04/06/11 17:24:09 (12 years ago)
Author:
Neil Muller <drnlmuller@…>
Branch:
default
Phase:
public
Message:

Hack player.py to have platformer physics

File:
1 edited

Legend:

Unmodified
Added
Removed
  • skaapsteker/sprites/player.py

    r172 r176  
    8484            self.running = not self.on_solid # if you're not on something you can't stand
    8585        else:
     86            self.velocity = (0, v_y) # Standard platformer physics
    8687            self.running = True
    8788        self.set_image()
     
    102103            self.facing = 'left'
    103104            self.set_image()
    104         self.deltav((-100.0, 0.0))
     105        self.deltav((-300.0, 0.0))
    105106
    106107    def action_right(self):
     
    108109            self.facing = 'right'
    109110            self.set_image()
    110         self.deltav((100.0, 0.0))
     111        self.deltav((300.0, 0.0))
    111112
    112113    def action_up(self):
Note: See TracChangeset for help on using the changeset viewer.