Skip to content

A modified version of Ruffle to support Gamepad for AS2, and be on Platforms (like steam).

License

Notifications You must be signed in to change notification settings

cyraid/ruffle-game

 
 

Repository files navigation

Ruffle Game

This 'game version' is meant to make it easier for Game Developers wanting to have gamepad / platform support (eg. Steam). If no SWF is provided on the command-line, Ruffle Game will automatically run the Embedded SWF.

Please see the Companion App to replace the Title, Icon, and Embedded SWF. This will result in having a single standalone executable (like Adobe AIR but for Ruffle).

Project status

  • Gamepad support working.
  • ExternalInterface support working.
  • Steam (Under consideration)

Using Ruffle

  • ExternalInterface
    • ExternalInterface.call("print", [1, "2"])
    • ExternalInterface.addCallback("gamepad.onChange", function(gamepadId, buttonOrAxis, value) {})
      • Look at desktop/src/gamepad.rs for buttonOrAxis mappings.
      • Value is true/false for buttons, and -1.0 to 1.0 for axis.

Building from source

Follow the official guide to install Rust for your platform.

You must also have Java installed, and available on your PATH as java.

"ruffle_desktop" will be the Game Player.

OS

If you are building for a Linux platform, make sure that the GTK 3 development packages are installed on your system. (Ubuntu: libgtk-3-dev, Fedora: gtk3-devel)

Use the following command to build and run the desktop app:

cargo run --release --package=ruffle_desktop

To run a specific SWF file, pass the SWF path as an argument:

cargo run --release --package=ruffle_desktop -- test.swf

To build in debug mode, simply omit --release from the command.

Structure

  • desktop contains the desktop client (uses wgpu-rs)

License

Ruffle Game is licensed under either of

at your option.

Ruffle Game depends on third-party libraries under compatible licenses. See LICENSE.md for full information.

Contribution

Ruffle Game welcomes contribution from everyone. See CONTRIBUTING.md for help getting started.

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you shall be dual licensed as above, without any additional terms or conditions.

The entire Ruffle community, including the chat room and GitHub project, is expected to abide by the Code of Conduct that the Rust project itself follows.

About

A modified version of Ruffle to support Gamepad for AS2, and be on Platforms (like steam).

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Rust 71.6%
  • ActionScript 23.0%
  • TypeScript 2.9%
  • JavaScript 1.5%
  • HTML 0.7%
  • CSS 0.1%
  • Other 0.2%