changeset 176:57a78f19c673

Hack player.py to have platformer physics
author Neil Muller <drnlmuller@gmail.com>
date Wed, 06 Apr 2011 19:24:09 +0200
parents cc01adf0092a
children 88a78fb9fa82
files skaapsteker/sprites/player.py
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/skaapsteker/sprites/player.py	Wed Apr 06 17:33:02 2011 +0200
+++ b/skaapsteker/sprites/player.py	Wed Apr 06 19:24:09 2011 +0200
@@ -83,6 +83,7 @@
             self.velocity = (0, v_y)
             self.running = not self.on_solid # if you're not on something you can't stand
         else:
+            self.velocity = (0, v_y) # Standard platformer physics
             self.running = True
         self.set_image()
 
@@ -101,13 +102,13 @@
         if self.facing != 'left':
             self.facing = 'left'
             self.set_image()
-        self.deltav((-100.0, 0.0))
+        self.deltav((-300.0, 0.0))
 
     def action_right(self):
         if self.facing != 'right':
             self.facing = 'right'
             self.set_image()
-        self.deltav((100.0, 0.0))
+        self.deltav((300.0, 0.0))
 
     def action_up(self):
         if self.on_solid: