Skip to content

Cyclopenten is a demo application to try modern Android development using Compose, Hilt, Coroutines, Flow, Jetpack and Material Design based on MVVM architecture.

License

Notifications You must be signed in to change notification settings

Entikore/Cyclopenten

Repository files navigation

Shows Cyclopenten Logo.

This is a demo application to try modern Android development using Compose, Hilt, Coroutines, Flow, Jetpack and Material Design based on MVVM architecture.

The game

Cyclopenten is a simple quiz about the periodic table.

The player can choose between two difficulties when starting a new round.

If the player wants to pause the game, he can close the app and continue the game next time by pressing the Continue button.

The game supports simple sound effects and background music, which can be adjusted via settings .

If the easy difficulty is selected, the player has 3 lives and must name the element from a selection of 4 choices. If the hard difficulty is selected, the player has 4 lives and must enter the correct name of the element. The score increases if the player answers correctly, otherwise one life is deducted. However, correct answers in hard mode are worth more points.

The game ends when all elements of the periodic table have been named or no lives are left. If the score is among the 10 highest scores, the player can enter a name to be listed in the scoreboard.

Preview

A small preview of the game, captured on an emulator.

Dependencies

  • Compose - Define your UI programmatically with composable functions that describe its shape and data dependencies.
  • Activity - Access composable APIs built on top of Activity.
  • Lifecycle - Build lifecycle-aware components that can adjust behavior based on the current lifecycle state of an activity or fragment.
  • Navigation - Build and structure your in-app UI, handle deep links, and navigate between screens.
  • Hilt AndroidX - Extend the functionality of Dagger Hilt to enable dependency injection of certain classes from the androidx libraries.
  • Room - Create, store, and manage persistent data backed by a SQLite database.
  • DataStore - Store data asynchronously, consistently, and transactionally, overcoming some of the drawbacks of SharedPreferences.
  • Kotlin Coroutines: - Library for coroutines that contains a number of high-level coroutine-enabled primitives.
  • Hilt: - Hilt provides a standard way to incorporate Dagger dependency injection into an Android application.
  • Timber: - A logger with a small, extensible API which provides utility on top of Android's normal Log class.
  • Moshi: - A modern JSON library for Kotlin and Java.
  • Gson: - A Java serialization/deserialization library to convert Java Objects into JSON and back

License

All the code available under the MIT License. See LICENSE.

MIT License

Copyright (c) 2022 Entikore

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

About

Cyclopenten is a demo application to try modern Android development using Compose, Hilt, Coroutines, Flow, Jetpack and Material Design based on MVVM architecture.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages