Text-based games are one of the oldest versions of interactive fiction. In their simplest form, the user finds themselves in a dark room that they must escape. arandomroom is a minimalist immersive text-based game where every story unfolds with a touch of unpredictability. Inspired by the simplicity of classics like A Dark Room, it leverages AI to craft unique, dynamic narratives for each playthrough, giving users the freedom to do as they wish. Each journey is a blend of exploration, strategy, and the unexpected, ensuring no two experiences are identical. Built with compose multiplatform, for both Android and iOS, this project also explores the possibility of building minimalistic mobile games, without the use of complex engines. Dive in and see where randomness takes you! Welcome to
PS: unmute the video
demo.mp4
You need a Mac with macOS to run iOS-specific code on simulated or real devices. You will also need AndroidStudio, XCode, JDK, KMP plugin and Kotlin plugin. Before downloading the project, please follow the set up environment guide.
Create a new Gemini Api Key here and pick a model from here. Create a local.properties file in the project and add the API key and the model variant name as follows:
apiKey=your-generated-api-key
model=gemini-1.5-flash
You are now ready to follow the run application guide for either Android or iOS!
-
Kotlin Multiplatform
Enables sharing code across iOS, Android, JVM, Web, and native platforms. -
Compose Multiplatform
Declarative UI framework for building cross-platform apps in Kotlin. -
Gemini SDK
SDK for building Gemini protocol-based applications built for KMP. -
Kotlinx-serialization
Multi-format reflectionless serialization -
Koin
Lightweight dependency injection framework for Kotlin projects. -
Room
Abstraction layer over SQLite for simplified database interactions. -
SQLite
Lightweight embedded relational database for local data storage. -
Napier
Multiplatform logging library for Kotlin projects. -
Build Konfig
Gradle plugin for type-safe configuration in multiplatform projects.
This project is licensed under the MIT License.
