Pac Man or Mario Portable Esplora 1.8 TFT screen

I'm trying to learn how to create a simplistic 8 bit Mario or Pac Man game for use on 1.8 TFT screen and Esplora. What are my resources for doing so? I've already got an advanced PONG and even Snake working. I've played with the examples that are built into the arduino software. Where can I find advanced library gaming functions for use with arduino esplora online? I'd like to be able to reverse engineer existing games such as Pac Man, Atari games or NES and create and custom my own.

From what I've read on Arduino, the Arduino software is programmed with javascript, so in theory, can't I program a videogame within Javascript and transfer it to Esplora as a sketch?
How do I go about running Pac Man javascript in Arduino? Something like this? Source Code : Pacman Game with Java – My Pocket

How would I go about porting processing.js or some other javascript so that I can create a simple Mario world game from here:

How about putting the games from this website onto the Esplora and Tft screen?!

Thank you in advance!