LibGDX 시작하기

Jmnote (토론 | 기여)님의 2013년 2월 17일 (일) 03:27 판 (→‎참고 자료)
libGDX 시작하기

1 사전 작업

2 다운로드

3 Setup 실행

  • gdx-setup-ui.jar 파일을 D:\workspace\GDX로 이동
  • gdx-setup-ui.jar 실행
  • "libGDX PROJECT SETUP" --- [Create]
  • LibGDX 오른쪽 4번째 버튼 클릭하여 libgdx-nightly-latest.zip 다운로드 시작 (아래 그림 참조)

LibGDX Setup UI.png

하단에 libgdx-nightly-latest.zip의 다운로드 상태가 표시된다.

  • 다운로드가 완료되면 우하단의 [Open the generation screen] 클릭
  • "LAUNCH" --- [Launch!] 클릭
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개의 프로젝트가 뜬다.

LibGDX Import Projects.png

  • [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 --- Order and Export --- [V] com.google.gwt.eclipse.core.GWT_CONTAINER --- [OK]
  • Project --- Clean...
  • "Clean" --- [OK]

6 같이 보기

7 참고 자료

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}