Garden Memory Quest icon

Garden Memory Quest

Hot or Not
Garden Memory Quest

Description

Garden Memory Quest – Kotlin Android Memory Game Source Code

Garden Memory Quest is a complete Android memory matching game project developed using Kotlin, Java, and Jetpack Compose. Unlike games built with visual game engines, the core gameplay logic is implemented directly in Kotlin, allowing developers to inspect and modify the underlying mechanics.

The project includes a 4×4 card matching system, score and combo calculations, collectible coins, four power-up types, six visual themes, local statistics, daily rewards, audio controls, and Google Play Billing integration for in-app and subscription donations.

Project Architecture

The application is structured as an Android Studio Gradle project, with separate components for gameplay, home screen navigation, application data, audio management, and billing.

Core source files:

  • GameActivity.kt – Card matching engine, score calculation, turn management, power-up behavior, and game rendering.
  • HomeActivity.kt – Main menu, settings, shop, theme selection, statistics, and navigation.
  • AppData.kt – Theme palettes, local preferences, item definitions, and language resources.
  • GardenAudio.kt – Background music and sound effects.
  • androidstudio/ – Java-based donation screens and Google Play Billing integration.

The application uses Jetpack Compose and Compose Canvas for its game interface.

Memory Matching System

The game features 16 cards arranged in a 4×4 board. Players must identify eight matching pairs within a limited number of turns.

The Kotlin implementation manages card states, matching detection, scoring, turn limits, combo bonuses, coin rewards, and round completion.

Developers can modify card symbols, scoring formulas, turn limits, and gameplay behavior directly in the Kotlin source.

Power-Up and Coin Shop

Four power-ups are included:

  • Pair Hint – Highlights a matching pair.
  • Memory Peek – Temporarily reveals unmatched cards.
  • Extra Turns – Adds six turns.
  • Magic Match – Automatically completes a remaining pair.

Power-ups are purchased using coins earned through gameplay. Item prices and behavior can be modified in the project source.

Themes and Localization

The application includes six predefined themes: Light, Dark, Sweet, Forest, Ocean, and Galaxy.

Theme colors are managed through Kotlin palette definitions, making it possible to adjust the appearance without replacing entire screen layouts.

English and Vietnamese language resources are included.

Player Progress and Statistics

The project uses Android SharedPreferences to store game progress and settings locally.

Saved information includes best score, coin balance, statistics, item quantities, selected theme, language preferences, and daily reward information.

Google Play Billing Integration

The project includes Google Play Billing Library 7.1.1 with support for both one-time in-app purchases and subscription-based donations.

The Java billing components provide product configuration, product information queries, purchasing interfaces, and purchase callbacks.

Ten in-app purchase identifiers and five subscription identifiers are configured in Config.java.

Buyers must configure their own products in Google Play Console and verify transaction handling before releasing a modified application.

Development Specifications

  • Kotlin 1.9.24
  • Java 17
  • Jetpack Compose
  • Android Gradle Plugin 8.7.3
  • Gradle Wrapper 9.0.0
  • Compile SDK 36
  • Target SDK 36
  • Minimum SDK 24
  • Google Play Billing Library 7.1.1

Package Contents

  • Complete Android Studio project
  • Kotlin gameplay source code
  • Java billing integration source
  • Android resource files
  • Launcher icons
  • Music and sound effects
  • Gradle build configuration
  • Developer documentation PDF

Customization

Developers can modify gameplay logic, card symbols, turn limits, scoring calculations, power-up effects, coin prices, visual themes, translations, audio, launcher icons, application ID, and billing product configuration.

The project provides editable Android source code rather than a packaged visual-engine export.

Important Information

The project has been built and tested by its developer before distribution. Buyers should perform their own testing after changing project configuration, dependencies, or billing products.

Google Play Billing requires an appropriate Play Console setup. The included integration should be reviewed against current publishing requirements before release.

Features

  • Kotlin Game Logic – Editable memory matching engine implemented in Kotlin.
  • Jetpack Compose UI – Native Android interface using Compose and Canvas.
  • 4×4 Card Matching System – Eight matching pairs with shuffled card positions.
  • Turn Management – Configurable starting turns and round completion conditions.
  • Score and Combo System – Score calculation with consecutive-match bonuses.
  • Coin Economy – Earn coins and spend them on power-ups.
  • Four Power-Ups – Pair Hint, Memory Peek, Extra Turns, and Magic Match.
  • Six Visual Themes – Light, Dark, Sweet, Forest, Ocean, and Galaxy.
  • Daily Rewards – Local daily coin reward system.
  • Game Statistics – Tracks scores, matches, flips, combos, and player progress.
  • Local Data Storage – SharedPreferences integration.
  • Multilingual Interface – English and Vietnamese resources.
  • Audio System – SoundPool effects and MediaPlayer background music.
  • Google Play Billing 7.1.1 – IAP and subscription donation integration.
  • Configurable Billing Products – Ten in-app purchase IDs and five subscription IDs.
  • Android API 36 – Compile and target SDK configured to API 36.
  • Android Studio Project – Kotlin and Java source with Gradle build configuration.
  • Developer Documentation – Includes project setup and customization instructions.

