Skip to content

About

A minimalist immersive text-based cross-platform game

Resources

Stars

29 stars

Watchers

1 watching

Forks

Repository files navigation

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

logo_transp

Demo

PS: unmute the video

demo.mp4

How to run the project

Prerequisites

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.

Set up a Gemini API key and pick a model model

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!

Built using

  1. Kotlin Multiplatform
    Enables sharing code across iOS, Android, JVM, Web, and native platforms.

  2. Compose Multiplatform
    Declarative UI framework for building cross-platform apps in Kotlin.

  3. Gemini SDK
    SDK for building Gemini protocol-based applications built for KMP.

  4. Kotlinx-serialization
    Multi-format reflectionless serialization

  5. Koin
    Lightweight dependency injection framework for Kotlin projects.

  6. Room
    Abstraction layer over SQLite for simplified database interactions.

  7. SQLite
    Lightweight embedded relational database for local data storage.

  8. Napier
    Multiplatform logging library for Kotlin projects.

  9. Build Konfig
    Gradle plugin for type-safe configuration in multiplatform projects.

Architecture

arandomroom

License

This project is licensed under the MIT License.

About

A minimalist immersive text-based cross-platform game

Resources

Stars

29 stars

Watchers

1 watching

Forks

Contributors

Languages