GithubHelp home page GithubHelp logo

snapgames / gdj110 Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 318 KB

A sample implementation of a ParticleSystem to provide basic special effects like rain, wind, snow, etc...

Home Page: https://classroom.google.com/c/NzI2ODQ3NjU2MFpa

License: MIT License

Java 99.90% Batchfile 0.05% Shell 0.05%
game particlesystem particle sample gamedev gdj

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

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

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.