GithubHelp home page GithubHelp logo

lunacoder2008 / demo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ruffle-rs/demo

0.0 0.0 0.0 26.6 MB

Ruffle web demo (built nightly)

Home Page: https://ruffle.rs/demo

License: Apache License 2.0

HTML 100.00%

demo's Introduction

ruffle-demo

ruffle-demo is an example of how to include Ruffle in your website. It also serves as a nice local test to run Ruffle in the web locally, for developers.

Using ruffle-demo

Hosted demo

To view this demo online right now, check out the hosted demo.

It's exactly the same code as this directory, updated nightly.

Run your own demo

After building ruffle-web, you can run npm run demo in the web folder to launch the demo.

It will start a local web server and print the address in the console. Navigate to that website (usually http://localhost:8080) in your browser.

Configuring the demo

The demo provides the ability to have a list of sample SWFs to choose from. This can be helpful if you have a list of useful SWFs to test through, and we use it ourselves to showcase Ruffle on various games or animations.

To use this, add a new file swfs.json in this directory. The contents should look like this:

{
    "swfs": [
        {
            "location": "swfs/alien_hominid.swf",
            "title": "Alien Hominid",
            "author": "Tom Fulp and Dan Paladin",
            "authorLink": "https://www.newgrounds.com",
            "type": "Game"
        },
        {
            "location": "swfs/saturday_morning_watchmen.swf",
            "title": "Saturday Morning Watchmen",
            "author": "Harry Partridge",
            "authorLink": "https://twitter.com/HappyHarryToons",
            "type": "Animation"
        },
        {
            "location": "swfs/synj1.swf",
            "title": "Synj vs. Horrid Part 1",
            "author": "Dan Paladin",
            "authorLink": "https://www.thebehemoth.com",
            "type": "Animation"
        },
        {
            "location": "swfs/synj2.swf",
            "title": "Synj vs. Horrid Part 2",
            "author": "Dan Paladin",
            "authorLink": "https://www.thebehemoth.com",
            "type": "Animation"
        },
        {
            "location": "swfs/wasted_sky.swf",
            "title": "Wasted Sky",
            "author": "Tom Fulp",
            "authorLink": "https://www.newgrounds.com",
            "type": "Game"
        }
    ]
}

Building, testing or contributing

Please see the ruffle-web README.

demo's People

Contributors

herschel avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.