Package playground
Class LevelMovingObjects
java.lang.Object
playground.Playground
playground.SpaceInvadersLevel
playground.LevelMovingObjects
This level adds two distracting objects to the canvas that cannot collide but bounce around all the time.
-
Field Summary
Fields inherited from class playground.SpaceInvadersLevel
EGOSPEED, SHOTSPEED
Fields inherited from class playground.Playground
FLAGS_ALL, FLAGS_GLOBAL, FLAGS_LEVEL
-
Constructor Summary
-
Method Summary
Methods inherited from class playground.SpaceInvadersLevel
applyGameLogic, gameOver, levelFinished, preferredSizeX, preferredSizeY, redrawLevel
Methods inherited from class playground.Playground
addObject, addObjectNow, collectObjects, deleteObject, deleteObjectNow, getGameTime, getGlobalFlag, getKeyEvents, getLevelFlag, getMouseEvents, getObject, getOrCreateGlobalFlag, getOrCreateLevelFlag, getSizeX, getSizeY, getTimestep, isPaused, processKeyEvents, processMouseEvents, redraw, reset, resetFlags, setGameTime, setGlobalFlag, setLevelFlag, setPaused, setTimestep, togglePause, updateObjects
-
Constructor Details
-
LevelMovingObjects
public LevelMovingObjects()
-
-
Method Details
-
prepareLevel
Description copied from class:SpaceInvadersLevel
initially sets up the level. Not called by user interaction, but called every time a layer is restarted from scratch. So make sure that this is possible. Here, resources are loaded only once even if method is called several times.- Overrides:
prepareLevel
in classSpaceInvadersLevel
- Parameters:
id
- String identifies level.
-