forked from craftyjs/Crafty
-
Notifications
You must be signed in to change notification settings - Fork 1
Release Notes
starwed edited this page Jun 4, 2013
·
9 revisions
##0.5.4
June 2013
- Added a workaround for a webkit bug that prevented the load callback from triggering when using images that were already loaded. (This often caused Tiled-Map-Importer to fail).
- Rotation now works properly for elements with children attached, including collision areas
- The "Text" component now provides a default font size and family ("10px sans-serif") making it possible to set one and not the other; entities no longer share font information; DOM text can be set to be unselectable
- Inputs and textareas should work properly with canvas now
- "Delay" component's
delay
now allows for repeating events; returns the proper result - Canvas and general drawing performance should be improved
- indexedDB implementation is updated
- Setting
_alpha=0
andvisible=false
will now work properly - Keyboard events should now work properly in Opera.
- When initializing Crafty, you can provide an element to use as the stage
Known Issues
- Multiple issues when changing the viewport
- Quirks with SpriteAnimation in some corner cases
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.
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()
September 2012
- No improvements to the Crafty engine was released this month. Efforts were spend on:
- Online IDE www.craftybuilder.com Expect many changes in the future
- a major rewrite of the drawing system. See https://groups.google.com/forum/?fromgroups=#!topic/craftyjs/b73gpKLE7nE
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!)
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
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
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
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
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
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.
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.
- .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
- 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)
- Getters and setters added