Start Free for 14 Days From $4.99/mo Cancel anytime

Create Games to Play with MyDD.ai

December 6, 2025

Parents: this is a great activity to do together!

Alright. We all know playing video games is fun. What’s way more fun, though, is to build and customize your own game. Here are some instructions to get you started building your own version of PAC-MAN using MyDD.ai.

Here are instructions on how to get MyDD to create HTML code for you and how you can open that code in your browser to play.

Step 1: Prompt MyDD

I want to build my own version of PAC-MAN. Can you create a complete, single-
file HTML game file that I can open and play in my browser?

MyDD will generate HTML code for you. Select all of it and copy it. MyDD will tell you explicitly where the code starts and ends.

Step 2: Paste the code into a new text file

Create a new text file on your computer (remember where you are saving it!).

  • On a Mac, use TextEdit
    • Go to Format → Make Plain Text before pasting
    • When saving, make sure it ends in .html (not .txt)
  • In Windows, use Notepad
    • When saving, change “Save as type” to “All Files” and name it game.html
  • On a Chromebook, use Text
    • Save with the .html extension

Save the file as game.html. The html part is very important. That’s how your computer will know what to do when it opens it.

Step 3: Open the HTML file in your favorite browser and PLAY

Double click the file. It should automatically open in your preferred browser. If it doesn’t, open your favorite internet browser: find the File menu and select Open File. Open the file you created earlier and you should be good to go.

Step 3.5: Fixing it when it breaks

If something doesn’t work, paste your code back into MyDD (and any error messages you get) and ask it to help fix it!

Step 4: Make it better!

This is the best part. Make it your own!

Ask MyDD to make the game round instead of square. Change the color. Change the speed of PAC-MAN. Add more ghosts. Add aliens instead of ghosts. Add fruit (or something else instead, like candy).

In the same chat you started with, try asking:

Can you change the ghosts to be blue aliens and make PAC-MAN move slower?

Copy the updates into game.html, reload the page you are playing on, and play on!

Have so much fun!

Try it yourself today at MyDD.ai.