Category: Javascript
-
Build a HTML5 game like DROP’d using Phaser and Arcade Physics in less than 150 lines of code
"DROP'd" is a cute and fun one-button endless runner available for iOS. I managed to build a HTML5 prototype in less than 150 lines of code. Powered by Phaser and Arcade physics. Full source code available.
-
Understanding perfect maze generation row after row with Eller algorithm, using a pure JavaScript class
There are a lot of algorithms to generate perfect mazes, but I am showing you the way to build a perfect maze line by line, virtually infinite, with Eller generation. Full pure JavaScript class included in the downloadable example.
-
HTML5 Cross Platform Game Development using Phaser 3 – Build a Vertical Endless Runner – UPDATED
Here we go, the long awaited update to HTML5 Cross Platform Game Development has been released, build a HTML5 vertical endless runner using Phaser 3 with this interactive course.
-
Add Font Awesome icons to your HTML5 games powered by Phaser thanks to its DOM support
The power of Phaser HTML5 framework + the style of Font Awesome icons, working together. Complete commented example available for download.
-
“Phaser 3 HTML5 Cross Platform Game Development – Endless Runner” interactive course updated to Phaser 3.50
From the experience of more than 400 Phaser tutorials, a complete interactive course about the development of a HTML5 cross platform commercial game, updated to Phaser 3.50
-
Add jQuery UI component to your HTML5 games powered by Phaser thanks to its DOM support
The power of Phaser HTML5 framework + the beauty of jQuery UI components, working together. Complete commented example available for download.
-
Add Bootstrap component to your HTML5 games powered by Phaser thanks to its DOM support
The power of Phaser HTML5 framework + the beauty of Boostrap components, working together. Complete commented example available for download.
-
“CLOCKS – The Game” HTML5 playable game with 10 levels updated to Phaser 3 with commented source code
Play the first 10 levels of the original "CLOCKS - The Game" in this HTML5 port of the game powered by Phaser and Arcade physics, then get the completely commented source code.
-
Build a HTML5 game like GAMEE’s “Color Hit” only using tweens and trigonometry, powered by Phaser
"Color Hit" is a fun hyper casual game I was able to prototype in less than 100 lines of code. Full HTML5 working example powered by Phaser, using only tweens and a bit of trigonometry. Commented source code available.
-
How to find adjacent tiles in hexagonal maps – ALL and EVERY case explained and managed by a single file.
There are four types of hexagon tile based maps, according to hexagon placement, number of rows and columns, but I wrote a single script to manage them all, with four HTML5 examples powered by Phaser. Full source code available.
-
HTML5 “2048” game built with Phaser 3 updated: determining when there aren’t more moves
How to check when there aren't more moves in a "1024" game? In the updated prototype of "2048", my HTML5 take on this game built with Phaser 3, I am explaining it. Full source code available.
-
Understanding JavaScript hoisting
Sometimes is good to go back to the basics, remember a big building needs strong foundations. Here is a guide to understand JavaScript hoisting, if some of your variables get weird values, this post is for you.