0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

libGDXを使ってみる

Posted at

環境

  • macbook pro
  • MaxOSX Sierra
  • Java 1.8.0_77

前提条件

  • mobileへのインストールは考えていません。(必要であれば、Android SDKやその他プラグインをインストールする必要がある)

プロジェクトの作成

  • 後述するコマンドを実行すれば、コマンドラインからプロジェクトを作成することができます。
  • 現時点で、ios-moeを除外する方法がわからなかったので、除外したい方は、GUIから作成することをお勧めします。
java -jar gdx-setup.jar
  • コマンドラインからのプロジェクト生成
Usage: GdxSetup --dir <dir-name> --name <app-name> --package <package> --mainClass <mainClass> --sdkLocation <SDKLocation> [--excludeModules <modules>] [--extensions <extensions>]

dir ... the directory to write the project files to
name ... the name of the application
package ... the Java package name of the application
mainClass ... the name of your main ApplicationListener
sdkLocation ... the location of your android SDK. Uses ANDROID_HOME if not specified. Ignored if android module is excluded
excludeModules ... the modules to exclude on the project generation separated by ';'. Optional
extensions ... the extensions to include in the project separated by ';'. Optional
  • 実行例
java -jar ../tool/gdx-setup.jar --dir ./ --name sample01 --package com.sample.game --mainClass GameMain --sdkLocation /dummy --excludeModules android;Ios;Ios-moe;Html

eclipseへの取り込み

./gradlew eclipse

実行方法

./gradlew run
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?