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
- Extract the downloaded ZIP archive.
- Open Android Studio.
- Select Open and choose the
GardenMemoryQuestproject folder. - Configure JDK 17 and install Android SDK Platform 36.
- Allow Android Studio to synchronize Gradle dependencies.
- Select a compatible Android device or emulator.
- Build and run the application.
Changing the Application ID
- Open
app/build.gradle.kts. - Update the
applicationIdinsidedefaultConfig. - Update the namespace and source package names separately if required.
- Review Java/Kotlin imports and activity declarations after package refactoring.
- 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
- Open
androidstudio/Config.java. - Locate the in-app purchase and subscription product identifiers.
- Configure the corresponding products in your own Google Play Console account.
- Update product identifiers and adjust the donation interface as needed.
- Review
BillingInApp.java,BillingSubs.java, and their purchase handling logic. - Test product information, purchase flows, acknowledgements, and transaction handling using an appropriate Google Play test environment.
Building for Distribution
- Complete application customization.
- Synchronize Gradle and build the application.
- Test gameplay, settings, local storage, sound, and donations.
- Generate a signed Android App Bundle or APK.
- Verify the final release artifact before distribution.
Detailed instructions and project-specific file locations are included in the PDF documentation.
| Author | tuantran0117 |
|---|---|
| Category | App Templates / Android |
| Price | $94 |
| Extended License | $282 |
| First Release | Oct 18, 2026 |
| Last Update | Oct 20, 2026 |
| Files included | .kt, .gradle.kts, .webp, .java, .xml |
| Operating systems | Android 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 language | Java, Kotlin |
Categories
Tags
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.
Products of the Week.
Submit🥇
Perceptle
Perceptle is a daily browser-based game that challenges you to test your sensory intuition through five quick estimation and rhythm-based rounds.
Other · 1,800 views · 11 clicksOther · Week 47 · 1,800 views · 11 clicks
🥈
Free LinkedIn Likes From Real
Get free LinkedIn likes on your posts from real members who react by hand. No
SaaS · 1,935 views · 11 clicksSaaS · Week 47 · 1,935 views · 11 clicks
🥉
STOP GUESSING WHAT TO POST
AI that learns your brand voice and builds a month of consistent, on-brand social content: carousels, posts and hooks that sound like you, not like everyone else's AI.
SaaS · 9,478 views · 76 clicksSaaS · Week 47 · 9,478 views · 76 clicks
#4
aaas.market
407 reliable micro tools for solo founders, marketers and creators. They work in your browser
SaaS · 1,899 views · 5 clicksSaaS · Week 47 · 1,899 views · 5 clicks