Welcome to Eica World’s documentation!

Contents:

Eica World Game

Introduction

Documentation for EICA World Game

Eica World Game investigates transitivity in cognitive learning. It reproduces the filogenetic evolution of human race to match ontogenics.

Modules

Eica Word Game uses the library Brython-Crafty developed with Brython

All Eica Word Game functionality is alloted to single page, documented in :ref:`eica_module`_

Core Module Description

See also

Module eica

Note

Aggregates factory, control and interface units in this single module

Eica

Set of methods added to every single entity.

See also

Class eica.core

Note

Main API Unit.

Entity Module Description

See also

Module eica.entity

Note

Aggregates entity and component in this single module

Entity

Creates an entity. Any arguments will be applied in the same way .addComponent() is applied as a quick way to add components.

Any component added will augment the functionality of the created entity by assigning the properties and methods from the component to the entity.

Example

myEntity = Crafty().e("2D, DOM, Color");

Events

NewEntity [Data: { id:Number }]
When the entity is created and all components are added

See Also

See also

Class crafty.entity.Entity

Note

Composite Element.

Graphics Module Description

See also

Module eica.graphics

Note

Aggregates canvas and sprite in this single module

Canvas

When this component is added to an entity it will be drawn to the global canvas element. The canvas element (and hence all Canvas entities) is always rendered below any DOM entities.

Crafty.canvas.init() will be automatically called if it is not called already to initialize the canvas element.

Create a canvas entity like this

myEntity = Crafty().e("2D, Canvas, Color")\
     .color("green")\
     .attr(x= 13, y= 37, w= 42, h= 42);

Events

Draw [Data: {type: “canvas”, pos, co, ctx}]
when the entity is ready to be drawn to the stage
NoCanvas
if the browser does not support canvas

See also

Class eica.graphics.Canvas

Note

DOm Element Unit.

Sprite

Component for using tiles in a sprite map.

See also

Class eica.graphics.Sprite

Note

Composite Unit.

EICA World - API

Core API

Entity API

Graphics API

Indices and tables