This project is part of the gdj105 course from GameDev Basics Java provided by the SnapGames site.
As we have got now some great piece of game code, we need to start building a real framework by refactoring the code and adding some new objects. Graphical objects to create some new States :
Let's create :
UIText
,UIImage
- and
UIMenu
to build a new game state : the TitleState
,
To compile the full project, please execute the following command :
$> mvn clean install
to execute the the compiled jar, please execute the command bellow :
$> mvn exec:java
or :
$> java -jar gdj105-0.0.1-SNAPSHOT.jar
After full build, on the windows platform, you can execute the target/ GDJ105.exe
executable file.
c:\> target\GDJ105.exe
Import this project as an Existing Maven Project into your preferred IDE, (like Eclipse ?)
Here are some screenshots from the Title screen from the TitleState
:
This is the main "welcome" screen of the game, this is where the gamer comes in when he starts the game.
Some debug information can be displayed according to the debug level you've chosen:
- D / F9 switch between DEBUG modes
Mode | Description |
---|---|
1 | Only display yellow squares with a numeric id, and display FPS |
2 | Display yellow squares and highlight the moving direction with a green line on the direction side, |
3 | Show full of information in a panel for each active object (default). |
-
Use the L key to switch between available languages:
EN
for English,FR
for French,DE
for Deutch,ES
for Spanish,IT
for Italian.
You can at any time push the S key to take a snapshot.
This JPEG picture screenshot of the game window will be saved to the ~/
directory on linux/ux platform or in the c:\users\[username]
path on Windows.
Have Fun !
Send a mail to SnapGames