trait Page extends AnyRef
Everything related to Html5 visuals as put on a HTML page.
- Alphabetic
- By Inheritance
- Page
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
- def +(other: String): String
- def ->[B](y: B): (Page, B)
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- val canvas: Canvas
- def canvasDim[D](cnvs: Canvas): Position[D]
- def center(cnvs: Canvas): Position[Int]
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
- val ctx: CanvasRenderingContext2D
- def ensuring(cond: (Page) ⇒ Boolean, msg: ⇒ Any): Page
- def ensuring(cond: (Page) ⇒ Boolean): Page
- def ensuring(cond: Boolean, msg: ⇒ Any): Page
- def ensuring(cond: Boolean): Page
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
- def formatted(fmtstr: String): String
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
def
imageFuture(src: String): Future[HTMLImageElement]
Convert the onload event of an img tag into a Future
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
def
render[T](gs: GameState[T]): GameState[T]
Draw everything accordingly the given
GameState
.Draw everything accordingly the given
GameState
.Order: Playground, Monster, Hero, monstersHitTxt, explainTxt/gameOverTxt
- gs
Game state to make the graphics.
- returns
The same gs
-
def
resetCanvasWH[P](cnvs: Canvas, pos: Position[P])(implicit arg0: Numeric[P]): Unit
Set canvas dimension
Set canvas dimension
- P
Numeric generic type
- cnvs
Canvas element
- pos
Dimension in
Position[P]
- Annotations
- @inline()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
- def →[B](y: B): (Page, B)
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