1
0
mirror of https://github.com/rockam/xgamejs synced 2024-12-26 13:59:19 +01:00

Create README.md

This commit is contained in:
Víctor Hernández Molpeceres 2015-11-22 10:30:09 +01:00
parent 803b0b9194
commit 6e12565104

18
README.md Normal file
View File

@ -0,0 +1,18 @@
# XgameJS
------
JavaScript framework similar to XNA to develop simple 2D games on HTML5
## How to use it
You can simply pick the _src/JS/XNA_Classes/Game.js_ class, copy it wherever you want, and modify it in order to develop your own game. Then create an HTML file and reference all the classes you use in there.
The **simple way to know how to use it** is watching the demos already done (located at _src/HTML_) and inspecting them.
The main demo is a classic **_Rayman_** style level that I've made woth XgameJS, hoy you enjoy it :D
## Execution flow
The main entry point is the **_Program_** class, which instances the **_Game_** class, in charge of running and maintaining the game loop.
IMAGE HERE
## Motivation
XNA is a framework with a managed runtime environment provided by Microsoft that facilitates video game development, but was discontinued in 2013.
This little project tries to adapt a part of XNA to JavaScript, using some classes similar to XNA and extending the framework with other classes that help on the 2D game development, like Sprite, Camera, Circle, etc.