Build the hyper casual game Circle Race in 80 lines of Phaser code.

Posted on 4th Jun 2021. Follow @phaser_ and get the Phaser World newsletter.

image

Emanuele Feronato writes: "Some days ago I played “Circle Race“, a HTML5 game built with Construct.

In this easy but fun hyper casual game, you control a ball running around a circle. I said “you control” but actually you don’t control anything. The ball runs on its own, and you can just tap and hold to speed it up.

Too easy? Problems come into play when enemy balls appear running around another circle, overlapping the circle followed by our ball. If an enemy hits the ball, it’s game over, so it’s up to players to speed up the ball wisely, to avoid collisions.

That’s it. and I managed to build in less than 100 lines, with a lot of room for customization. And also consider I did not use any sprite, all the graphic assets you see in the game, are generated on the fly."

Read More

Learn to code and lead your intrepid crew on a mission to save The Cloud in TwilioQuest, a PC role-playing game inspired by classics of the 16-bit era. Free forever, and available now for Windows, Mac, and Linux.

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