might be doxing myself here but oh well, the original doc went down :/ nvm i think its fine okay. this is a tutorial on how to run a html game on a Google document. THIS ALSO WORKS ON GOOGLE SHEETS AND SLIDES (not 100% on slides, but abt 90%) this requires you have a few things 1. a Google account 2. access to Google apps script 3. a GitHub account (if you want to port your own nes, snes games (any other system really.) 4. a brief understanding of how code works (not required, but it helps) 5. access to https://www.jsdelivr.com/ (again, not required, but lets you play ALOT of games) if you don't have these things go get em and come back. --------------------------------------------------------------------------------- okay you have them? good. step one: setting up your doc. the doc itself doesn't matter, you can do this any way you like, and on any doc you have edit access on. (move to slide 2) step 2: setting up Google apps scripts (kinda) you wanna click on extensions, then apps script. this opens up the script editor for your doc. (move to slide 3) step 3: setting up code.gs copy paste the code that I'll put in the notes and credits into this, then save it (the flopy disk icon) (move to slide 4) step 4: your games html file you can rlly run any html file you want, but why not run a game? click the plus icon, then html (move to slide 5) step 5: naming the file. make sure you name the new html file this exactly. you can name it whatever you want, BUT you also have to change the corresponding code in code.gs. step 6: getting your game. this is a bit of a weird step, so I'll make another project on how to get nes games (and any other system) however, you can go to the Google doc I'll like in the credits, and copy paste the html for the game you want into the game html file. (move to slide 6?) step 7: getting the game saved click the flopy disk icon again to save your files. then click the run button. you will most likely be prompted to give Google docs access, read through it if you wish, but just accept it. once you have done so, make sure in logs it starts executing. if it does you are good to go. step 8: final results if done correctly (if it doesn't work its prob my fault, just msg me il help fix any issues) you should have a new menu in your doc. if it doesn't show up, refresh the doc. menu name should be "stof" by default, but this is customizable. click on the menu, then the ur game item. again, if done right, your game will start to load in a pop-up on your doc. note: it does save ur progress, I have no clue how, I don't want to find out. but it just works thanks for reading and have a great day/night/whatever it is where you are :D
link to Google doc with game files: uh its not letting me put it here, check inside the project for it. check my profile for the nes project code for code.gs: (copy paste) function onOpen() { DocumentApp.getUi() .createMenu('stof') .addItem('ur game', 'opengame') .addToUi(); } // Function for the Dino Game function opengame() { const html = HtmlService.createHtmlOutputFromFile('ur_html_file_name') .setWidth(1250) .setHeight(750); DocumentApp.getUi().showModalDialog(html, 'ur game title here'); }