Skip to content
/ ccvaderz Public

Cross-compiled Space Invaders in Scala for JVM and JavaScript

License

Notifications You must be signed in to change notification settings

vydra/ccvaderz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Copyright David Vydra

Cross-compiled Space Invaders in Scala for JVM, JS. Looking into Android as well.

Project cloned from https://github.com/scala-js/scalajs-cross-compile-example

Why

Processing - https://processing.org - is a well-known library for graphics work. It has a lively community and lots of training resources.

ScalaJS gives us the ability to use a modern type-safe language and still ship the game on HTML5 canvas.

Developing

Install ScalaIde (Eclipse) - http://scala-ide.org

Install sbt build tool and install the Eclipse Plugin for sbt. - http://www.scala-sbt.org/download.html

Run 'sbt eclipse' - this will create 2 eclipse projects. Open both projects in Eclipse.

In JVM, you can run Main.scala as Scala Application from Eclipse, or 'sbt vaderzJVM/run'

To run JS, run 'sbt ~fastOptJS' and then open 'file:////ccvaderz/js/target/scala-2.11/classes/index-fastopt.html in your web browser.

About

Cross-compiled Space Invaders in Scala for JVM and JavaScript

Resources

License

Stars

Watchers

Forks

Packages

No packages published