r/howdidtheycodeit • u/FriedChimkin • Jul 26 '21
How did they code the Google Doodle Champion Island Games?
On today's front page of Google, there is a very cool JRPG-style Google Doodle game. It runs very well and is much more elaborate than previous Google Doodles.
Here are some links to what I'm talking about:
www.google.com (because it's the on the front page of Google right now)
I would have guessed HTML5 but I am a noob so I don't know
Thank you!
43
Upvotes
12
u/GeoffreyDay Jul 26 '21
Skimmed the html (anyone can do this, you can open chromes devtools by right clicking then hitting “inspect”; after you click the button in the top left, it will jump to the page source of whatever you click on). Looks like the game display is an html canvas they’re writing to with a JavaScript script (as I’d imagine near any in-browser game would be these days). I googled around and someone on GitHub pulled all the game resources down; it’s inscrutable because the code is all minified and probably obfuscated (meaning: the source code has been processed to be as small and illegible as possible), but the files can give you some sort of idea of what’s going on. There’s some sounds files, pictures, the JS program itself, and some supportive data structures.
github.com/gameblabla/doodle-champion-island-games-google
2
u/jpterodactyl Jul 26 '21
I made a a shitty JavaScript RPG attempt once, I can send you the spaghetti source code if you want.
It’s most likely nothing as clean as whatever google is putting out there though. So, it might not actually help.
5
u/[deleted] Jul 26 '21
This is way too broad of a question. Which part do you have trouble with?
1
u/Reasonable-Ad8220 Jul 26 '21
Cool