I'm a student using Khan Academy to learn coding, and I've made quite a progress there. I've also learnt a fair bit of HTML, CSS and JS in my college. I was wondering if there's a way to play my game (on Khan Academy, written in ProcessingJS) as an offline HTML page.
Now, I've done a fair amount of research before asking here. I've tried the following:
1. This HTML template on Khan Academy.
2. This template too.
3. And this one on Stack Overflow too.
Using any of the above templates gives me a half-baked output, and it seems that the keyboard controls aren't working. Neither are the animations.
Thanks in advance!
However, what I'm getting in my offline webpage is a deep blue canvas, with a yellow Pacman, that's neither chewing nor moving when arrow keys are pressed.
The above three methods and the solution suggested by Kevin (below) yield the same, unresponsive result. – Adish War Oct 25 '17 at 15:02