Skip to content
sorenbs edited this page Nov 3, 2012 · 9 revisions

0.5.3

November 2012

  • allow svg images in loader
  • detach from parent when destroyed to fix memory leak
  • better handling of corner cases in hashmap by using Math.round
  • improved documentation
  • other bugfixes and small improvements.

commits

0.5.2

October 2012

  • For autoPause = true, check that game is actually paused on window blur before pausing
  • Added ability to pause/unpause/togglePause of individual audio objects
  • better input handling for Text component
  • Improved support for local storage including IE10 and new versions of Chrome and FF
  • Crafty.viewport.bounds variable can be used to override the game area that is normally calculated by Crafty.map.boundaries()

commits

Crafty Builder

September 2012

0.5.1

August 2012

  • CraftyStop is no longer triggered when the game is paused
  • Fix bug that prevented inputs from triggering when game is paused
  • Added FPS component to measure and display fps rate
  • Crafty.diamondIso added
  • Fix the startDrag function
  • fix Crafty.pause() in Firefox
  • SpriteAnimation .isPlaying() fixed
  • Crafty.addEntityFactory and Crafty.newFactoryEntity allows for the repeatable creation of an Entity
  • documentation improved
  • documentation for Crafty.math.Vector2D and Crafty.math.Matrix2D added (lots of stuff!)

commits

0.5.0

july 2012

  • fixed IE bug
  • improvements to touch support
  • viewport is reset when scene is called
  • mute, unmute and toggle sound fixed/added
  • only update css style for DOM entities when changed. This improves performance and mitigates a problem on Chrome where it will download the same images again and again
  • in Multiway allow subsequent calls to the constructor to change settings
  • Crafty.stop(true) resets all state so you can start a new (or the same) game on the page

commits

0.4.9

June 2012

  • Crafty.selected indicates if the stage has focus. If so preventDefault and stopPropagation is called on keyboard events to prevent scrolling of the page.
  • particles renamed to Particles and the stage is now cleaned when the component is removed.
  • Improved module URI detection to allow for HTTPS:// and FILE://
  • Added 2D.unflip(dir)
  • Adjusted how "Change" is triggered on flipping to minimize flooding
  • fix #243 fix areaMap for canvas
  • Added support for ZQSD keys in Fourway and Twoway components (for azerty keyboard layout)
  • Fixes #252. Gravity and Multiway can now be used on the same entity.
  • Modified the Gravity constant.
  • Fix cross browser issue with sound.
  • Crafty.DOM.inner.x and y are now calculated correctly
  • Added Crafty.viewport.scale
  • Crafty.asset introduced as getter and setter for assets. Use this instead of the Crafty.assets array!
  • Fix SpriteAnimation so it plays last frame of animation
  • .setName() function on entities used by DebugBar
  • Improvements on mobile support
  • Added Crafty.device
  • Lots of documentation added

commits

0.4.8

May 2012

  • entity.image() fixed for canvas entities
  • support different polygons for collision checking and mouse events
  • Loader creates new Image objects only if there is no existing, also for audio.
  • Fixed sounds, added volume parameter to play function
  • More documentation
  • Better layout of the Documentation

commits

0.4.7

April 2012

  • Fix bug with padding in sprite animations
  • Fix bug in math.randomElementOfArray
  • Improved documentation for SpriteAnimation and parts of core
  • this._flipX and this._flipY support for canvas entities

commits

0.4.6

Marts 2012

  • Better documentation for internals, including HashMap and DrawManager.
  • Crafty.module supports uppercase versions (RELEASE etc.) and now uses craftycomponents.com as default repo
  • .color() now acts as a getter
  • Rename .delay to .timeout and introduce a new Delay component that is smarter about game pause etc.
  • Fix the play sound forever issue
  • Crafty.isPaused() returns whether the game is paused or not.
  • Better support for tween chaining
  • Remove the div representation when DOM component is removed from entity. This enables you to switch between DOM and canvas without polluting the dom.
  • .toggleComponent added
  • .getDomId added to DOM component
  • .dragDirection added to Draggable component

commits

0.4.5

February 2012

  • Crafty.module() is used to load community components from craftycomponents.com
  • Crafty.math added with lots of vector, matrix and other useful functions.
  • randRange() renamed to math.randomInt()
  • persist component renamed to Persist
  • SceneChange event triggered when a scene is played
  • Crafty.storage added. It's an abstraction over the different implementations of local storage providing basic save/load functionality across sessions
  • New viewport functions: follow, centerOn, zoom, pan, mouselook
  • Crafty.scene optionally accepts an uninit function as a third parameter when defining a scene.
  • New isometric functions: pos2px, px2pos ,centerAt ,area,slice
  • The API documentation is now more exhaustive than ever :-)
  • .font is removed. Use .css to set style property instead.
  • e.mouseButton added to all mouse events to normalize across browsers. Used like: if(e.mouseButton == Crafty.mouseButtons.RIGHT) ...
  • .destroy() now destroys all attached entities.
  • MouseMove event added.
  • DoubleClick event added.
  • Text component supports canvas
  • Text component supports evaluating a function with the entity bound to this.
  • Better handling of pausing/unpausing when the user changes tabs
  • Crafty.audio.mute can take a bool.
  • Lots of bug fixes.

0.4.4

January 2012

  • _SAT now also returns normal of side hit
  • Changed keys are passed as data for the Change event
  • Added support for circle collision with Crafty.circle, which behaves like Crafty.polygon
  • Added TweenEnd event. It takes the Tweened property as an argument
  • Added HTML component.

0.4.3

  • .attach() takes multiple objects
  • DOM elements get components added as classes
  • Animate renamed to SpriteAnimation
  • Event names changed to PascalCase
  • Sprite takes a tile height if not square

0.4.2

  • Added a Crafty.settings object
  • Added a smaller setter function. Removed getter
  • Removed unused components, Group, Health and Score.
  • Added a namespace for DOM methods (Crafty.DOM)

0.4.1

  • Getters and setters added
Clone this wiki locally