Skip to content

Commit

Permalink
swingio 😳
Browse files Browse the repository at this point in the history
  • Loading branch information
TheDrawingCoder-Gamer committed Mar 12, 2023
1 parent dccec84 commit 46c2ff4
Show file tree
Hide file tree
Showing 8 changed files with 942 additions and 42 deletions.
291 changes: 263 additions & 28 deletions art/glooga.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added art/sloshingmachine.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 13 additions & 3 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import java.nio.file.Files

val scala3Version = "3.2.0"
val scala3Version = "3.2.2"

ThisBuild / scalaVersion := scala3Version
ThisBuild / scalacOptions += "-old-syntax"
Expand Down Expand Up @@ -32,7 +32,17 @@ lazy val swing = project
libraryDependencies += "org.typelevel" %% "cats-effect" % "3.4.8",

)

lazy val swingio = project
.in(file("swingio"))
.dependsOn(core.jvm)
.settings(
name := "splooge_io",
version := "0.1.0-SNAPSHOT",
scalacOptions += "-source:future",
libraryDependencies += "io.github.thedrawingcoder-gamer" %% "swing-io" % "0.1-066ba2a-SNAPSHOT",
libraryDependencies += "org.typelevel" %% "cats-effect" % "3.4.8",
Compile / resourceDirectory := file("resources")
)
val webTarget = settingKey[File]("webTarget")
val tearDownWeb = TaskKey[Unit]("tearDownWeb")
val linkJSDir = TaskKey[File]("linkJSDir")
Expand Down Expand Up @@ -88,5 +98,5 @@ lazy val web = project
}
)
lazy val root = project
.aggregate(core.jvm, swing)
.aggregate(core.jvm, swing, swingio)

11 changes: 0 additions & 11 deletions core/js/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,7 @@ object Mains {
new MainBuilder("Sloshing Machine") {
Default ++= AllGames
Named("Grizzco") ++= NewGames
Named("Neo") += S3Custom
Named("Neo") ++= OldGames
Named("Kensa") += Splatoon2
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ import cats.effect.*
trait Image {
def width: Int
def height: Int
/**
* Consumes the image
*/
def getCanvas(): Canvas
}
object Image extends ImageFactory
Expand Down
Loading

0 comments on commit 46c2ff4

Please sign in to comment.