3cefeeba6a
Switch from pixels to twips for internal calculations. swf crate was updated to add a Twips wrapper-type. Ruffle will use this type internally for transforms and shapes. This fixes some precision errors in rendering (see heroes_of_cybertron.swf) and will match what the Flash Player does internally more closely. (e.g. DisplayObject x and y will be quantized to 1/20 pixel units). It is up to the renderer to convert units from twip space to pixels when rendering. |
||
---|---|---|
.circleci | ||
core | ||
desktop | ||
web | ||
.gitignore | ||
Cargo.toml | ||
LICENSE_APACHE | ||
LICENSE_MIT | ||
README.md |
README.md
Ruffle
Ruffle is an Adobe Flash Player emulator written in Rust.
Building
Follow the official guide to install Rust for your platform.
Desktop
cargo run --package=ruffle_desktop -- test.swf
Web
- Install Node.js
- Install wasm-pack
npm run serve --prefix web
- Load indicated page in browser (usually http://localhost:8080)
Structure
core
contains the core emulator and common codedesktop
contains the desktop client (usesglium
)web
contains the web client (useswasm-bindgen
)
License
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT) at your option.
Contribution
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.