|
|
@ -8,7 +8,7 @@ import org.jetbrains.compose.demo.falling.Game |
|
|
|
import androidx.compose.runtime.remember |
|
|
|
import androidx.compose.runtime.remember |
|
|
|
import kotlinx.browser.window |
|
|
|
import kotlinx.browser.window |
|
|
|
import org.jetbrains.compose.web.css.Style |
|
|
|
import org.jetbrains.compose.web.css.Style |
|
|
|
ymport org.jetbrains.compose.web.ui.Styles |
|
|
|
import org.jetbrains.compose.web.ui.Styles |
|
|
|
|
|
|
|
|
|
|
|
class JsGame : Game() { |
|
|
|
class JsGame : Game() { |
|
|
|
override fun now() = window.performance.now().toLong() |
|
|
|
override fun now() = window.performance.now().toLong() |
|
|
|