Skip to content

LaoYangList/general-engine

ย 
ย 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

general-engine

npm Build Status codebeat badge

General Engine is a framework to build creative scenarios.

Gallery

To check out live examples created with general-engine, please visit gallery website.

๐ŸŒณ Tree

๐Ÿ•Š Flyer

๐Ÿ’ฅ Walker

๐ŸŒ€ Endless Abyss

โš” Game of life

๐ŸŒฟ L-System Tree

๐ŸŽต Audio Visualizer

Install

Download a stable release and include the script in your web page:

<script src="general-engine.core.js" type="text/javascript"></script>

You can also install using the package manager NPM.

$ npm install general-engine

Hello World

The following is a simple hello-world example.

import { GeneralInterface, GeneralObject } from "../src/Core/GeneralObject";

class IPrintInterface extends GeneralInterface {
    print = [];
}

class PrintBase extends GeneralObject<IPrintInterface>{
    constructor() {
        super();
        this.implements(new IPrintInterface());
    }
}

class PrintA extends PrintBase {
    print() {
        console.log("Hello World");
    }
}

class PrintB extends PrintBase {
    print() {
        console.log("Hello General-Engine");
    }
}

new PrintA().joint(new PrintB()).processes.print.process();

// Output:
// Hello World
// Hello General-Engine

Building

To build you must first install node.js and gulp, then run

$ npm install

This will install the required build dependencies, then run

$ gulp watch

to spawn a development server.

License

About

๐Ÿš€ Build creative scenarios by general system

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 90.4%
  • JavaScript 5.8%
  • HTML 2.6%
  • CSS 1.2%