https://github.com/wiringbits/scala-js-games Skip to content Sign up * Product + Features + Mobile + Actions + Codespaces + Copilot + Packages + Security + Code review + Issues + Integrations + GitHub Sponsors + Customer stories * Team * Enterprise * Explore + Explore GitHub + Learn and contribute + Topics + Collections + Trending + Skills + GitHub Sponsors + Open source guides + Connect with others + The ReadME Project + Events + Community forum + GitHub Education + GitHub Stars program * Marketplace * Pricing + Plans + Compare plans + Contact Sales + Education [ ] * # In this repository All GitHub | Jump to | * No suggested jump to results * # In this repository All GitHub | Jump to | * # In this organization All GitHub | Jump to | * # In this repository All GitHub | Jump to | Sign in Sign up {{ message }} wiringbits / scala-js-games Public * Notifications * Fork 1 * Star 24 Simple games ported to Scala.js (Scala 3) scalajs-games.wiringbits.net/ License MIT license 24 stars 1 fork Star Notifications * Code * Issues 0 * Pull requests 0 * Actions * Projects 0 * Wiki * Security * Insights More * Code * Issues * Pull requests * Actions * Projects * Wiki * Security * Insights wiringbits/scala-js-games This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository. master Switch branches/tags [ ] Branches Tags Could not load branches Nothing to show {{ refName }} default View all branches Could not load tags Nothing to show {{ refName }} default View all tags 1 branch 0 tags Code Latest commit @AlexITC AlexITC Temporary disable a CI step ... 1cd6655 Jun 26, 2022 Temporary disable a CI step 1cd6655 Git stats * 15 commits Files Permalink Failed to load latest commit information. Type Name Latest commit message Commit time .github/workflows Temporary disable a CI step Jun 26, 2022 project Add Scala.js skeleton Jun 26, 2022 src/main/scala/scalajsGames Update index to match the original website Jun 26, 2022 .gitignore Update ignored files Jun 26, 2022 .nvmrc Initialize project Jun 26, 2022 .scalafmt.conf Add Scala.js skeleton Jun 26, 2022 .sdkmanrc Add .sdkmanrc Jun 26, 2022 LICENSE Create LICENSE Jun 26, 2022 README.md Add README.md Jun 26, 2022 build.sbt Add Scala.js skeleton Jun 26, 2022 favicon.svg Initialize project Jun 26, 2022 index.html Update index to match the original website Jun 26, 2022 main.js Add Scala.js skeleton Jun 26, 2022 package-lock.json Initialize project Jun 26, 2022 package.json Initialize project Jun 26, 2022 style.css Asteroids game works! Jun 26, 2022 vite.config.js Add Scala.js skeleton Jun 26, 2022 View code Scala.js Games (Scala 3) How to build README.md 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 Scala.js cross compiled to run in the browser targeting the HTML5 Canvas. The original games can be found here and targeting Scala 2. Live demo 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. How to build * Install sdkman - or, make sure to pick the correct java version (see .sdkmanrc). * Install nvm - or, make sure to pick the correct node version (see .nvmrc). * Install sbt. * Clone the repo. * Run sbt fastLinkJS (just to make sure the app compiles). * Run npm install to install the js dependencies. * Run npm run dev to launch the dev server, then, open http:// localhost:3000 to load the app. * Run npm run build to prepare the production build. About Simple games ported to Scala.js (Scala 3) scalajs-games.wiringbits.net/ Topics scalajs scala3 Resources Readme License MIT license Stars 24 stars Watchers 1 watching Forks 1 fork Releases No releases published Packages 0 No packages published Languages * Scala 88.8% * HTML 7.4% * JavaScript 2.9% * CSS 0.9% * (c) 2022 GitHub, Inc. * Terms * Privacy * Security * Status * Docs * Contact GitHub * Pricing * API * Training * Blog * About You can't perform that action at this time. You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.