0.1.17 • Published 7 years ago

avg-engine v0.1.17

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

A powerful & lightweight AVG data engine without rendering.

In Development

  • In this development phase, many features are far from perfect.
  • A game client renderering implementation that depend on avg.engine is planning to open source.

About AVGEgine

AVG Engine open source project that aims to provide a powerful and cross platform game data engine to work with your custom game client implementation.

Getting started

Install dependencies:

$ git clone https://github.com/AngryPowman/avg.engine
$ cd avg.engine
$ npm install

We recommended use yarn for dependency management.

Run test:

$ npm run test

The following output as your will see:

play sound: assets/music.mp3
show text: { text: 'Hello World' }
show text: { text: 'I am saying something.' }

It means you are running some AVG (game process) events in a text-only mode before you have a renderering implementation.

AVG Script

AVGScript is a lightweight JavaScript-Like script based on JavaScript. You can easily write some code to control your game flow and logic.

Here is a code snippet in test/start.avs shows you about it:

let dialogue = 'Hello World';
let willSay = true;

api.playSound('assets/music.mp3');
api.text({ text: dialogue });

if (willSay) {
    api.text({ text: 'I am saying something.' });
}

Examples

If you would like to create your own game, you should just doing less work in test/app.ts:

import * as avg from "../engine";

let game = new avg.AVGGame();
game.start('./dist/test/start.avs');
0.1.17

7 years ago

0.1.16

7 years ago

0.1.15

7 years ago

0.1.14

7 years ago

0.1.13

7 years ago

0.1.12

7 years ago

0.1.11

7 years ago

0.1.0

7 years ago

0.0.1

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago