#cplusplus
The LEGO Island portable project recreates the original LEGO Island game (version 1.1, English) so it can run on many platforms like Windows, Linux, macOS, and even the web, without changing the gameplay or adding new features. It replaces Windows-only parts with cross-platform libraries like SDL3 to make the game work smoothly on different systems. You need an original copy of LEGO Island to use it, and while developer builds exist, user-friendly versions are still being made. This means you can enjoy the classic LEGO Island game on modern devices and operating systems that it wasn’t originally designed for, preserving the nostalgic experience across platforms[2].
https://github.com/isledecomp/isle-portable
🚀 Вышел стабильный JavaScript движок от Google для Android
Новая стабильная библиотека Jetpack JavaScript Engine позволит разработчикам выполнять JS код в изолированной и ограниченной среде.
class MainActivity : ComponentActivity() {
// Теперь nullable, без lateinit
private var jsSandbox: JavaScriptSandbox? = null
private var jsIsolate: JavaScriptIsolate? = null
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
if (!JavaScriptSandbox.isSupported()) {
Log.e("JS", "JavaScriptSandbox не поддерживается")
return
}
lifecycleScope.launch {
// Создаём и сохраняем в nullable-поле
jsSandbox = JavaScriptSandbox
.createConnectedInstanceAsync(applicationContext)
.await()
jsIsolate = jsSandbox?.createIsolate()
// При выполнении гарантируем, что jsIsolate != null
val result: String = jsIsolate
?.evaluateJavaScriptAsync(JS_SCRIPT_SCRING)
?.await()
?: "Ошибка: isolate не инициализирован"
Log.d("JS", "Результат выполнения: $result")
}
}
override fun onDestroy() {
super.onDestroy()
// Закрываем только если не null
jsIsolate?.close()
jsSandbox?.close()
}
}
#jetpack#js