Requirements

Development Environment

  • Android Studio compatible with the included project configuration.
  • JDK 17.
  • Android SDK Platform 36.
  • Android Gradle Plugin 8.7.3.
  • Gradle Wrapper 9.0.0, included in the project.
  • Kotlin 1.9.24.
  • Internet access for initial dependency downloads.

Android Requirements

  • Minimum SDK: API 24 (Android 7.0).
  • Target SDK: API 36.
  • Compile SDK: API 36.
  • An Android device or compatible emulator for testing.

Developer Knowledge

  • Basic Kotlin and Java.
  • Android Studio and Gradle project configuration.
  • Jetpack Compose for interface customization.

Billing Requirements

  • Google Play Console account for configuring donation products.
  • In-app purchase and subscription identifiers matching the application's configuration.
  • Appropriate Google Play Billing test setup.

Note: Developers should verify Android Gradle Plugin and Gradle compatibility in their own environment and check current Google Play Billing requirements before publishing.

Instructions

Opening the Project

  1. Extract the downloaded ZIP archive.
  2. Open Android Studio.
  3. Select Open and choose the GardenMemoryQuest project folder.
  4. Configure JDK 17 and install Android SDK Platform 36.
  5. Allow Android Studio to synchronize Gradle dependencies.
  6. Select a compatible Android device or emulator.
  7. Build and run the application.

Changing the Application ID

  1. Open app/build.gradle.kts.
  2. Update the applicationId inside defaultConfig.
  3. Update the namespace and source package names separately if required.
  4. Review Java/Kotlin imports and activity declarations after package refactoring.
  5. Synchronize Gradle and rebuild the application.

Customizing Gameplay

Open GameActivity.kt to modify the card matching logic.

Developers can adjust the card symbols, starting turn count, scoring formula, combo bonuses, coin rewards, and power-up behavior.

Changes to the board dimensions require updates to the deck structure, card positioning, hit detection, and rendering calculations.

Customizing Themes

Open AppData.kt.

Modify the existing theme palettes to change interface colors. Additional themes can be introduced by extending the ThemeStyle definitions and updating the theme selection interface.

Modifying the Coin Shop

Open AppData.kt and locate the shopItems() function.

Adjust the item names, descriptions, coin prices, and power-up definitions. Related gameplay effects are implemented in GameActivity.kt.

Replacing Audio

Open app/src/main/res/raw/.

Replace the appropriate sound effect or music files. Keep existing resource names for straightforward replacements, or update the corresponding resource references in GardenAudio.kt.

Changing the App Icon

Replace the launcher resources in the appropriate res/mipmap-* directories.

Review the adaptive icon configuration in res/mipmap-anydpi-v26/ and test the result on an Android device.

Configuring In-App Purchases and Subscriptions

  1. Open androidstudio/Config.java.
  2. Locate the in-app purchase and subscription product identifiers.
  3. Configure the corresponding products in your own Google Play Console account.
  4. Update product identifiers and adjust the donation interface as needed.
  5. Review BillingInApp.java, BillingSubs.java, and their purchase handling logic.
  6. Test product information, purchase flows, acknowledgements, and transaction handling using an appropriate Google Play test environment.

Building for Distribution

  1. Complete application customization.
  2. Synchronize Gradle and build the application.
  3. Test gameplay, settings, local storage, sound, and donations.
  4. Generate a signed Android App Bundle or APK.
  5. Verify the final release artifact before distribution.

Detailed instructions and project-specific file locations are included in the PDF documentation.

Authortuantran0117
CategoryApp Templates / Android
Price$94
Extended License$282
First ReleaseOct 18, 2026
Last UpdateOct 20, 2026
Files included.kt, .gradle.kts, .webp, .java, .xml
Operating systemsAndroid 7.0, Android 8.0, Android 9.0, Android 10.0, Android 11.0, Android 12.0, Android 13.0, Android 14.0, Android 15.0, Android 16.0
Programming languageJava, Kotlin

External listing. code.market does not sell this product and does not process payment for it. Pricing, payment, delivery, licensing, refunds, and support are handled by the third-party merchant on its own website. We may earn an affiliate commission from a referral. Details.