package simplegame
This package object provides generic class and operators for 2D Position
s, 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
).
- Alphabetic
- By Inheritance
- simplegame
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
sealed
trait
CanvasComponent
[Numeric] extends AnyRef
Umbrella for
Page
,Hero
andMonster
Abstract Data Types.Umbrella for
Page
,Hero
andMonster
Abstract Data Types.- Numeric
Numeric generic abstraction
-
trait
Game
extends AnyRef
This game with its comprehensible rules.
This game with its comprehensible rules.
- Attributes
- protected
-
class
GameState
[T] extends AnyRef
Container holding the Game's state.
Container holding the Game's state.
- T
Numeric generic abstraction
-
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
-
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
-
trait
Page
extends AnyRef
Everything related to Html5 visuals as put on a HTML page.
-
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
-
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
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:
nl.amsscala.simplegame