Uporaba Mobilnih Platform Na Primeru Igre Tarok
Total Page:16
File Type:pdf, Size:1020Kb
Jernej Klančič UPORABA MOBILNIH PLATFORM NA PRIMERU IGRE TAROK Diplomsko delo Maribor, februar 2010 I Diplomsko delo univerzitetnega študijskega programa UPORABA MOBILNIH PLATFORM NA PRIMERU IGRE TAROK Študent: Jernej Klančič Študijski program: UN, računalništvo in informatika Smer: Informatika Mentor: Doc. dr. Aleš Živkovič Maribor, februar 2010 III ZAHVALA Zahvaljujem se mentorju doc. dr. Živkovič Alešu za pomoč in vodenje pri opravljanju diplomskega dela. Prav tako se zahvaljujem bratu, ki je verjel vame, in staršem, ki so mi omogočili študij in me finančno podpirali. IV Uporaba mobilnih platform na primeru igre Tarok Ključne besede: mobilnost, ogrodje compact framework, profil UML, Tarok, mobilna vsebina, poslovni model UDK: 004.77:004.5(043.2) Povzetek V diplomskem delu smo predstavili možnosti, ki jih ponujajo mobilne naprave in kam naprej nas pelje razvoj. Ob tem smo še skušali zajeti omejitve, ki lahko prihajajo s tehnologijo, v našem primeru .NET okolje. Z uporabo tehnologij se nam odpirajo poslovne možnosti, katere smo zajeli v delu. Poleg tega smo prikazali še profil UML, ki se lahko uporablja za gradnjo sistemov ali iger pri mobilnih napravah. Na koncu smo še prikazali praktični primer igre Tarok, ki prikaže potencial mobilnih naprav. V Application of Mobile Platforms on the Implementation of the Game Tarot Key words: mobile, compact framework, UML profile, Tarot, mobile content, business model UDK: 004.77:004.5(043.2) Abstract In this diploma we have tried to show the opportunities mobile systems offer and what can we aspect in the future. Beside that we wanted to show restrictions of mobile technology, in our case in .NET environment. With use of mobile technologies new business opportunities are open to us and we tried to list them in the diploma. We also wanted to show a UML profile for building mobile systems. At the end we wanted to show the practical use of mobile technology with a game called Tarot. VI VSEBINA 1 UVOD ...................................................................................................................... 1 2 MOBILNE VSEBINE ............................................................................................ 3 2.1 SPLETNE STRANI OZIROMA SPLETNE APLIKACIJE ............................................... 4 2.2 SPLETNE TRŽNICE .............................................................................................. 5 2.3 POVEZLJIVOST ................................................................................................... 6 2.4 PERSONALIZACIJA ............................................................................................. 6 2.5 VIR INFORMACIJ ................................................................................................ 7 2.6 SOCIALNA MEDMREŽJA ...................................................................................... 8 2.7 MOBILNA TELEVIZIJA ........................................................................................ 8 2.8 UPORABNIŠKI VMESNIK ..................................................................................... 9 2.8.1 Programska priprava ................................................................................. 10 3 MOBILNE PLATFORME .................................................................................. 11 3.1 JAVA MICRO EDITION ...................................................................................... 12 3.2 .NET COMPACT FRAMEWORK ......................................................................... 13 3.3 IPHONE ............................................................................................................ 14 3.4 ANDROID ......................................................................................................... 15 3.5 BLACKBERRY .................................................................................................. 17 4 .NET COMPACT FRAMEWORK .................................................................... 19 4.1 RAZLIKA MED WINDOWS CE IN WINDOWS MOBILE ........................................ 20 4.1.1 Windows CE ............................................................................................... 20 4.1.2 Windows Mobile ......................................................................................... 20 4.2 RAZLIKA MED .NET IN .NET COMPACT FRAMEWORK .................................... 20 4.3 NASTAVLJIVE APLIKACIJSKE DATOTEKE .......................................................... 22 4.4 UPRAVLJANJE ZASLONA IN POSTAVITVE .......................................................... 23 4.4.1 »Priklapljanje in približevanje« ................................................................. 23 4.4.2 Avtomatski drsniki ...................................................................................... 24 4.4.3 Upravljanje zaslonske resolucije ................................................................ 24 4.4.4 Upravljanje tipk .......................................................................................... 24 VII 4.5 GRAFIKA ......................................................................................................... 24 4.6 NITI ................................................................................................................. 25 4.7 VARNOST ......................................................................................................... 25 4.8 OSTALA PODPORA RAZREDOV ......................................................................... 25 4.9 PODPORA V RAZVOJNIH ORODJIH ..................................................................... 26 4.9.1 Razvojno okolje Microsoft Visual Studio 2008 .......................................... 26 4.9.2 Podatkovni strežnik Microsoft SQL Server 2008 ....................................... 27 5 POSLOVNI MODELI .......................................................................................... 29 5.1 MIKROTRANSAKCIJE ........................................................................................ 32 5.2 LICENCE .......................................................................................................... 34 5.3 REKLAME ........................................................................................................ 35 5.3.1 Oglasi izven igre ......................................................................................... 35 5.3.2 Oglasi znotraj igre ...................................................................................... 37 5.4 SPONZORSTVO ................................................................................................. 38 5.5 PRIHODEK IGRALCEV ....................................................................................... 39 5.6 PLAČLJIVI DOGODKI IN STORITVE .................................................................... 41 5.7 PRODAJA UPORABNIŠKIH INFORMACIJ ............................................................. 42 5.8 PRIMERJAVA POSLOVNIH MODELOV NA PRIMERU ............................................ 43 5.8.1 Mikrotransakcije ......................................................................................... 43 5.8.2 Prihodek od igralca .................................................................................... 44 5.8.3 Reklame ...................................................................................................... 44 5.8.4 Plačljivi dogodki in storitve ........................................................................ 46 5.8.5 Sklep ........................................................................................................... 48 6 UML PROFIL ZA MOBILNE VSEBINE ......................................................... 49 6.1 MODELIRANJE MOBILNIH SISTEMOV ................................................................ 51 6.2 PROFIL UML ................................................................................................... 52 6.3 NADGRADNJA PROFILA .................................................................................... 55 6.4 PROFIL V PRAKSI .............................................................................................. 59 7 IMPLEMENTACIJA IGRE TAROK ................................................................. 63 7.1 POTEK IGRE TAROK .......................................................................................... 64 7.2 CILJI IMPLEMENTACIJE .................................................................................... 65 VIII 7.3 KARAKTERISTIKE SISTEMA .............................................................................. 66 7.4 VISOKONIVOJSKO NAČRTOVANJE .................................................................... 69 7.4.1 Arhitektura sistema ..................................................................................... 69 7.4.2 Primer uporabe sistema ............................................................................. 70 7.4.3 Skupne knjižnice ......................................................................................... 73 7.4.4 Strežnik ....................................................................................................... 77 7.4.5 Mobilni odjemalec ...................................................................................... 78 7.4.6 Simulator .................................................................................................... 79 7.4.7 Podatkovna baza ........................................................................................ 80 7.5 PREDLOGI ZA NADALJNJI RAZVOJ ...................................................................