diff --git a/build.sbt b/build.sbt index 5164d39..65ad15b 100644 --- a/build.sbt +++ b/build.sbt @@ -2,6 +2,7 @@ import scala.language.postfixOps import Misc._ import Dependencies._ import org.typelevel.scalacoptions.ScalacOptions +import indigoplugin.IndigoOptions Global / onChangedBuildSource := ReloadOnSourceChanges @@ -77,15 +78,14 @@ lazy val sandbox = .settings( neverPublish, commonSettings, - name := "sandbox", - showCursor := true, - title := "Sandbox", - gameAssetsDirectory := "assets", - disableFrameRateLimit := false, - electronInstall := indigoplugin.ElectronInstall.Latest, + name := "sandbox", libraryDependencies ++= Shared.indigo.value, libraryDependencies ++= Shared.indigoExtras.value, - libraryDependencies ++= Shared.indigoJson.value + libraryDependencies ++= Shared.indigoJson.value, + indigoOptions := + IndigoOptions.defaults + .withTitle("Sandbox") + .withAssetDirectory(os.RelPath.rel / "sandbox" / "assets") ) // Shader diff --git a/examples/indigo-shader-scala-cli/SimpleVoronoi.scala b/examples/indigo-shader-scala-cli/SimpleVoronoi.scala index a7608c9..594237a 100644 --- a/examples/indigo-shader-scala-cli/SimpleVoronoi.scala +++ b/examples/indigo-shader-scala-cli/SimpleVoronoi.scala @@ -1,9 +1,9 @@ -//> using scala "3.3.0" +//> using scala "3.3.1" //> using platform "js" -//> using jsVersion "1.13.1" +//> using jsVersion "1.13.2" -//> using lib "io.indigoengine::ultraviolet::0.1.2" -//> using lib "io.indigoengine::indigo::0.15.0-RC1" +//> using lib "io.indigoengine::ultraviolet::0.1.3" +//> using lib "io.indigoengine::indigo::0.15.0" import indigo.* @@ -16,6 +16,7 @@ object SimpleVoronoi extends IndigoShader: GameConfig.default .withFrameRateLimit(FPS.`60`) .withViewport(400, 400) + .noResize val assets: Set[AssetType] = Set() val channel0: Option[AssetPath] = None diff --git a/examples/indigo-shader-scala-cli/app/index.html b/examples/indigo-shader-scala-cli/app/index.html index bbe9de3..836c9d4 100644 --- a/examples/indigo-shader-scala-cli/app/index.html +++ b/examples/indigo-shader-scala-cli/app/index.html @@ -23,7 +23,6 @@
-