For any questions, feedback or suggestions:
By installing CosPlay you are agreeing to Apache 2.0 License terms & conditions.
CosPlay & JDK 11+
It is recommended to use JDK 11+ when running and developing CosPlay applications. Note that JavaFX, used internally by CosPlay, is a modularized library and produces a warning every time CosPlay runtime starts complaining that it is started from the unnamed module (since Scala does not support JPMS). Consult the following Java and Scala compatibility table for support JDK versions.
Note also that default
build.sbt assumes that current JDK does NOT bundle JavaFX and JavaFX library is attached to the classpath by SBT. Using JDK that bundles JavaFX can lead to undefined behaviour.
To start building games with CosPlay add the following Maven dependency to your Scala project. CosPlay consists of a single module that includes game engine APIs, prefabs, as well as all examples and demo games.
Latest version is
libraryDependencies += "org.cosplayengine" % "cosplay" % "0.9.2"
def ivyDeps = Agg( ivy"org.cosplayengine::cosplay:0.9.2" )
<dependency> <groupId>org.cosplayengine</groupId> <artifactId>cosplay</artifactId> <version>0.9.2</version> </dependency>
If you want to contribute to the project you need to get the full developer snapshot from GitHub:
$ git clone https://github.com/nivanov/cosplay.git
You can use either Maven or SBT to build CosPlay. You can open
pom.xml using any IDEs or use it with any editor of your choice to develop CosPlay. You can use SBT
build.sbt to compile, build and create Scaladoc docs.
To build an all-inclusive single JAR that you can use for native terminal testing run:
$ sbt clean package
$ mvn clean package
To build and check Scaladoc run SBT:
$ sbt doc