1. Creating a level for 2D computer game in Unity
- Author
-
Žugec, Luka and Bernik, Andrija
- Subjects
Video Game ,Unity ,TECHNICAL SCIENCES. Graphic Technology. Processes of Graphic Reproduction ,Scripting ,Sprite ,Video igra ,skriptiranje ,2D ,TEHNIČKE ZNANOSTI. Grafička tehnologija. Procesi grafičke reprodukcije - Abstract
2D video igre odnose se na igre u kojima se radnje događaju u 2D ravnini i obično se kreću vodoravno ili vertikalno. U njima se likovi i okruženja obično prikazuju u 2D-u. Njihove karakteristike na odnosu od 3D video igara su što koriste ravnu grafiku, nazvanu sprite, i nemaju trodimenzionalnu geometriju. Na zaslonu su prikazane kao ravne slike, a kamera koja prati igrača nema perspektivu. Najpoznatija vrsta 2D video igra su "platformer" igre koje karakterizira velika upotreba skakanja i penjanja za navigaciju u igračevom okruženju. Razine i okruženja uglavnom se sastoje od neravnih terena i raznih platforma postavljenih na različite visine što zahtjeva korištenje različitih sposobnosti samog lika igrača za prelazak. Program korišten za izradu nivoa 2D video igre u radu je Unity. Unity je razvijen kako bi razvijanje 2D i 3D video igra bilo dostupno novim i neiskusnim programerima. Njegovo sučelje prilagođeno je kako bih se korisnici mogli jednostavno služiti svim njegovim alatima i funkcijama kod izrade projekata. U radu je opisana njegova povijest i razvoj, korisničko sučelje s fokusom na razvijanje 2D video igara, osnovna potrebna znanja o skriptiranju i glavne razlike odnosno opcije kod Unity 2D-a. Za praktičan dio opisan je proces izrade kompletnog nivoa 2D računalne igre, od izrade spriteova do izrade funkcionalnosti glavnog lika i neprijatelja. 2D video games refer to games in which actions take place in the 2D plane and usually move horizontally or vertically. In them, characters and environments are usually displayed in 2D. Their features compared to 3D video games are that they use flat graphics, called sprites, and do not have three-dimensional geometry. They are displayed on the screen as flat images, and the camera that follows the player has no perspective. The most famous type of 2D video games are platformers which are characterized by a large use of jumping and climbing to navigate the player's environment. Levels and environments mainly consist of uneven terrain and various platforms set at different heights which requires the use of different abilities of the player's own character to cross. The program used to create one level of a 2D video game in this final work is Unity. Unity was developed to make the development of 2D and 3D video games available to new and inexperienced developers. Its interface has been customized so that users can easily use all its tools and functions when creating projects. The paper describes its history and development, the user interface with a focus on the development of 2D video games, the basic knowledge of scripting and the main differences and options in Unity 2D. For the practical part, the process of creating a complete level of 2D computer game is described, from making sprites to creating the functionality of the main character and the enemy.
- Published
- 2021