Skip to content

A trading card game showcasing Kotlin Multiplatform and Compose

License

Notifications You must be signed in to change notification settings

dbaelz/CompCardero

Repository files navigation

CompCardero

CompCardero is a simple card game and sample for Kotlin Multiplatform and Compose. It's developed for Android, iOS and desktop.

Setting up the environment

See the documentation of Kotlin Multiplatform for the required steps.

Project structure

The project consists of the following modules:

  • composeApp
    • commonMain: Common logic for Android, iOS and desktop.
    • androidMain: Specific code to build the Android app
    • desktopMain: The desktop application
    • iOSMain: Code specific to the iOS app
  • iosApp: A Xcode project for the iOS app

CompCardero is built with:

...and many more

Play the Game

The game itself is a simple deck/trading card game.

  • You start with a deck of cards, some hand cards, current/max energy (blue) and health (green)
  • Playing a card costs energy (blue circle). A card can attack (red) the enemy and heal (green) yourself
  • Every round your current energy and max energy increases
  • Every round you can play cards until no energy is left
  • The human player and the bot play in turns until one has zero health You can configure the game settings like hand size, energy and health when starting a new game

Cards

The cards are generated with Stable Diffusion 1.5

screenshot of the game on desktop

Contribution

Feel free to contribute via pull requests.

License

The project is licensed by the Apache 2 license.

About

A trading card game showcasing Kotlin Multiplatform and Compose

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published