js-republic / sideral

:construction: #OSS
GNU General Public License v3.0
3 stars 3 forks source link

Sideral JS

Stories in Ready Build Status Open Source Love License: GPL v3 Commitizen friendly

:rocket::construction: Project in construction :construction::rocket:

Sideral JS is the next generation of video-game framework with JavaScript. This framework is made to create a more complexe 2D game with all features needed like HUD, Event Manager, Map Editor, Quest manager, etc. It also provide complete library to make your game online.

What is inside this framework ?

How does it works ?

More than just a framework, Sideral is a complete workspace with HUB and many features to improve your game development. It is separate into 3 features :

Installation

At this time, it's preferable to use git and clone this repository like this :

git clone https://github.com/js-republic/sideral sideral

Your folder will be your workspaces to create project.

Usage

Core library

This is all the src you need to create your game. The library has theses classes :

Scene

A Scene is typically a canvas. A game can have multiple Scenes and it must have multiple Scenes.

Entity

An Entity is an object to be render in a Scene.

Engine

Engine is a singleton instance. The aim of this object is to loop and give information about FPS

Element

an Element is the superclass of this library. It provide lifecycle of each element such as initialize, update and render functions.

Component

a Component is a class which is not inherited from Element class because it doesnot have static lifecycle. A component must be composed by an Element and add additional instructions into Element's function such as update for example.

HUB

The HUB will be your best friend to develop your game. To run it, go into your workspace project and run :

yarn start

Now you can access to your main hub page at http://localhost:3000

With the HUB, you can :

Contributing

See CONTRIBUTING.md to contribute to this project.

License

SGR project is a licensed under GNU General Public License v3.