Pong3D gameplay class. Derived from a generic base gameply class, this
is custom-specialized to play the pong3D game.
|
|
|
|
|
|
|
ballrestart(self,
foo=None)
to start the ball off the pad |
source code
|
|
|
bot0(self,
padz,
ballpos,
balldir)
npc AI (actually very dumb) |
source code
|
|
|
bot1(self,
padz,
ballpos,
balldir)
npc AI (less dumb) |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
intermessage(self,
msg,
scale=0.1,
delay=-1) |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
setcamera(self)
WARNING you actually cannot dynamically switch from 2d to 3d and
vice-versa but just stay stick to one dimension or the other one |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
wallbouncheck(self,
reset=False)
check for triple bounces in a player's middlefield |
source code
|
|
|
|
Inherited from direct.showbase.DirectObject.DirectObject :
accept ,
acceptOnce ,
addTask ,
classTree ,
detectLeaks ,
doMethodLater ,
getAllAccepting ,
ignore ,
ignoreAll ,
isAccepting ,
isIgnoring ,
removeAllTasks ,
removeTask
|