IMPLEMENTATION OF A WEB SOCKETS IN THE DEVELOPMENT OF A GAME

Abstract

Ovaj završni rad opisuje izradu web aplikacije kolekcije igara s naglaskom na implementaciju web utičnica (engl. web socket). Igre su zamišljene tako da se glavni sadržaj prikazuje na jednom uređaju, dok igrači koriste dodatne uređaje kao upravljače. Aplikacija sadrži dvije igre. Jedna igra je interaktivni kviz gdje je igračima cilj zavarati protivnike dajući domišljate krive odgovore na postavljeno pitanje, a usput odabrati točan odgovor na isto pitanje među mnoštvom krivih odgovora. Druga igra je implementacija društvene igre Poveži četiri (engl. Connect four) za dva igrača. Igrači naizmjence postavljaju novčiće u polja s ciljem da njihovi novčići naprave niz od četiri uzastopna novčića horizontalno, vertikalno ili dijagonalno.This paper describes the process of building a web application focusing on the implementation of web sockets. The web application is a hub for games which are played through multiple devices. One device is used to display the main content to players, while other devices are used by players as controllers. This application contains two games. One game is an interactive quiz where players try to deceive each other by giving false answers to a prompt while also trying to guess the correct answer themselves. The second game is an implementation of the board game Connect four for two players. Players take turns dropping coins onto the board with the aim of creating a horizontal, vertical or diagonal line of four of their coins

    Similar works