Fixed moving platform/collectibles code

Now you can define the speed of platform in the level creation itself.
Just define two properties (speedX, speedY) for each moving object in
the tiled map. Value usually varies between 1-3.