diff --git a/sample/bundle/.gitignore b/sample/bundle/.gitignore new file mode 100644 index 0000000..4c48eaf --- /dev/null +++ b/sample/bundle/.gitignore @@ -0,0 +1,2 @@ +/build +/bundles diff --git a/sample/bundle/build.gradle b/sample/bundle/build.gradle new file mode 100644 index 0000000..8c49192 --- /dev/null +++ b/sample/bundle/build.gradle @@ -0,0 +1,7 @@ +apply plugin: com.soywiz.korge.gradle.KorgeGradlePlugin + +korge { + id = "com.example.bundle" + targetDefault() + bundle("https://github.com/korlibs/korge-free-assets.git::space-shooter-redux::531e1bd6a588358266f1815daa143bd057ed6841##b31b6f1e1f4b96209ec22dc422fa95b2e77173736a093db0aeeb7ee50a937e16") +} diff --git a/sample/bundle/src/commonMain/kotlin/main.kt b/sample/bundle/src/commonMain/kotlin/main.kt new file mode 100644 index 0000000..fcb18d2 --- /dev/null +++ b/sample/bundle/src/commonMain/kotlin/main.kt @@ -0,0 +1,8 @@ +import com.soywiz.korge.* +import com.soywiz.korim.color.* +import spaceredux.* + +suspend fun main() = Korge(width = 512, height = 512, bgcolor = Colors["#2b2b2b"]) { + //spaceShooterRedux.putBackground(SpaceShooterReduxBackground.Type.BLUE, speedX = 2.0, speedY = 1.0) + spaceShooterRedux.putDemoCode() +} diff --git a/sample/plugin/.gitignore b/sample/plugin/.gitignore index 796b96d..4c48eaf 100644 --- a/sample/plugin/.gitignore +++ b/sample/plugin/.gitignore @@ -1 +1,2 @@ /build +/bundles