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

GDJ / gdj105 / Where we add some graphical objects to build UI.

License

Notifications You must be signed in to change notification settings

SnapGames/GDJ105

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GDJ105

Snapgames Home

TravisCI buddy pipeline FOSSA Status Codacy Badge Github Releases

Game Development Java Basics 105

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

Goal

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,

Compile

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

$> mvn clean install

Execute

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

Edit

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

Some screen shots ?

Title State

Here are some screenshots from the Title screen from the TitleState:

TitleState without debug information

This is the main "welcome" screen of the game, this is where the gamer comes in when he starts the game.

Debug mode

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).

Debug Level 1

TitleState with some debug information

Debug level 3

TitleState with to much debug information

Switch between Languages

  • Use the L key to switch between available languages:

    • EN for English,
    • FR for French,
    • DE for Deutch,
    • ES for Spanish,
    • IT for Italian.

Screenshots

TitleState in English TitleState in German TitleState in French TitleState in Spanish

Take a snapshot

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

License

FOSSA Status