Skip to content

Arcanoid game implemented in kotlin. Game has two types of gameplay. Multiplayer where user can join `rooms` opened by other players or create own customized one. Singleplayer where all data is being stored locally and user breaks his own records by beating next stages.

Notifications You must be signed in to change notification settings

sqoshi/arcanoid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Table Of Contents


Arcanoid

[NOTE] If video is not loading properly, it may be found in Arcanoid/media/

Introduction

Simple implementation of very popular game Arcanoid. Two game modes multiplayer and singleplayer allow to play with friends and break your records. Video of both modes are avaible in multiplayer singleplayer

General Info

Each user register his nickname in database. Registration is automatical, it does mean that first login stores nickname in database ( if nickname is available).

Multiplayer

When user want to play with friends he need to join or create a room. Each room contains Game configuration (rows, columns, mode(EASY,HARD,MEDIUM)). Room may be created by every user and configured as only he wish. Lobby is a list of rooms that are open at the moment. By clicking list item player joins as a guest and contest begin. The one who first destroys all the bricks wins.

Video

multiplayer.mp4

Database

Communication is owed to the firebase. Players listening opponents score and communicating in real time in such way.

Singleplayer

When user playing singleplayer mode he just beat next stages and local room database stores his achievements ( records ).

Video

singleplayer.mp4

Code Example

private fun addScoreListener() {
    messageReference.addValueEventListener(object : ValueEventListener {
        override fun onDataChange(snapshot: DataSnapshot) {
            if (snapshot.getValue(String::class.java) != null) {
                game_view.pauseThread()
                basicAlert(snapshot.getValue(String::class.java))
                closeRoom()

            }
        }

        override fun onCancelled(error: DatabaseError) {
            messageReference.setValue(message)
        }

    })
}

About

Arcanoid game implemented in kotlin. Game has two types of gameplay. Multiplayer where user can join `rooms` opened by other players or create own customized one. Singleplayer where all data is being stored locally and user breaks his own records by beating next stages.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages