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