Skip to content
This repository has been archived by the owner on Oct 27, 2024. It is now read-only.

codingfun1072/wasm_flash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WAFlash Player

📌 How to use it on your website! • via html, css, js

Play Live Plants vs. Zombies (Web Version) used for an example.

Dependency

HTML5 is required for this to work on your website

What's this?

This documentation is the key to emulating flash games on your website, fastest emulator for flash files on the internet. Incase you don't know what WAFlash is, it's a WebAssembly AS2/AS3 Flash compatible player developed with HTML5, WebGL, WebAssembly and Emscripten.

Code

<!DOCTYPE html>
<html lang="en">

<head>
    <link href="https://cdn.jsdelivr.net/gh/nate-games/waflash@main/style.css"
        rel="stylesheet" type="text/css">
</head>

<body>
    <script>
        var gameConfig = {
            swfUrl: "https://cdn.jsdelivr.net/gh/nate-games/nate-games.github.io@main/0/g/pvz/game/pvz.swf"
        }
    </script>
    <div id="waflashContainer">
        <canvas class="waflashCanvas" id="canvas" tabindex="1"></canvas>
        <div id="waflashStatus" style="display: none;">Playing...</div>
<script src="https://cdn.jsdelivr.net/gh/nate-games/waflash@main/main.js"  rossorigin="anonymous" type="module"></script>
    </div>
</body>

</html>

About

📌 How to use it on your website! • via html, css, js

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages