Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix korge-sandbox not compiling #500

Merged
merged 3 commits into from
Jun 29, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/TEST.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:
- { name: Grant execute permission for gradlew, run: chmod +x gradlew }
- { name: Start gradle, run: ./gradlew }
- { name: Testing JVM, run: ./gradlew jvmTest -i }
- { name: Check sandbox compiles, run: "./gradlew :korge-sandbox:jvmJar" }

test-js:
timeout-minutes: 120
Expand Down
4 changes: 2 additions & 2 deletions korge-sandbox/src/commonMain/kotlin/samples/MainSound.kt
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package samples

import com.soywiz.korge.scene.Scene
import com.soywiz.korge.view.Container
import com.soywiz.korge.view.SContainer
import com.soywiz.korau.sound.*
import com.soywiz.korio.file.std.*

class MainSound : Scene() {
override suspend fun Container.sceneMain() {
override suspend fun SContainer.sceneMain() {
val music = resourcesVfs["sounds/Snowland.mp3"].readMusic()
// val music = resourcesVfs["sounds/Deus_Ex_Tempus.ogg"].readMusic()
val channel = music.play()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -387,4 +387,3 @@ class AnLibrary(val context: Context, val width: Int, val height: Int, val fps:

fun createMainTimeLine() = createMovieClip(0)
}