Press the green flag, and watch. You can use this engine with credit, or as a tutorial. I will make a tutorial from this, though, so you may want to wait for that.
I did not use anything but my good ol' knowledge for this. Make sure that if you use this X and Y engine, that you use with credit.