Package playground
Class LevelMovingHitObjects
java.lang.Object
playground.Playground
playground.SpaceInvadersLevel
playground.LevelMovingHitObjects
Level that creates two RectObjects moving around and if ego is hit by them game is directly lost
(lives = 0).
-
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
-
LevelMovingHitObjects
public LevelMovingHitObjects()
-
-
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.
-