Welcome to a complete HTML5 tutorial with demo of a machine learning algorithm for the Flappy Bird video game. The aim of this experiment is programming an artificial intelligence game controller using neural networks and a genetic algorithm.
In this tutorial we will use a database of images previously scraped from a Reddit JSON document to create a simple game based on an idea of guessing which of two images has a better upvotes score (karma).
Regarding Reddit JSON API, you can get a JSON document by adding /.json to any Reddit URL. This can be used to extract various data from any subreddit. To show how to do that in HTML5 using Phaser framework, we will create a Reddit’s Image Scraper application.
Some users asked me to update the Flixel & Mochi game template by implementing the last versions of the Flixel and Mochiads libraries so here is a new version of the template with the game example known as Don’t Press Space 2!
A tutorial about creating a flash game template by using Flixel game library with Mochi ads and leaderboard. To show how to join these libraries I created a pointless text adventure game called Don’t Press Space.