lavamaze
scala-js-games
lavamaze | scala-js-games | |
---|---|---|
1 | 1 | |
2 | 107 | |
- | - | |
2.7 | 10.0 | |
7 months ago | over 6 years ago | |
Scala | Scala | |
- | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
lavamaze
-
Show HN: Simple games ported to Scala 3 – Try them in the browser
If you're not using macros, moving from Scala 2 to 3 is pretty easy.
I have a bunch of 2d games I use in programmable learning environments. This is the commit that did a lot of the shifting from 3 to 3.0.0-RC1
https://github.com/wbillingsley/lavamaze/commit/0d9aca52e8e8...
A lot of it was just trivia like "it's required to put parentheses around lambda function parameters now", and "if the function is declared with an empty arg list () rather than no arg list, you have to call it with an empty arg list rather than no arg list".
If I recall, there's a compiler plugin they put out that could automatically make many of those changes, but I found it took little enough time just to do them manually that investigating the plugin wasn't necessary.
An example of one of the programmable games in action:
scala-js-games
-
Show HN: Simple games ported to Scala 3 – Try them in the browser
Well, given that I haven't refactored the code to take full advantage of scala3, the changes are mostly on the build scripts, which is very nice because the old repo likely used scala 2.10 (or 2.11).
The only required syntax change was related to https://docs.scala-lang.org/scala3/reference/dropped-feature... (2 minor occurrences).
Original sources at https://github.com/lihaoyi/scala-js-games
What are some alternatives?
scala-js-games - Simple games ported to Scala.js (Scala 3)
scala3-migrate - A tool to help migrating from Scala 2 to Scala 3
sbt-ci-release - sbt plugin to automate Sonatype releases from GitHub Actions
Laminar - Simple, expressive, and safe UI library for Scala.js
slinky - Write Scala.js React apps just like you would in ES6
scalajs-react - Facebook's React on Scala.JS