Version 1.20 of Impact is now available on your download page. This version fixes a ton of issues, adds a lot of small features, improves performance and applies a bit of polish.

One of the features that will make your life easier is the new zoom functionality in Weltmeister. It&039;s bound to the mousewheel by default; check your #lib/weltmeister/config.js if you want to bind it to some other keys.

The whole Engine has been put into Strict Mode, which improves performance a bit and also surfaced global var leakage in some places. Try enabling Strict Mode for your own modules as well; it really helps to write saner code.

Impact now uses requestAnimationFrame where available. It won't make the code any faster, but helps the browser to draw frames in sync with the display's refresh rate, making animations much smoother.

As always, if you&039;re updating from a previous version, take care to not overwrite your own files. You'll just need to update the files in #lib/impact/, lib/weltmeister/ and the weltmeister.html file.

Changelog - Impact

  • Added alpha, letterSpacing and lineSpacing properties for fonts
  • Fixed widthForString, added heightForString for fonts
  • Added getMapByName() method for the Game
  • Added pause() method for timers
  • Added ig.System.drawMode to specify authentic, smooth or subpixel positioning; removed smoothPositioning property
  • Added ig.prefix to load Impact from any subdirectory
  • Added ig.assert() function for debug module
  • Added ig.debug.showPanel() method
  • Added lastSlope property for collision maps to allow for custom tiles
  • Added use requestAnimationFrame where available
  • Enabled strict mode for the whole framework
  • Fixed collision for one-way tiles
  • Fixed bug where the Game&039;s #.sortBy property was overwritten on instantiation
  • Fixed mousewheel support to support all major browsers
  • Fixed ignore killed entities in checks
  • Sorting by POS_Y now takes the entity size into account
  • Fixed module resolution and DOMReady when the page starts in the complete readyState.

Changelog - Weltmeister

  • Added Mousewheel zoom
  • Added _wmIgnore flag for entities
  • Added zIndex support for entities in Weltmeister
  • Auto append .js suffix in level save dialog if missing
  • Fixed variable name for levels if filename contains a dash
  • Fixed function to show currently selected tile in the tile selection menu
  • Fixed requiring entity modules multiple times in level files
  • Fixed sluggishness in Firefox when panning
  • Sanitized lastLevel cookie


Version 0.9.1 of iOSImpact fixes font drawing for multi-line strings and enables compatibility with Impact 1.20. It's still beta ;)

Wednesday, May 23rd 2012
Tags: Releases