mirror of
https://github.com/jlengrand/korge-samples.git
synced 2026-03-10 08:31:18 +00:00
Bundle sample
This commit is contained in:
2
sample/bundle/.gitignore
vendored
Normal file
2
sample/bundle/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
/build
|
||||
/bundles
|
||||
7
sample/bundle/build.gradle
Normal file
7
sample/bundle/build.gradle
Normal file
@@ -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")
|
||||
}
|
||||
8
sample/bundle/src/commonMain/kotlin/main.kt
Normal file
8
sample/bundle/src/commonMain/kotlin/main.kt
Normal file
@@ -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()
|
||||
}
|
||||
1
sample/plugin/.gitignore
vendored
1
sample/plugin/.gitignore
vendored
@@ -1 +1,2 @@
|
||||
/build
|
||||
/bundles
|
||||
|
||||
Reference in New Issue
Block a user