Updating a 3 year old prototype to take advantage of cached Tweens.

Posted on 4th Aug 2017. Follow @phaser_ and get the Phaser World newsletter.

image

Emanuele Feronato took his 3 year old Spellfall game prototype and updated it for Phaser CE 2.8.2: "With the update of Phaser CE to 2.8.2, I am updating a 3 years old prototype – Spellfall – to the latest Phaser version, adding more comments to the source code and above all reusing tweens – actually, reusing THE tween – to save memory, CPU and improve performance.

Rather than creating a new tween at every player move, we create only one tween and update its target property according to the tile to be moved."

Read More


The first book on the creation of HTML5 cross platform games using Phaser 3 and other free software.
  • By Emanuele Feronato
  • 155 Pages
  • 28 Source Code Examples
  • Build a complete game from start to finish
  • Cross Platform
  • Scaling for devices
Buy Now
$19