Browse Source

Move falling balls to 0.5.0-build270

pull/952/head
Nikolay Igotti 3 years ago
parent
commit
7798c83da2
  1. 4
      examples/falling_balls/build.gradle.kts
  2. 10
      examples/falling_balls/src/main/kotlin/main.kt

4
examples/falling_balls/build.gradle.kts

@ -4,9 +4,9 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
// __KOTLIN_COMPOSE_VERSION__
kotlin("jvm") version "1.5.10"
kotlin("jvm") version "1.5.21"
// __LATEST_COMPOSE_RELEASE_VERSION__
id("org.jetbrains.compose") version "0.5.0-build229"
id("org.jetbrains.compose") version "0.5.0-build270"
}
group = "me.user"

10
examples/falling_balls/src/main/kotlin/main.kt

@ -1,10 +1,16 @@
package org.jetbrains.compose.demo.falling
import androidx.compose.desktop.Window
import androidx.compose.ui.ExperimentalComposeUiApi
import androidx.compose.ui.unit.IntSize
import androidx.compose.ui.unit.dp
import androidx.compose.ui.window.WindowSize
import androidx.compose.ui.window.WindowState
import androidx.compose.ui.window.singleWindowApplication
fun main() =
Window(title = "Falling Balls", size = IntSize(800, 800)) {
@OptIn(ExperimentalComposeUiApi::class)
fun main() = singleWindowApplication(
title = "Falling Balls", state = WindowState(size = WindowSize(800.dp, 800.dp))) {
FallingBallsGame()
}

Loading…
Cancel
Save