Git Product home page Git Product logo

flaxen's Introduction

#Flaxen Flaxen is a Haxe-based solution that combines a game engine (HaxePunk) with an entity component system (Ash-Haxe).

OVERVIEW

I'm putting up this library partially because other people might be interested in it, but mostly because it's the base code I've been using for game jams. It's pretty much just for me. That being said, you can use this code if you like, but it's entirely at your own risk. It evolves on a whim, and I break it a lot, so there you go.

HOW TO USE IT

I've got a few demos in there to show off some of the features. Essentially you create a Flaxen object, register any of your systems, and start adding entities with newSingleton or newEntity. The systems process entities that meet certain characteristics (see nodes in Ash). To add an image to the screen you'll need to create an entity with an Image component and also a Position component. You can then add Scale, Rotation, Offset, and Origin components. An Image can also be combined with an ImageGrid (specifes how a packed image is gridded) and either a Tile (to pick one image from the pack) or a Grid (to show multiple images in a tiled map). You can move entities with Velocity and the MovementSystem or adding a Tween. Sequential steps can be managed by creating an ActionQueue. There's also a fledgling layout manager in there for handling portrait/landscape layout differences and scaling appropriately.

At some point I may provide proper documentation, but for now check out HaxePunk and Ash-Haxe, then look at the few demos provided and dig into the built-in systems, components, and view subclasses. You can look at my Ludum Dare 28 entry as an example of the library, although you may have to check out an earlier Flaxen to get it to compile. Playable version here.

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.