Scala-Js Games

This is a collection of games ported from Java to Scala-Js: 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 Java/Swing. Although this is basically a complete rewrite, the user-facing side of the game should be exactly the same.

The games are, in order:

Asteroids : shoot down the asteroid swarms and avoid getting hit!

: 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.

: 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!

: 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!

: 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.

: 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.