Skip to content

Example template for a CodeCraft program that will run in the browser.

Notifications You must be signed in to change notification settings

LoganCSC/codecraft-js-template

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CodeCraft.js Example

Example template for a CodeCraft application that uses Scala.js to target the browser. This can be a useful as a workaround in cases where the OpenGL graphics don't display properly on the JVM.

How to build

Install sbt if you don't have it.

Running sbt fastOptJS will compile and generate the JavaScript. To start the program, open/refresh file:///$PROJECT_PATH/target/scala-2.11/classes/index.html in a browser (Chrome tends to work best).

IDE Setup

IntelliJ

You need to have the Scala plugin installed.
FileNewProject from Existing Sources.. → select root directory → Import project from external modelSBTNext → keep default options unless you have a reason to change them → Finish

Eclipse

Presumably this is relatively straightforward as well.

About

Example template for a CodeCraft program that will run in the browser.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Scala 58.3%
  • HTML 41.7%