scala-js-games
lavamaze
scala-js-games | lavamaze | |
---|---|---|
3 | 1 | |
64 | 2 | |
- | - | |
0.0 | 2.7 | |
about 1 year ago | 6 months ago | |
Scala | Scala | |
MIT License | - |
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.
scala-js-games
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:
What are some alternatives?
scalajs-react - Facebook's React on Scala.JS
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
scala-js-games - Some simple games ported to Scala-Js
slinky - Write Scala.js React apps just like you would in ES6
Laminar - Simple, expressive, and safe UI library for Scala.js