Crafty Blog - JavaScript Game Engine Development

Development of Crafty

0 notes &

Progress!

Good news! Lots has been done today and Crafty is one step closer to coming out of beta.

A list of features/fixes completed:

  • Window resizing (fullscreen games will recalculate itself on window.resize)
  • .visible property for some optimization. Set it to false if an entity does not need drawing
  • Persistent entities through scenes. Just give your entity a component called “persist” and it will not be destroyed when a scene is changed.
  • The image component now works perfectly in DOM and canvas and uses createPattern so more efficient than 0.2.1
  • Collision component uses the MBR if it exists so rotated entities will have better collision.
  • Scrolling is more efficient and smaller due to the new drawing methods.
  • Unit testing has begun so once done should be bulletproof!
  • Smaller file size

Things are looking good. I haven’t had a chance to proof-read/”make betterer” the tutorial on building an RPG but it might soon be published and I plan to make it the first in a series where more and more features will be added.