1 / 11

Java in programiranje iger

Java in programiranje iger. Kdo vse sodeluje pri razvoju iger. Produc ent ( produkcija iger ) Designer ( načrtovanje in igranje iger ) Program erji (engine, Umetna inteligenca , zvok , orodja itd. ) Umetniki , animator ji (te ksture , anima cije , model i )

glynis
Télécharger la présentation

Java in programiranje iger

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Java in programiranje iger

  2. Kdo vse sodeluje pri razvoju iger • Producent (produkcija iger) • Designer (načrtovanje in igranje iger) • Programerji(engine, Umetna inteligenca, zvok, orodja itd.) • Umetniki, animatorji(teksture, animacije, modeli) • Načrtovalci nivojev(nivoji, sekcije itd.) • Preizkuševalci(hrošči, skromna zasnova igre)

  3. Zgradba 2D iger Kaj (2D) igra ima… Kaj (2D) igra dela… • ● Front-end (titles, menus) • ● Assets • ○ Graphical assets • (animations, backgrounds) • ○Sound assets • (sfx, background music) • ●Objects • ○In-game objects • (sprites, platforms, etc.) • ○HUD objects • (score, lives, time, etc.) • ● Object Containers • ○ Levels, Areas, Maps • ●Input Events • {other things as needed} • Once per game/per level • ●Load assets • ● Construct objects • ● Populate containers • Lots of times / second • ●Consider input events • ●Update objects • ●Draw graphics • ●Play sounds • {other things as needed} Ni splošnega točnega odgovora na to: Vsak model vsiljuje določena predvidevanja, primerna za dani tip igre

  4. Zgradba 2D iger Input Event Manager Game Engine Game Layer construct { Load assets() Build layers() } construct { Build objects() } update { Update objects() } draw { Draw objects() } object object object object run { loop { Consider global input() Update active layers() Draw visible layers() } } Game Object object object object object Asset Manager Gradniki so naloženi v času izvajanja, upravlja jih “asset manager” Vhodne dogodke upravljajo in uporabljajo pogon igre, plasti in objekti Osnovna predpostavka: Igro sestavljajo plasti (layers), vsaka plast vsebuje objekte Pogon igre (game engine) upravlja z osveževanjem in prikazom plasti Vsaka plast (layer) lahko tvori, osvežuje in riše svoje objekte

  5. Tha java game development tutorial http://www.javacooperation.gmxhome.de/TutorialStartEng.html · Basic structure of an applet · Animation Move a ball Double buffering Ball bouncing and change the direction · Sound und Gif's Using sound in applets Using pictures in applets · Event handling in applets Mouse events (deprecated) Keyboard events (deprecated) New event handling using EventListener · The first complete game

  6. Killer Game Programming Andrew Davison http://fivedots.coe.psu.ac.th/~ad/jg/

  7. 2D igra (Space invaders) http://www.cokeandcode.com/info/tut2d.html DEMO Lep primer dedovanja, polimorfizma, preproste računalniške grafike

  8. Zgradba igre Invaders Definirani objekti Definiranih je enajst tipov objektov: ● Vsi so izpeljani iz razreda GameObject ● Ni globokih hierarhij, so pa identificirane skupine ● Ključni objekti ○ Ladje (ships) ○ Rakete (missiles) ○ Baze ● Začasni objekti ○ Eksplozije ○ Obvestila ● Prekrivni objekti ○ Življenja ○ Točkovanje

  9. Jgame (game engine) WEB

More Related