Return to search

IMPLEMENTERING AV PHONGLJUSSÄTTNINGI 2D-SPELMILJÖ

Under de senaste åren har en ny trend inom spelindustrin uppstått då en stor del av spelen har gått tillbaka till de tvådimensionella miljöerna som var vanligare i tv-spelens barndom, detta tack vare att mobiltelefoner och deras spel har tagit allt större plats på marknaden och de är ofta tvådimensionella på grund av sin begränsade hårdvara. De tvådimensionella spelen har enligt tradition inte haft någon dynamisk ljussättning, utan de har bestått utav färdig grafik med förutbestämda intensiteter vilket gör att spelen kan se platta ut. Men inom andra områden av spelindustrin, framförallt tredimensionella spel, har utvecklingen av dynamiska ljussättningsmetoder kommit långt. Problemet med dessa metoder är att de kräver objektens normaler, vilka normalt inte finns tillgängligt i tvådimensionella bilder. Idag är mobiltelefonerna kraftfulla och klarar av mycket tyngre beräkningar än vad de gjorde för bara några år sedan. Därför undersökte vi möjligheten att implementera dynamisk ljussättning i ett tvådimensionellt spel på androidbaserade mobiltelefoner. För att genomföra detta krävdes också att vi undersökte metoder för att generera normaler för tvådimensionell grafik. För att ett fullständigt spel skulle kunna skapas så implementerades också saker som kollisionshantering, artificiell intelligens och procedurell generering av banor. / In recent years, a new trend in the gaming industry has emerged since a large part of the games have gone back to the two-dimensional environments that were more common in the early days of the video games history . This is due to mobile phones and their games have taken more and more space on the market and they are often two-dimensional because of the limited harware. The twodimensional games have traditionally never had any dynamic lighting , they have consisted of premade graphics with predetermined intensities , which means that the games may look flat. But in other areas within the gaming industry, especially three-dimensional games, the evolution of dynamic lighting techniques have come a long way. The problem with these methods is that they require the object's normals, which are not normally available in two-dimensional images. Today mobile phones are powerful and capable of much heavier computations than they did just a few years ago. Therefore, we examined the possibility of implementing dynamic lighting in a twodimensional games on Androidbased mobile phones. To accomplish this it required that we investigated methods to generate normals for two-dimensional graphics. In order to create a full game we also implemented features such as collision handling, artificial intelligence and procedural generation of maps.

Identiferoai:union.ndltd.org:UPSALLA1/oai:DiVA.org:oru-36140
Date January 2014
CreatorsSetterberg, Joel, Elsgard, Jonatan
PublisherÖrebro universitet, Institutionen för naturvetenskap och teknik, Örebro universitet, Institutionen för naturvetenskap och teknik
Source SetsDiVA Archive at Upsalla University
LanguageSwedish
Detected LanguageEnglish
TypeStudent thesis, info:eu-repo/semantics/bachelorThesis, text
Formatapplication/pdf
Rightsinfo:eu-repo/semantics/openAccess

Page generated in 0.0022 seconds