Changed location of 'modernizr' and 'pixi.dev' scripts.Removed 'requestAnimationFrame' function definition. Removed 'Rectangle' constructor function and prototype definition. Changed parameters of 'Circle' contructor function and function definition. The prototype of 'Circle' function is set to an object that inherits 'PIXI.Sprite.prototype' object. Added 'updatePosition' method to 'Circle' prototype which updates circle's position, checks if circle collide with walls and blocks, checks if circle is out of the screen and removes it if it is. Changed 'wallCollide' method of 'Circle', circle is removed if it passes bottom of the screen. Removed 'radius' property from 'Circle' object because the anchor point is at the top left corner of a virtual rectangle surrounding circle. Changed 'hitTestBlock' method of 'Circle' prototype, removed the 'radius' property from calculations. Changed 'blockCollide' method of 'Circle' prototype, removed the 'radius' property from calculations, added 2 when checking if block is hit by circle from downside. Changed 'getIntersectionRect' method of 'Circle' prototype, removed 'radius' property from calculations. Changed 'World' constructor function, slider replace by 'PIXI.Sprite' object. Removed 'removeCircle' method from 'World' prototype. Added 'removeOutOfScreenCircles' method to 'World' prototype. Removed 'drawBackground' method from 'World' prototype. Added 'addMessage' method to 'World' prototype. Added 'updateCirclesPositions' to 'World' prototype. Added 'updateSliderPosition' to 'World' prototype. Changed 'draw' method of 'World' prototype. Changed 'onWindowLoaded' function, added code for loading assets using 'PIXI.AssetsLoader' object.
Changed location of 'modernizr' and 'pixi.dev' scripts.Removed 'requestAnimationFrame' function definition. Removed 'Rectangle' constructor function and prototype definition. Changed parameters of 'Circle' contructor function and function definition. The prototype of 'Circle' function is set to an object that inherits 'PIXI.Sprite.prototype' object. Added 'updatePosition' method to 'Circle' prototype which updates circle's position, checks if circle collide with walls and blocks, checks if circle is out of the screen and removes it if it is. Changed 'wallCollide' method of 'Circle', circle is removed if it passes bottom of the screen. Removed 'radius' property from 'Circle' object because the anchor point is at the top left corner of a virtual rectangle surrounding circle. Changed 'hitTestBlock' method of 'Circle' prototype, removed the 'radius' property from calculations. Changed 'blockCollide' method of 'Circle' prototype, removed the 'radius' property from calculations, added 2 when checking if block is hit by circle from downside. Changed 'getIntersectionRect' method of 'Circle' prototype, removed 'radius' property from calculations. Changed 'World' constructor function, slider replace by 'PIXI.Sprite' object. Removed 'removeCircle' method from 'World' prototype. Added 'removeOutOfScreenCircles' method to 'World' prototype. Removed 'drawBackground' method from 'World' prototype. Added 'addMessage' method to 'World' prototype. Added 'updateCirclesPositions' to 'World' prototype. Added 'updateSliderPosition' to 'World' prototype. Changed 'draw' method of 'World' prototype. Changed 'onWindowLoaded' function, added code for loading assets using 'PIXI.AssetsLoader' object.

ranzer/Batty,ranzer/Batty