mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-12-25 04:32:33 -06:00
28 lines
681 B
Python
28 lines
681 B
Python
|
"""
|
||
|
GhostWalker.py is for avatars.
|
||
|
|
||
|
A walker control such as this one provides:
|
||
|
- creation of the collision nodes
|
||
|
- handling the keyboard and mouse input for avatar movement
|
||
|
- moving the avatar
|
||
|
|
||
|
it does not:
|
||
|
- play sounds
|
||
|
- play animations
|
||
|
|
||
|
although it does send messeges that allow a listener to play sounds or
|
||
|
animations based on walker events.
|
||
|
"""
|
||
|
|
||
|
from direct.showbase.ShowBaseGlobal import *
|
||
|
|
||
|
from direct.directnotify import DirectNotifyGlobal
|
||
|
import NonPhysicsWalker
|
||
|
|
||
|
class GhostWalker(NonPhysicsWalker.NonPhysicsWalker):
|
||
|
|
||
|
notify = DirectNotifyGlobal.directNotify.newCategory("GhostWalker")
|
||
|
|
||
|
# Ghosts slide instead of jump:
|
||
|
slideName = "jump"
|