- libGDX 시작하기
1 사전 작업[ | ]
2 다운로드[ | ]
- http://libgdx.badlogicgames.com/nightlies/dist/ 접속
- [gdx-setup-ui.jar] 클릭하여 gdx-setup-ui.jar 다운로드
3 Setup 실행[ | ]

- gdx-setup-ui.jar 파일을 D:\workspace\GDX로 이동
- gdx-setup-ui.jar 실행
- "libGDX PROJECT SETUP" --- [Create]
- LibGDX 오른쪽 4번째 버튼 클릭하여 libgdx-nightly-latest.zip 다운로드 시작 (아래 그림 참조)
하단에 libgdx-nightly-latest.zip의 다운로드 상태가 표시된다.
- 다운로드가 완료되면 우하단의 [Open the generation screen] 클릭
- "LAUNCH" --- [Launch!] 클릭
text
Copy
Decompressing projects... done
Decompressing libraries... done
Configuring libraries... done
Post-processing files... done
Copying projects... done
Cleaning... done
All done!
- "LibGDX Project Setup" 창 닫기
4 ADT에 import[ | ]
- ADT 시작
- File --- Import... --- Existing Projects into Workspace --- [Next >]
- "Import Projects" --- (O) Select root directory: --- [Browse...]
- "폴더 찾아보기" --- D:\workspace\GDX 선택 --- [확인]
아래 그림과 같이 4개의 프로젝트가 뜬다.
- [Finish]
5 프로젝트 오류 해결[ | ]
my-gdx-game-android 프로젝트와 my-gdx-game-html 프로젝트에 오류가 있다.
5.1 my-gdx-game-android 프로젝트[ | ]
- Package Explorer --- my-gdx-game-android 우클릭 --- Properties
- "Properties for my-gdx-game-android" --- Android --- [V] Android 4.2 --- [OK]
- Package Explorer --- my-gdx-game-android 우클릭 --- Android Tools --- Fix Project Properties
5.2 my-gdx-game-html 프로젝트[ | ]
안드로이드에서만 개발하려면 이 문단은 넘겨도 좋다...
my-gdx-game-html 프로젝트에는 다음 2가지 오류가 있다.
Description | Resource | Path | Location | Type |
---|---|---|---|---|
The project was not built since its build path is incomplete. Cannot find the class file for com.google.gwt.core.client.EntryPoint. Fix the build path then try building this project | my-gdx-game-html | Unknown | Java Problem | |
The type com.google.gwt.core.client.EntryPoint cannot be resolved. It is indirectly referenced from required .class files | GwtLauncher.java | /my-gdx-game-html/src/com/me/mygdxgame/client | line 8 | Java Problem |
- Package Explorer --- my-gdx-game-html 우클릭 --- Properties
- "Properties for my-gdx-game-html" --- Java Build Path --- Libraries 탭 --- [Add External JARs...]
- "JAR Selection" --- D:\adt-bundle\eclipse\plugins\com.google.gwt.eclipse.sdkbundle_2.5.0\gwt-2.5.0 으로 이동 --- gwt-servlet.jar 선택 --- [열기(O)]
- [OK]
Referenced Libraries에 gwt-servlet.jar 가 추가되고 오류가 사라진다.
6 my-gdx-game-android 실행[ | ]
- Package Explorer --- my-gdx-game-android 우클릭 --- Run As --- Android Application
잘 실행된다...
7 같이 보기[ | ]
8 주석[ | ]
9 참고[ | ]
편집자 Jmnote Jmnote bot
로그인하시면 댓글을 쓸 수 있습니다.
- 분류 댓글:
- 튜토리얼 (3)
NuSOAP 시작하기 ― Podong28키움증권 시작하기 ― Chang731키움증권 시작하기 ― Chang731