GigaTech
GigaTech is an open source HTML5 game engine written in CoffeeScript. It uses Canvas2D for rendering.
Features
- Scene graph.
- Animation system powered by Easie.
- Event system.
- Collision detection.
- Audio support.
- Use it with Ejecta (iOS Canvas2D implementation) to create iOS app bundles.
Simple Example
Code
class SpinningRectangle extends Rectangle
constructor: () ->
super {
color: new Color 255, 0, 0
radius: [10, 10, 10, 10]
w: 50
h: 50
}
@pulse = new PulseAnimation
@attach @pulse
@on 'touchstart', 'mousedown', (event) =>
if @intersects event.pos
@pulse.stop().play()
update: (delta) ->
super delta
@rotation += 1.5 * delta
class DemoApp extends Application
constructor: () ->
super {
bgColor: new Color 0, 0, 0
}
@attach new SpinningRectangle
@start()
new DemoApp
Open Source
The source code for GigaTech is openly available on GitHub.
License
GigaTech is released under the MIT license.
Credits
GigaTech is a Gigacorp product. The “Vector” and “Random” math classes were borrowed from the CoffeePhysics project. The animation system is built upon the Easie project.