Schedule in PHP: Operations with datetime

How to work with days and hours in PHP?

To work with dates and hours we are going to draw a schedule with entries every 30 minutes.

The solution:

Captura de pantalla 2017-02-21 a las 11.29.41

Here is the code, I promise I am going to explain it soon 😛


Complete HTML5 Concentration game made with PIXI.js 3

This post is an updated copy from the article of the great Emanuele Feronato’s blog

If you are learning pixi.js then you know that in this moment there is version 3 (3.08 on 20th october of 2015), but from the resources of the official page  you get a link to a non updated article to introduce you in pixi.js, programming a concentration game.

What are the changes that you have to make to go to version 3 of pixi.js?

  • “DisplayObjectContainer” is “Container” now
  • “PIXI.AssetLoader” is “PIXI.loader”, don’t need to use new, look isn’t capitalized 😉
  • “requestAnimFrame” is “requestAnimationFrame”, because that was a pollyfill and now this is the standard way. Look at the documentation:
  • PIXI.Stage has been remove

Updated version of the source code, pixi.js v3:

Source code: concentration

I have refactored the code, using objects and inheritance, let’s see