Git Product home page Git Product logo

gdj110's Introduction

GDJ110

Dependency Status AppVeyor TravisCI

Game Development Java Basics 110

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

Goal

Propose an intepretation of the famous ParticleSystem game engine pattern to add special effects capabilities to the core. This will implement Rain effect.

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 GDJ110-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 GDJ110.exe into the target directory.

Then you can directly execute :

    C:\> target/GDJ110.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/GDJ110.exe -d 1

will open the next window :

The welcome title state

Edit

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

Some screen shots ?

States

PlayState

This screenshot/gif will demonstrate how animated Rain effect is.

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

gdj110's People

Contributors

mcgivrer avatar snyk-bot avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

gdj110's Issues

Add Sound Support

Add WAV/OGG sound support and MP3 player.

  • add spatial sound integration according to GameObject interface specificities.

Add an inline Level editor

Proposition

Add the possibility to create from scratch with an embedded level editor :

  • a world with a name, a map, an introduction, and an illustration image,
  • a new Level, attached to a World, using exiting tileset and sprints (enemies, animated elements, etc...)
  • add the capability to place portal between levels/world.

Start Editor

The editor must remain very simple to use with some major themes, imposed by an elements set (tileset, enemies, etc...)

In the first version, this editor is available only in dev mode, with specific startup parameter called 'development mode':

$> gdj110 --mode editor

This will launch the specific editor mode on the current engine.

Storing map, world and level

Levels and their world structure are stored in some XML files:

  • res/maps/world-xxx.xml describe a part of a world,
  • res/maps/level-xxx-yyy.xml describe a level yyy in the world xxx,
  • res/resources/tilesets/tileset-999.png and res/resources/tilesets/tileset-999.xml will define a tileset with its graphics (the .png file), and their structure/name/size in the .xml file.

Sample Map


 Map sample
 +---------------------------------------------+
 | World 1                                     |
 | +---------+     +---------+     +---------+ |
 | |         |     |         |     |         | |
 | |Level 1.1+----->Level 1.2+----->Level 1.3| |
 | |         |     |         |     |         | |
 | +---------+     +---------+     +---------+ |
 |                                      |      |
 +--------------------------------------v------+
                       ||
 +---------------------vv----------------------+
 | World 2 |                                   |
 | +-------v-+     +---------+     +---------+ |
 | |         |     |         |     |         | |
 | |Level 2.1+----->Level 2.2+----->Level 2.3| |
 | |         |     |         |     |         | |
 | +---------+     +---------+     +---------+ |
 |                                      |      |
 +--------------------------------------v------+

Design

The editor can look like :

TODO

Add a Particle System to simulate rain.

Create a new ParticleSystem, a GameObject implementation, to manage a bundle of particles.
A Particle is an interface, it will be implemented into some new Class, like Rain and Drop*

  • A ParticleBehavior is an interface and will be implemented to create, animate and render those particles. A RainBehavior can be used to produce Rain effect.

The ParticleSystem will implement a chained API to set its attributes values.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.