Gamalto

Fork me on GitHub

Namespace Gamalto Overview

Gamalto

Gamalto is a JavaScript framework with no external libraries dependency. It provides small base objects, including complete source code, that can be easily extended to meet your needs.

It is lightweight, customiazable and take advantage of the HTML5 Canvas API specification widely available in all modern browsers.

It is the perfect companion for retrogaming style game developers with support for tile-based games, palettized graphics and much more!

Objects

Name Description
Animation

Creates a new animation sequence from a sprites sheet.

Animator

Base object to create time-based multiframe animation objects. It's not meant to be used directly.

AudioChannel
BaseAnimation

Abstract object to create an animation sequence. It is not meant to be used directly.

BaseAudioMixer

Abstract object to create an audio mixer. It is not meant to be used directly by the client code.

BaseCanvas

Abstract object to create a drawing canvas.

BaseLibrary

Base object to implement resources managers. It's not meant to be used directly by the client code.

BasePolyline

Abstract object to create a line-based shape.

BaseSound

Abstract object to create an audio mixer compatible sound. It is not meant to be used directly by the client code.

Bitmap

Creates a framework compatible bitmap.

BitmapLibrary

Creates a bitmap resource manager.

Blinker

Helper object to handle blinking stuff.

Box

Creates a lightweight box object.

Broadcaster

Creates messages manager object.

Canvas2D

Creates a canvas based on the W3C Canvas 2D API.

Circle

Creates a circle shape.

Color

Creates a RGBA color object.

Core

Core object of the Gamalto framework.

DataLibrary

Creates a JSON resource manager.

Event
EventManager
Font

Creates a new graphical font from a bitmap.

HTML5Sound
IndexedBitmap

Creates a framework compatible bitmap with indexed palette.

IndexedImage

Creates a new image with indexed palette.

KeyboardEvent
MemoryStream
MouseEvent
Movable

Base object to create a movable entity. It's not meant to be used directly.

Object

Base object of all Gamalto objects.

Palette
Path

Creates a path.

PathAnimator

Creates a new path animator.

Pattern
Polygon

Creates a polygon shape.

ReadableStream

Base object to create readable stream. It's not meant to be used directly.

Rect

Creates a rectangle shape.

Renderer2D

Creates a rendering engine for a canvas.

Screen

Creates a new surface to handle the main display.

Scroller

Creates a multi-region scrolling object.

ScrollingRegion

Creates an object defining the movable region of a scroller.

SectionList

Abstract object to create a list a sections. It is not meant to be used directly.

SeekableStream

Base object to create seekable streams. It's not meant to be used directly.

Sequence

Creates a new events sequence.

Shape

Abstract object to create a geometric shape.

Size

Creates a simple size object from the specified dimensions.

SoundPool
SpriteSheet

Creates a set of sprites from a bitmap.

State
Subscription

Creates a context to manage broadcaster subscriptions state. It is not meant to be use directly.

Surface

Creates a new drawing surface.

TextLibrary

Creates a text resource manager.

Tile

Basic tile element.

TiledAnimation

Creates a new animation sequence using tile-based blocks.

TiledBlock

Creates a new rectangular tile-based image.

TileGroup

Base object to create a tile-based image.

TileMap

Creates a new rectangular tile-based map.

TileSet

Creates a set of tiles from a bitmap to render tile-based graphics.

Timer

Manages a timer which updates the game by triggering actions at specific time.

Transform

Transformation information object.

Vector2

Creates a a vector with two components.

Version

Represents a version number.

WebAudioSound
XMLLibrary

Creates an XML resource manager.

Namespaces

Name Description
Async

Helper object to handle asynchronous execution.

AudioMixer
Convert

Helper object to convert numbers.

Members

NONE

static constant

Common value for undefined propertes.

Methods

init(loader)

static

This is the first function to call before using the Gamalto framework.

Parameters
Name Type Description
loader function

The function to call after the initialization is complete.

Example
// Startup code
Gamalto.init(function() {
    // ... Your code here
});
Documentation generated by JSDoc 3.3.2 on Sun Sep 13 2015 20:13:31 GMT+0200 (CEST)