GithubHelp home page GithubHelp logo

bombermine-assets's Introduction

bombermine-assets

Advanced asset manager for bombermine with entity-component architecture

This repository will contain basic implementation and tests.

design

  1. asset is constructed from JSON description

  2. every asset has a number of components

  3. component can reference other asset. in that case, asset cant be loaded before the other asset.

  4. component can contain subassets

  5. subassets reference is "parentAsset.childAsset"

  6. type of components:

    • single texture
    • multiple textures
    • single frame in texture
    • multiple frames in texture (for simple single-page atlas)
    • bombermine skin
    • bombermine constructor type (pony, human, hamster, e.t.c.)
    • spine atlas
    • spine skeleton
  7. two implementations:

class Asset extends Disposable {
	List<AssetComponent> components;
	Frame frame;
	Texture texture;
	List<Texture> textures;
	BombermineSkin skin;
	SpineAtlas spineAtlas;
	SpineData spineSkeleton;
}
class AssetComponent extends Disposable {
}
Asset.prototype = { lalala : "lalala" }
  1. multiple middlewares analyze description (which is json object) and construct components IN PARTICULAR ORDER

  2. there are two type of lists of assets - static and dynamic.

  3. disposing of dynamic asset means that NO ONE IS USING IT IN THE SCENE, also asset cant be disposed if some other asset component references it. If only child references it, its not a problem. There are no circular references.

bombermine-assets's People

Contributors

ivanpopelyshev avatar

Watchers

 avatar  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.