fiongogo/blog

Perfect Square!

Opened this issue · 0 comments

HTML5 prototype of iOS game “Perfect Square!” made with Phaser using only tweens in 100 lines of code

只使用补间在100行代码HTML5原型的iOS游戏“完美坊!”与移相器制作

Fit the square onto the platform so that it’s aligned perfectly. Touch it to grow and release to let it fall! It may sound simple, but this one touch game will take super precision and timing to master it!

Although it may seem a physics game, I can show you it can be made only with tweens, thanks to Phaser.

Let’s have a look at the prototype I made:

适合方形到平台上,这样它的完美对齐。触摸它生长和释放让它倒下!这听起来可能很简单,但是这一个触控游戏将采取超精密和时机掌握它!

虽然这似乎是一个物理游戏,我可以告诉你它只能补间,由于移相器进行。

让我们来看看我做的原型:

Press and hold to make the square grow, release to drop it. As you can see all the cute animations you can see in original game have been featured.

I am showing you the source code, still uncommented but a step by step explaination will follow later this week

按住,使方形成长,释放掉落。正如你可以看到所有的可爱的动画可以在原来的游戏中看到了特色。

我显示你的源代码,仍然注释掉而是一步步的解释将在本周晚些时候