Class SnakeMinimal
java.lang.Object
de.pirckheimer_gymnasium.engine_pi.Scene
de.pirckheimer_gymnasium.engine_pi_demos.gameloop.SnakeMinimal
- All Implemented Interfaces:
ActorAdder,FrameUpdateListenerRegistration,KeyStrokeListenerRegistration,MouseClickListenerRegistration,MouseScrollListenerRegistration
-
Constructor Summary
Constructors -
Method Summary
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
-
SnakeMinimal
public SnakeMinimal()
-
-
Method Details
-
setScore
public void setScore(int score) -
increaseScore
public void increaseScore() -
placeRandomGoodie
public void placeRandomGoodie() -
main
-