Skip to content

Project in the university course "Sensor Based Mobile Applications". A Multiplayer Android Game in which you can roll dices and play against your friends.

Notifications You must be signed in to change notification settings

AnSrwn/Gambling

Repository files navigation

Gambling

This dice gambling app aims at anyone who wants to play a dice game, but does not have real dices. It is especially usefull while travelling with a friend. You can pass your time playing together, even if you have no Internet. The design of the app is supposed to be customizable, so that the user can feel as comfortable as possible while gaming.



Features:

  • Singleplayer:

    • GIF animations to cover/uncover two dices with a dice cup and to shake this cup.
    • Shaking the phone is recognized with the internal acceleromter sensor.
    • While shaking, there is a fitting sound effect using MediaPlayer.
    • Gamification: If the user gets a double, he/she is allowed to play another round and the scores are added together.
    • The score is stored in a Room database. But only if it is better than the smallest stored score, out of ten.
  • Multiplayer:

    • Connecting to another phone is possible by using Nearby Connections API. At the moment it is only possible to connect to one other device (the API allows more connections).
    • As soon as the two devices are connected, the DiceGameFragment is opened, but in the background the DiceMultiplayerFragment is still running and handling the connection.
    • After receiving a score, DiceGameFragment is closed and DiceMultiplayerFragment is made visible again, to show the score of the opponent and the user's score.
    • Communication between the two fragments is done by Live Data.
  • Settings:

    • The user can change the background and the theme of the app.
    • Possible to choose between light and dark theme.
    • As the background, an image can be selected. The image can be selected out of the gallery or you can take a new photo.
    • The selected settings are stored in shared preferences.



Future objectives:

  • Choosing the amount of dices.
  • Multiplayer with more than two players.
  • Include more dice games. Also in the multiplayer.
  • Expand the High Score. One list for for each dice game and singleplayer/multiplayer.
  • Improve animations. Considering using something else than GIFs, because they use a lot of memory space and their performance is not optimal.
  • Improve the design of the app (buttons, text style,...).



If you have any suggestions for features or want to report a bug, please make a new issue. We will take care about it :)

About

Project in the university course "Sensor Based Mobile Applications". A Multiplayer Android Game in which you can roll dices and play against your friends.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages