Skip to content

Build 2D platform game from Java is possible. Let's try to design a short and pixeled platform game.

License

Notifications You must be signed in to change notification settings

SnapGames/demogame

 
 

Repository files navigation

DemoGame

Badges

demogame Codacy Badge FOSSA Status Known Vulnerabilities License: MIT pipeline status Codacy Badge Gitter

Description

This is a simple java game demonstration to play with ABC of game development. introducing some of the basics like the game loop, some system & resources management, and GameObject !

Let's dive into some simple Java (JDK8 "see and download the necessary JDK") code to create your first platform game.

To be able to work on and build this project, you will need 2 more things:

  1. Apache maven build tool, see the maven download page
  2. An IDE to edit and debug ths project. My own heart balances between IntelliJ and Eclipse.

Build

Build with :

$> mvn clean install

execute ?

Play with :

$> mvn exec:java

Or after a build, just execute:

$> java -jar target/DemoGame-0.0.1-SNAPSHOT-shaded.jar

latest

  • start adding Lua scripting capability
  • add Lights
  • add items collect and display
  • update collision between GameObject and TileMap.

Some screenshot

Screenshot of the old demo

figure 1 - the old prototype

Screenshot of the core

figure 2 - the latest version with a HUD

Tilemap debugging activated

figure 3 - the same display with tilemap debug activated

A lot of new things like lights !

figure 4 - A lot of new things like lights, Gothic Score, Items and Text!

One other just for fun

figure 5 - One other just for fun

So much debug information !

figure 6 - So much debug information !

McG.

About

Build 2D platform game from Java is possible. Let's try to design a short and pixeled platform game.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 95.2%
  • CSS 3.8%
  • Other 1.0%