Skip to content
This repository has been archived by the owner on May 12, 2023. It is now read-only.

SnapGames/GDJ107

Repository files navigation

GDJ107

TravisCI Dependency Status

Game Development Java Basics 107

This project is part of the GDJ107 course from GameDev Basics Java provided by the SnapGames site.

Goal

TODO

Compile

To compile the full project, please execute the following command :

    $> mvn clean install

Execute the game

  • On any platform (Linux, MacOS, Windows)

to execute the compiled jar, please execute the command bellow :

    $> mvn exec:java

or :

    $> java -jar GDJ107-0.0.1-SNAPSHOT-jar-with-dependencies.jar
  • Specifically to Windows platform

To build a windows executable file, you must run :

    C:\> mvn clean install site

This will build a GDJ107.exe into the target directory.

Then you can directly execute :

    C:\> target/GDJ107.exe

If needed, you can also add some arguments from the bellow table:

argument short sample default Description
--debug -d -d [0-4] 0 Request debug information with the level
--height -h -h 320 320 Set the width of the window
--width -w -w 240 240 Set the height of the window
--scale -s -s 2 2 Set a scale factor for the window
--full -f -f off switch to fullscreen mode

Executing the following line bello:

    C:/> target/GDJ107.exe -d 1

will open the next window :

The welcome title state The options state The play state

Edit

Import this project as an Existing Maven Project into your prefered IDE, (like Eclipse ?)

Some screen shots ?

States

TODO

Maven Repo ?

To publish to the right maven repo, just execute the following lines:

    $> mvn clean site deploy

Before execution, be sure that your settings.xml contains a server entry with your login/password for the github repository.

<servers>
	<server>
		<id>github</id>
		<username>[GITHUB-USERNAME]</username>
		<password>[GITHUB-USERPASSWORD]</password>
	</server>
</servers>

Have Fun !

Send a mail to SnapGames

Releases

No releases published

Packages

No packages published

Languages