Code Monkey home page Code Monkey logo

simple_art_engine's Introduction

Simple Art Engine

This is based on code created by HashLips Art Engine

Project Setup

How to use

Configuration

  • See ./config/example.js for an example of what configuration to pass to the script
  • The config object requires two properties, name, and attributes
    • name - the character name which will be used to generate the image filename
    • attributes - an array with each attribute being an object containing name and type
      • Each attribute name and type must match up with the image filenames that exist in ./config/attributes, e.g. {race: 'human'} maps to ./config/attributes/race/human.png

Run the code

You can run it by passing config one of two ways:

  1. Pass a stringified JSON argument ot the script, e.g.
npm run build '{"attributes":[{"name":"race","type":"human"},{"name":"class","type":"fighter"},{"name":"face","type":"angry"},{"name":"hair","type":"black"},{"name":"weapon","type":"longsword"}],"name":"Dacello"}'
  1. Add and export a valid config in ./config/index.js which will be pulled in if no arguments are passed. In this case just run npm run build.

simple_art_engine's People

Contributors

dacello avatar hashlips avatar iqbalfasri avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.