Skip to content

Commit cade0b8

Browse files
feature: Release V 2.0 minor improvements.
1 parent 3b117bb commit cade0b8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ This quite super simple game is heavily über engineered. It's certainly not the
2020
1. Exhaustive use of a variety of Scala features, e.g.:
2121
* `Traits`, (`case`) `Class`es and `Object`s (singletons)
2222
* `Future`s sane way to dramatically reduce latency in web requests
23-
* [Generic[T] objects](https://en.wikipedia.org/wiki/Generic_programming) (even in the frenzied Ough).
23+
* [Generic[T] programming](https://en.wikipedia.org/wiki/Generic_programming) (shameless, even in the frenzied Ough).
2424
* [Algebraic Data Types](https://en.wikipedia.org/wiki/Algebraic_data_type)
2525
* [Pattern matching](https://en.wikipedia.org/wiki/Pattern_matching)
2626
* [Lazy evaluation](https://en.wikipedia.org/wiki/Lazy_evaluation)

src/main/scala-2.12/nl/amsscala/simplegame/Page.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ import scalatags.JsDom.all._
99
/** Everything related to Html5 visuals as put on a HTML page. */
1010
trait Page { //Create canvas with a 2D processor
1111
val canvas = dom.document.createElement("canvas").asInstanceOf[dom.html.Canvas]
12-
private [simplegame] val ctx = canvas.getContext("2d").asInstanceOf[dom.CanvasRenderingContext2D]
12+
private val ctx = canvas.getContext("2d").asInstanceOf[dom.CanvasRenderingContext2D]
1313

14-
private lazy val postponed = // Create the HTML body element with content
14+
private lazy val postponed: Unit = // Create the HTML body element with content
1515
dom.document.body.appendChild(div(cls := "content", style := "text-align:center; background-color:#3F8630;", canvas,
1616
a(href := "http://www.lostdecadegames.com/how-to-make-a-simple-html5-canvas-game/",
1717
title := s"This object code is compiled with type parameter ${genericDetect(0D.asInstanceOf[SimpleCanvasGame.T])}.",

0 commit comments

Comments
 (0)