Package demos.small_games
Class CarDemo
java.lang.Object
pi.Scene
demos.small_games.CarDemo
- All Implemented Interfaces:
FrameListener,FrameListenerRegistration,KeyStrokeListenerRegistration,MouseClickListenerRegistration,MouseScrollListenerRegistration,RenderSource
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class pi.Scene
actors, add, addedActors, addLayer, backgroundColor, backgroundColor, backgroundColor, camera, center, clear, focus, focusCenter, frameListeners, gravity, gravity, gravity, gravityOfEarth, info, info, info, info, info, isPhysicsPaused, keyStrokeListeners, layer, meter, mouseClickListeners, mousePosition, mouseScrollListeners, physicsPaused, remove, removeLayer, render, renderOverlay, scene, visibleArea, visibleAreaMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface pi.event.FrameListenerRegistration
addFrameListener, defer, delay, removeFrameListener, repeat, repeat, repeat, repeat, repeatMethods inherited from interface pi.event.KeyStrokeListenerRegistration
addKeyStrokeListener, removeKeyStrokeListenerMethods inherited from interface pi.event.MouseClickListenerRegistration
addMouseClickListener, removeMouseClickListenerMethods inherited from interface pi.event.MouseScrollListenerRegistration
addMouseScrollListener, removeMouseScrollListener
-
Constructor Details
-
CarDemo
public CarDemo()
-
-
Method Details
-
onFrame
public void onFrame(double pastTime) Description copied from interface:FrameListenerDiese Methode wird bei jedem Einzelbild eines angemeldeten Objekts erneut aufgerufen.- Specified by:
onFramein interfaceFrameListener- Parameters:
pastTime- Die Zeit in Sekunden, die seit der letzten Aktualisierung vergangen ist.
-
main
-