direct.controls.TwoDWalker

from direct.controls.TwoDWalker import TwoDWalker

TwoDWalker.py is for controlling the avatars in a 2D scroller game environment.

Inheritance diagram

digraph inheritancefe916bae5a { bgcolor=transparent; rankdir=BT; size="8.0, 12.0"; "DirectObject" [URL="direct.showbase.DirectObject.html#direct.showbase.DirectObject.DirectObject",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="This is the class that all Direct/SAL classes should inherit from"]; "GravityWalker" [URL="direct.controls.GravityWalker.html#direct.controls.GravityWalker.GravityWalker",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top"]; "DirectObject" -> "GravityWalker" [arrowsize=0.75,style=""]; "TwoDWalker" [URL="direct.controls.TwoDWalker.html#direct.controls.TwoDWalker.TwoDWalker",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="The TwoDWalker is primarily for a 2D Scroller game environment. Eg - Toon Blitz minigame."]; "GravityWalker" -> "TwoDWalker" [arrowsize=0.75,style=""]; }
class TwoDWalker(gravity=-32.174, standableGround=0.707, hardLandingForce=16.0)[source]

Bases: GravityWalker

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.

earlyEventSphere = 0
notify = <direct.directnotify.Notifier.Notifier object>
wantDebugIndicator = 0
wantFloorSphere = 0