Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/huandu/gin
gin - a simple & efficient HTML5 game engine
https://github.com/huandu/gin
Last synced: 29 days ago
JSON representation
gin - a simple & efficient HTML5 game engine
- Host: GitHub
- URL: https://github.com/huandu/gin
- Owner: huandu
- License: mit
- Created: 2011-01-27T08:30:56.000Z (almost 14 years ago)
- Default Branch: master
- Last Pushed: 2011-05-27T13:07:47.000Z (over 13 years ago)
- Last Synced: 2023-03-11T05:35:34.111Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 158 KB
- Stars: 25
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.textile
- License: LICENSE
Awesome Lists containing this project
README
Welcome to send me feedback in github or "@huandu":http://twitter.com/huandu on twitter.
If you want to play with
gin
now, see "live demos":http://www.realdodo.com/gin-samples. Clone the "gin-samples":https://github.com/huandu/gin-samples project on github for sample source code.h2. What's the gin
The
gin
is a Game Interactive eNgine. It's designed for HTML5 games on modern browser and mobile device.
gin
is a light-weight engine. Unlike other engines, it doesn't require any OOP knowledge and pre-compile work. It is very straight forward.Gin is also a kind of distilled beverage, but I've never tried it.
h3. Goals
The major goal is to implement most common features required by HTML5 game developers. It will include animation timeline, graphic layers and mouse/gesture/keyboard input support.
With
gin
, developers should be able to focus on game logic and graphic effects, just like programming in flash. It also implements MovieClip equivalent concept - the layers. Developers can move/resize/render layers independently.
gin
caches all keyboard/mouse events. Developers must process these events inside beforerender/render callbacks rather than directly receiving events by adding listerners. It's a different thinking model comparing to other engines. This model will benefit a lot in long term.I may add WebGL support in the future.
h3. Non-Goals
It will never include
* Canvas scene graph api
* Physical engine
* Hit test
* General purpose algorithms, e.g. Array.each. I don't want to waste my life.It's highly recommended to use
gin
with other js frameworks to complete more tasks.For instance, developers can use "jQuery":http://jquery.com/ to animate DOM elements. It also means,
gin
will not include any DOM element animation support.I don't want to reinvent wheel. If I'm doing so, please let me know.
h2. Browser Compatability
The
gin
is tested on
* Chrome 8/10
* Firefox 3.6/4.0
* Internet Explorer 9.0