Giter Site home page Giter Site logo

shirajuki / js-sprite-animation-test Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 1.8 MB

Implementation comparison of Javascript rendering/game engines for sprite animations: PixiJS, Phaser, Kaboom, Kontra and Canvas.

Home Page: https://shirajuki.js.org/js-sprite-animation-test/

HTML 15.84% CSS 4.30% JavaScript 78.76% Shell 1.10%

js-sprite-animation-test's Introduction

Javascript sprite animation test on Pixi.js, Phaser, Kaboom, Kontra and Canvas

https://shirajuki.js.org/js-sprite-animation-test/

This sprite animation test compares several Javascript-based rendering/game engines, including Pixi.js, Phaser, Kaboom, Kontra. Canvas was added to the comparison as a baseline. The test includes the implementation of keyboard input, sprite animation rendering, text rendering, and a camera following a sprite, all while utilizing the respective engines as best as possible.

Implemented features

  • Keyboard input
  • Spritesheet
  • Animation
  • Text rendering
  • Sprite rendering
  • Camera

Results

The source code for the results with examples to how the features were implemented in the respective engines can be seen here.

The file structure is as follows:

src
└── scripts
    ├── canvas.js        - Canvas implementation
    ├── engine.js        - The abstract Engine class
    ├── kaboom.js        - Kaboom implementation
    ├── kontra.js        - Kontra implementation
    ├── phaser.js        - Phaser implementation
    └── pixi.js          - Pixi.js implementation

js-sprite-animation-test's People

Contributors

shirajuki avatar

Stargazers

 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.