Packages

  • package root

    This is the documentation for a simple HTML5 Canvas game written in Scala, and cross compiled to run in the browser targeting the HTML5 Canvas.

    This is the documentation for a simple HTML5 Canvas game written in Scala, and cross compiled to run in the browser targeting the HTML5 Canvas.

    See also:

    Package structure

    Notable packages include:

    Definition Classes
    root
  • package nl
    Definition Classes
    root
  • package amsscala
    Definition Classes
    nl
  • package simplegame

    This package object provides generic class and operators for 2D Positions, as well as dealing with 2D areas.

    This package object provides generic class and operators for 2D Positions, as well as dealing with 2D areas.

    The package includes externally this package object the main traits Page, Game and class GameState as well for the auxiliary trait CanvasComponent (overarching for Hero, Monster and Playground).

    Definition Classes
    amsscala
  • CanvasComponent
  • Game
  • GameState
  • Hero
  • Monster
  • Page
  • Playground
  • Position
  • SimpleCanvasGame
p

nl.amsscala

simplegame

package simplegame

This package object provides generic class and operators for 2D Positions, as well as dealing with 2D areas.

The package includes externally this package object the main traits Page, Game and class GameState as well for the auxiliary trait CanvasComponent (overarching for Hero, Monster and Playground).

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. simplegame
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. sealed trait CanvasComponent [Numeric] extends AnyRef

    Umbrella for Page, Hero and Monster Abstract Data Types.

    Umbrella for Page, Hero and Monster Abstract Data Types.

    Numeric

    Numeric generic abstraction

  2. trait Game extends AnyRef

    This game with its comprehensible rules.

    This game with its comprehensible rules.

    Attributes
    protected
  3. class GameState [T] extends AnyRef

    Container holding the Game's state.

    Container holding the Game's state.

    T

    Numeric generic abstraction

  4. final class Hero [H] extends CanvasComponent[H]

    CanvasComponent's implementation for to visual Hero sprite on the canvas.

    CanvasComponent's implementation for to visual Hero sprite on the canvas.

    H

    Numeric generic abstraction

  5. final class Monster [M] extends CanvasComponent[M]

    CanvasComponent's implementation for to visual Monster sprite on the canvas.

    CanvasComponent's implementation for to visual Monster sprite on the canvas.

    M

    Numeric generic abstraction

  6. trait Page extends AnyRef

    Everything related to Html5 visuals as put on a HTML page.

  7. final class Playground [G] extends CanvasComponent[G]

    CanvasComponent's implementation for to visual back ground on the canvas.

    CanvasComponent's implementation for to visual back ground on the canvas.

    G

    Numeric generic abstraction

  8. case class Position [P](x: P, y: P)(implicit evidence$1: Numeric[P]) extends Product with Serializable

    Generic base class Position, holding the two ordinates

    Generic base class Position, holding the two ordinates

    P

    Numeric type

    x

    The abscissa

    y

    The ordinate

Value Members

  1. object GameState

    Companion object holding static constant definitions.

  2. object Hero

    Companion object of class Hero.

  3. object Monster

    Companion object of class Monster

  4. object SimpleCanvasGame extends JSApp with Game with Page

    Main entry point for application start

Inherited from AnyRef

Inherited from Any

Ungrouped