Nikolay Igotti
3 years ago
2 changed files with 10 additions and 4 deletions
@ -1,10 +1,16 @@ |
|||||||
package org.jetbrains.compose.demo.falling |
package org.jetbrains.compose.demo.falling |
||||||
|
|
||||||
import androidx.compose.desktop.Window |
import androidx.compose.desktop.Window |
||||||
|
import androidx.compose.ui.ExperimentalComposeUiApi |
||||||
import androidx.compose.ui.unit.IntSize |
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() = |
@OptIn(ExperimentalComposeUiApi::class) |
||||||
Window(title = "Falling Balls", size = IntSize(800, 800)) { |
fun main() = singleWindowApplication( |
||||||
|
title = "Falling Balls", state = WindowState(size = WindowSize(800.dp, 800.dp))) { |
||||||
FallingBallsGame() |
FallingBallsGame() |
||||||
} |
} |
||||||
|
|
||||||
|
Loading…
Reference in new issue