RandomBlocks
A class extending introprog.BlockGame
, see source code.
Attributes
- Source
- TestBlockGame.scala
- Graph
-
- Supertypes
Members list
Type members
Classlikes
Attributes
- Source
- TestBlockGame.scala
- Supertypes
-
trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalstrait Stateclass Objecttrait Matchableclass AnyShow all
- Self type
-
GameOver.type
Attributes
- Source
- TestBlockGame.scala
- Supertypes
-
trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalstrait Stateclass Objecttrait Matchableclass AnyShow all
- Self type
-
Playing.type
Attributes
- Source
- TestBlockGame.scala
- Supertypes
-
trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalstrait Stateclass Objecttrait Matchableclass AnyShow all
- Self type
-
Starting.type
Attributes
- Source
- TestBlockGame.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
Value members
Concrete methods
Called in each gameLoop
iteration. Override if you want non-empty action.
Called in each gameLoop
iteration. Override if you want non-empty action.
Attributes
- Definition Classes
- Source
- TestBlockGame.scala
Called when window is closed. Override if you want non-empty action.
Called when window is closed. Override if you want non-empty action.
Attributes
- Definition Classes
- Source
- TestBlockGame.scala
Called when a key is pressed. Override if you want non-empty action.
Called when a key is pressed. Override if you want non-empty action.
Value parameters
- key
-
is a string representation of the pressed key
Attributes
- Definition Classes
- Source
- TestBlockGame.scala
Called when a key is released. Override if you want non-empty action.
Called when a key is released. Override if you want non-empty action.
Value parameters
- key
-
is a string representation of the released key
Attributes
- Definition Classes
- Source
- TestBlockGame.scala
Called when mouse is pressed. Override if you want non-empty action.
Called when mouse is pressed. Override if you want non-empty action.
Value parameters
- pos
-
the mouse position in underlying
pixelWindow
coordinates
Attributes
- Definition Classes
- Source
- TestBlockGame.scala
Called when mouse is released. Override if you want non-empty action.
Called when mouse is released. Override if you want non-empty action.
Value parameters
- pos
-
the mouse position in underlying
pixelWindow
coordinates
Attributes
- Definition Classes
- Source
- TestBlockGame.scala
Attributes
- Source
- TestBlockGame.scala
Attributes
- Source
- TestBlockGame.scala
Attributes
- Source
- TestBlockGame.scala
Inherited methods
Clear a rectangle in the message area in block coordinates.
Clear a rectangle in the message area in block coordinates.
Attributes
- Inherited from:
- BlockGame
- Source
- BlockGame.scala
Erase all blocks to background color.
Paint a block in color c
at (x
,y
) in block coordinates.
Paint a block in color c
at (x
,y
) in block coordinates.
Attributes
- Inherited from:
- BlockGame
- Source
- BlockGame.scala
Write msg
in color
in the middle of the window. The drawing is postponed until the end of the current game loop iteration and thus the text drawn on top of any updated blocks.
Write msg
in color
in the middle of the window. The drawing is postponed until the end of the current game loop iteration and thus the text drawn on top of any updated blocks.
Attributes
- Inherited from:
- BlockGame
- Source
- BlockGame.scala
Write msg
in color
in the message area at ('x','y') in block coordinates.
Write msg
in color
in the message area at ('x','y') in block coordinates.
Attributes
- Inherited from:
- BlockGame
- Source
- BlockGame.scala
Erase the block at (x
,y
) to background
color.
Erase the block at (x
,y
) to background
color.
Attributes
- Inherited from:
- BlockGame
- Source
- BlockGame.scala
Returns the gameLoop delay in ms implied by framesPerSecond
.
Returns the gameLoop delay in ms implied by framesPerSecond
.
Attributes
- Inherited from:
- BlockGame
- Source
- BlockGame.scala
Called if no time is left in iteration to keep frame rate. Default action is to print a warning message.
Called if no time is left in iteration to keep frame rate. Default action is to print a warning message.
Attributes
- Inherited from:
- BlockGame
- Source
- BlockGame.scala
Inherited fields
Attributes
- Inherited from:
- BlockGame
- Source
- BlockGame.scala
Attributes
- Inherited from:
- BlockGame
- Source
- BlockGame.scala
Attributes
- Inherited from:
- BlockGame
- Source
- BlockGame.scala
Attributes
- Inherited from:
- BlockGame
- Source
- BlockGame.scala
Attributes
- Inherited from:
- BlockGame
- Source
- BlockGame.scala
Attributes
- Inherited from:
- BlockGame
- Source
- BlockGame.scala
Attributes
- Inherited from:
- BlockGame
- Source
- BlockGame.scala