Class SnakeAdvanced
java.lang.Object
de.pirckheimer_gymnasium.engine_pi.Scene
de.pirckheimer_gymnasium.engine_pi_demos.gameloop.SnakeAdvanced
- All Implemented Interfaces:
ActorAdder,FrameUpdateListener,FrameUpdateListenerRegistration,KeyStrokeListenerRegistration,MouseClickListenerRegistration,MouseScrollListenerRegistration
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidstatic voidvoidonFrameUpdate(double timeInS) voidvoidsetScore(int score) Methods inherited from class de.pirckheimer_gymnasium.engine_pi.Scene
add, addLayer, getBackgroundColor, getCamera, getFrameUpdateListeners, getGravity, getKeyStrokeListeners, getMainLayer, getMouseClickListeners, getMousePosition, getMouseScrollListeners, getScene, getVisibleArea, getWorldHandler, invokeFrameUpdateListeners, isPhysicsPaused, remove, removeLayer, render, setBackgroundColor, setBackgroundColor, setGravity, setGravity, setGravityOfEarth, setPhysicsPaused, stepMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.pirckheimer_gymnasium.engine_pi.actor.ActorAdder
addCircle, addCircle, addCircle, addCircle, addCircle, addHexagon, addHexagon, addHexagon, addHexagon, addHexagon, addImage, addImage, addPentagon, addPentagon, addPentagon, addRectangle, addRectangle, addRectangle, addRegularPolygon, addRegularPolygon, addRegularPolygon, addRegularPolygon, addText, addText, addText, addText, addTriangle, addTriangle, addTriangle, addTriangle, addTriangleMethods inherited from interface de.pirckheimer_gymnasium.engine_pi.event.FrameUpdateListenerRegistration
addFrameUpdateListener, defer, delay, removeFrameUpdateListener, repeat, repeat, repeat, repeat, repeatMethods inherited from interface de.pirckheimer_gymnasium.engine_pi.event.KeyStrokeListenerRegistration
addKeyStrokeListener, removeKeyStrokeListenerMethods inherited from interface de.pirckheimer_gymnasium.engine_pi.event.MouseClickListenerRegistration
addMouseClickListener, removeMouseClickListenerMethods inherited from interface de.pirckheimer_gymnasium.engine_pi.event.MouseScrollListenerRegistration
addMouseScrollListener, removeMouseScrollListener
-
Constructor Details
-
SnakeAdvanced
public SnakeAdvanced()
-
-
Method Details
-
setScore
public void setScore(int score) -
increaseScore
public void increaseScore() -
placeRandomGoodie
public void placeRandomGoodie() -
onFrameUpdate
public void onFrameUpdate(double timeInS) - Specified by:
onFrameUpdatein interfaceFrameUpdateListener
-
main
-