Scala.js Games (Scala 3)
This is a collection of games ported from Scala 2 to Scala.js (Scala 3): the
source for each game is written in Scala, and
cross compiled to run in the browser targeting the
HTML5 Canvas. The original games can be found
here and targeting Scala 2
The games are, in order:
- Asteroids: shoot down the asteroid swarms and avoid getting hit!
- Astrolander: bring your lander to a a gentle landing on flat ground before you run out of fuel.
- Snake: eat apples to grow long and don't crash into walls!
- Pong: outsmart your AI opponent to get the ball past his paddle (right) to score points!
- Brick: use your paddle to bounce the ball up, destroying all the bricks before you run out of balls.
- Tetris: collect points by clearing rows and don't let the screen fill with blocks.
The controls are generally up-down-left-right and spacebar; they
aren't very complex games. Click on a game to start playing and click
somewhere else to pause it.