|
Panda3D
|
Public Member Functions | |
| def | __init__ |
| def | handleAvatarControls |
| def | jumpPressed |
Public Attributes | |
| isAirborne | |
| priorParent | |
Static Public Attributes | |
| tuple | earlyEventSphere = base.config.GetBool('early-event-sphere', 0) |
| tuple | notify = directNotify.newCategory("TwoDWalker") |
| tuple | wantDebugIndicator = base.config.GetBool('want-avatar-physics-indicator', 0) |
| tuple | wantFloorSphere = base.config.GetBool('want-floor-sphere', 0) |
The TwoDWalker is primarily for a 2D Scroller game environment. Eg - Toon Blitz minigame. TODO: This class is still work in progress. Currently Toon Blitz is using this only for jumping. Moving the Toon left to right is handled by toontown/src/minigame/TwoDDrive.py. I eventually want this class to control all the 2 D movements, possibly with a customizable input list.
| def __init__ | ( | self, | |
gravity = -32.1740, |
|||
standableGround = 0.707, |
|||
hardLandingForce = 16.0 |
|||
| ) |
| def handleAvatarControls | ( | self, | |
| task | |||
| ) |
Check on the arrow keys and update the avatar.
Reimplemented from GravityWalker.
| def jumpPressed | ( | self | ) |
This function should be called from TwoDDrive when the jump key is pressed.
tuple earlyEventSphere = base.config.GetBool('early-event-sphere', 0) [static] |
Reimplemented from GravityWalker.
Reimplemented from GravityWalker.
tuple notify = directNotify.newCategory("TwoDWalker") [static] |
Reimplemented from GravityWalker.
Reimplemented from GravityWalker.
tuple wantDebugIndicator = base.config.GetBool('want-avatar-physics-indicator', 0) [static] |
Reimplemented from GravityWalker.
tuple wantFloorSphere = base.config.GetBool('want-floor-sphere', 0) [static] |
Reimplemented from GravityWalker.
1.7.3