Skip to main content

Compile flash games into HTML

This is a guide on how to make a single-file web game using Flash Games. Here are the things you will need:

  • A github account

  • A text editor

  • A flash game less than 20mb or 100mb (likely blocked if >20mb)

First, you will need to find your SWF file. Some files can be found in random GitHub repositories or on archive.org,

If you found your flash game on a random GitHub repository, then follow the A instructions, if not, follow B instructions.

1A. Copy the link (for example theworldshardestgame.swf).

2A. If the file is over 20mb, go to https://raw.githack.com, paste the GitHub URL there, then go to https://cdn.jsdelivr.net/github/.

3A. Paste the link and copy the converted link (should look like cdn.jsdelivr link).

4A. Go to flashgame.html template and copy the code, then replace the PUT THE URL HERE part with the URL that was generated.

5A. Save the file and you can test it. If you edited the file in the explorer, you can open it there and test it; otherwise, you can test it on an online HTML tester.

1B. Go on Google and look up the game you want to add (ex. the world's hardest game SWF).

2B. Find a link that gives a download, preferably archive.org, find the download called 'shockwave file' or 'flash game'. Optionally, you can test it on ruffle.rs/demo/ to see if it works

3B. Go on GitHub and make a GitHub account if you don't already have one.

4B. Either upload the file you downloaded to a repository already made, or make a new repository just for your games.

5B. Copy the link at the top and start from 1A.