Sha256: 5c3ed96b47a4b4a26d166a39575c5275fd0994c3b952135a74406c7c2243ba6a

Contents?: true

Size: 1.93 KB

Versions: 19

Compression:

Stored size: 1.93 KB

Contents

------------- EntityJS Gem ----------------------

The EntityJS Gem lets you quickly create HTML5 javascript games.

# Directory Structure

## /assets 
Contains all sounds, images and data files. Place all sounds in the sounds directory
and all the images in the images directory. These directories will be looked at
and an asset array will be created for easy asset loading (see scripts/scenes/load.js)

Creating any other directory or placing files in the levels directory will be seen
as data files and will be read and automatically put in js files.

For example, if I have a directory like /assets/animations/monster.json.

The file will automatically be read upon calling 'entityjs refresh' and will be turned into this:

re.e('monster.json animation')
.attr(**Animation JSON here**);

Which means you can edit files in different programs and not worry about copying and pasting
the contents. Just run entityjs refresh.

At the moment JSON, XML and TMX is supported but in the future, YAML, and CSV will be supported.
TMX is a special XML format for a tile map editor called tiled.

## /builds

Contains assets and minified code for the game.

## /scripts

Contains javascripts for the game.

## /tests

Contains tests for the game. It is good practice to keep this structured exactly the same as the scripts
directory.

## config.yml

A configuration file in yaml. This can be edited in any text editor.

## readme.txt

Good practice to make one for every game to help other people.

# Commands

## create a new entityjs game
entityjs new [project_name]

- example
entityjs new alien_shooter

- create game with arrow_keys template
entityjs new alien_shooter alien arrow_keys

## create a new component
entityjs comp [component_name]

- example
entityjs comp hero

## build game
entityjs build

Exports game in builds directory

## build game with custom name
entityjs build release1

## Run server
entityjs server
or
entityjs s

Navigate to localhost:2345 to play the game.

Version data entries

19 entries across 8 versions & 1 rubygems

Version Path
entityjs-0.4.4 templates/circle/readme.txt
entityjs-0.4.4 templates/isometric/readme.txt
entityjs-0.4.4 templates/tiltmaze/readme.txt
entityjs-0.4.3 templates/tiltmaze/readme.txt
entityjs-0.4.3 templates/isometric/readme.txt
entityjs-0.4.3 templates/circle/readme.txt
entityjs-0.4.2 templates/circle/readme.txt
entityjs-0.4.2 templates/tiltmaze/readme.txt
entityjs-0.4.2 templates/isometric/readme.txt
entityjs-0.4.1 templates/tiltmaze/readme.txt
entityjs-0.4.1 templates/circle/readme.txt
entityjs-0.4.1 templates/isometric/readme.txt
entityjs-0.4.0 templates/circle/readme.txt
entityjs-0.4.0 templates/tiltmaze/readme.txt
entityjs-0.4.0 templates/isometric/readme.txt
entityjs-0.3.2 templates/tiltmaze/readme.txt
entityjs-0.3.2 templates/circle/readme.txt
entityjs-0.3.1 templates/blank/readme.txt
entityjs-0.3.0 templates/blank/readme.txt