introprog

package introprog

Members list

Packages

Type members

Classlikes

abstract class BlockGame(val title: String, val dim: (Int, Int), val blockSize: Int, val background: Color, var framesPerSecond: Int, val messageAreaHeight: Int, val messageAreaBackground: Color)

A class for creating games with block-based graphics. See example usage in introprog.examples.TestBlockGame

A class for creating games with block-based graphics. See example usage in introprog.examples.TestBlockGame

Value parameters

background

the color used when clearing pixels

blockSize

the side of each square block in pixels

dim

the (width, height) of the window in number of blocks

framesPerSecond

the desired update rate in the gameLoop

messageAreaBackground

the color of the message area background

messageAreaHeight

the height in pixels of the message area

title

the title of the window

Attributes

Constructor

Create a new game.

Source
BlockGame.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Dialog

A module with utilities for creating standard GUI dialogs.

A module with utilities for creating standard GUI dialogs.

Attributes

Source
Dialog.scala
Supertypes
class Object
trait Matchable
class Any
Self type
Dialog.type
object IO

A module with input/output operations from/to the underlying file system.

A module with input/output operations from/to the underlying file system.

Attributes

Source
IO.scala
Supertypes
class Object
trait Matchable
class Any
Self type
IO.type
object Image

Companion object to create Image instances.

Companion object to create Image instances.

Attributes

Companion
class
Source
Image.scala
Supertypes
class Object
trait Matchable
class Any
Self type
Image.type
class Image(val underlying: BufferedImage)

Image represents pixel arrays backed by underlying java.awtimage.BufferedImage

Image represents pixel arrays backed by underlying java.awtimage.BufferedImage

Attributes

Companion
object
Source
Image.scala
Supertypes
class Object
trait Matchable
class Any
object PixelWindow

A module with utilities for event handling in PixelWindow instances.

A module with utilities for event handling in PixelWindow instances.

Attributes

Companion
class
Source
PixelWindow.scala
Supertypes
class Object
trait Matchable
class Any
Self type
class PixelWindow(val width: Int, val height: Int, val title: String, val background: Color, val foreground: Color)

A window with a canvas for pixel-based drawing. Y-coordinates are increasing downwards.

A window with a canvas for pixel-based drawing. Y-coordinates are increasing downwards.

Value parameters

background

the color used when clearing pixels

foreground

the foreground color, default color in drawing operations

height

number of vertical pixels

title

the title of the window

width

the number of horizontal pixels

Attributes

Constructor

Create a new window for pixel-based drawing.

Companion
object
Source
PixelWindow.scala
Supertypes
class Object
trait Matchable
class Any
object Swing

A module with Swing utilities used by introprog.PixelWindow.

A module with Swing utilities used by introprog.PixelWindow.

Attributes

Source
Swing.scala
Supertypes
class Object
trait Matchable
class Any
Self type
Swing.type