[Lib gdx] 2. one smal step for a man

  • View
    124

  • Download
    0

Embed Size (px)

Text of [Lib gdx] 2. one smal step for a man

[LibGDX] 2. One smal step for a man.docx

Setup Toy v cch dng(ci ny l cho ngi mi thi, ch bc no m thun mn ri th b qua nh)

Nguyn tc dng toy th ci no cng nh ci no, nht pin v bm nt. Tt nhin l trc khi mun dng th phi c . Anh em ti Toy y, sau khi ti v, chy v chng ta s c giao din nh th ny.Vi tt c mi ngi th ln u tin bao gi cng hoang mang, ngng ngng, lng tng, th nn mnh s hng dn s dng chi 1cht.

Name: Tn Project ng thi cng l tn ca ng dng trong Android, Window trn Desktop.

Package: 1 th bt buc ca Java.

GameClass: Tn class s trin khai FrameWork, t l ci b mama g cng c.

Destination: Th mc cha kt qu sau khi to.

Android SDK: ng dn ti SDK.

Mc Sub Projects

Desktop: to thm 1 Project chy trn Desktop (khuyn khch).

Android: to thm 1 Project chy trn Android (lm game Android m ko to Prj Android th lm ci g).

iOS: to thm 1 Project chy trn iOS, ci ny th yu cu thm MacOS + Xamarin (bn Indie tr ln gi $299/nm)

Html:to thm 1Project HTML5,mun chy c th cn ci thm GooglePlugin cho Eclipse v GWT,ni chung l mun ra c HTML5th cng mt kha kh cng on,anh em ai mun lm th tm t tm hiu nh.

Mc Extensions,cng 1l 1 cc extension nhng ni thc l mnh cng k bit c ht cc Extension ny l g, i khi c nhng ci ny.

Bullet:Physics Engine 3D(bit th thi,ch mnh c lm 3D u m quan tm)

Box2D:Physics Engine 2D(tick hay khng ty anh em,thc t l khng phi Game no cng cn n Physics Engine)

Box2DLights:h thng nh sng v bng ca Box2D(p,nhng hi tn ti nguyn)

Controller:b nhn tn hiu t tay cm,v d XBox Controller hay OUYA

FreeType,Tools:Really have no idea

Sau khi chn ht cc ch chyu thch th bm nt "GENERATE" v ngi i, tip tc i, v tip tc i, DAMN, ln u mun ra c cng mt hi cht thi gian. Trong khi ch i th vn cn vic ngha lm, l ci thm Plugin cho Eclipse c th import c ci m Project sp ti s ti ra. Anh em ci Eclipse Integration Gradle qua ci link update ny: http://dist.springsource.com/release/TOOLS/gradle.

Nu cc Project c Gen ra thnh cng anh em s thy bn trong th mc gc s thy vi ci th mc con gm: android, core, desktop (ios v html nu anh em tick c 2 ci ny) v 1 m th mc ca gradle na. Vic cn li lc ny l import m h ln y vo eclipse na l xong. Anh em vo Eclipse, chn File Import Gradle Gradle Project, tr ti th mc gc, sau nhn Build Model. Li tip tc i, khi no xong th chn tt c cc Project xut hin v cui cng th nhn Finish. Sau khi Import th anh em s c b nh th ny

trnh xy ra li anh em khng nn ly th mc gc lm workspace cho Eclipse, nh bn trn workspace ca mnh l tutorial cn th mc gc l The First Time. Nu nh c gp li lin quan ti validation-api:1.0.0.GA th xa th mc cached Maven ti C:/Users/username/.m2 trn Windows hoc home/username/.m2 trn Linux.

V nu nh anh em m chy Project desktop m ra c kt qu th nyth chng ta va c 1 khi u khng th thun li hn, v cng coi nh chng ta c th s dng c Setup-gradle ca LibGDX, bi sau mnh s cng nhau tm hiu v cch dng hnh ca LibGDX, it'll become Legen...wait for it...Dery, See ya!

LibGDX Tutorial z.k., ArrowGames