Sažetak
The snake game, a classic in the field of video games, is still popular and represented, and the development of new technologies enables the expansion of its application to new platforms. A web game is created using HyperText Markup Language (HTML), Cascading Style Sheets (CSS) and JavaScript (JS) technologies in three versions. Individual versions of the game differ in appearance and functionality. In all three versions of the game, the structure of the game as well as its components are defined by HTML elements. Elements are styled through CSS, so that the game interface has a positive impact on the user experience (UX). The gradual dissection of the code primarily lies in the programming language JS, which defines the logic of the game, enables the movement of the subjects, the management of the game and the definition of the scenario of its completion. Three versions of the game are tested, and the user experience is compared. The test results are used to form a conclusion.
Ključne riječi
JS HTML CSS UX game