ruffle 一款开源的跨平台 Flash Player 模拟器

分享讨论IT相关的内容
回复
头像
BobMaster
锋芒初露
锋芒初露
帖子: 1187
注册时间: 2020年 12月 7日 08:05
来自: 神秘的东方
我的状态: 🎯
为圈友点赞: 338 次
被赞次数: 178 次
联系:

ruffle 一款开源的跨平台 Flash Player 模拟器

帖子 BobMaster »

Flash的生态上有着大量制作精良的作品,但由于其已被淘汰,在较新的操作系统上,已经不再获得支持。
而国内公司代理的版本还在为flash续命,但其广告捆绑,让人十分的厌恶。
图片
这不我们的英雄ruffle来了,其是用rust语言实现的一个flash模拟器,安全高性能且跨平台。
项目地址: https://github.com/ruffle-rs/ruffle
二进制可执行文件: https://github.com/ruffle-rs/ruffle/releases

使用方式: ruffle --help

代码: 全选

Usage: ruffle [OPTIONS] [FILE]

Arguments:
  [FILE]
          Path or URL of a Flash movie (SWF) to play

Options:
  -P <PARAMETERS>
          A "flashvars" parameter to provide to the movie. This can be repeated multiple times, for example -Pkey=value -Pfoo=bar

  -g, --graphics <GRAPHICS>
          Type of graphics backend to use. Not all options may be supported by your current system. Default will attempt to pick the most supported graphics backend
          
          [default: default]
          [possible values: default, vulkan, metal, dx12, gl]

      --width <WIDTH>
          Width of window in pixels

      --height <HEIGHT>
          Height of window in pixels

  -p, --power <POWER>
          Power preference for the graphics device used. High power usage tends to prefer dedicated GPUs, whereas a low power usage tends prefer integrated GPUs
          
          [default: high]
          [possible values: low, high]

  -q, --quality <QUALITY>
          Default quality of the movie
          
          [default: high]

          Possible values:
          - low:
            No anti-aliasing, and bitmaps are never smoothed
          - medium:
            2x anti-aliasing
          - high:
            4x anti-aliasing
          - best:
            4x anti-aliasing with high quality downsampling. Bitmaps will use high quality downsampling when scaled down. Despite the name, this is not the best quality setting as 8x8 and 16x16 modes were added to Flash Player 11.3
          - high8x8:
            8x anti-aliasing. Bitmaps will use high quality downsampling when scaled down
          - high8x8-linear:
            8x anti-aliasing done in linear sRGB space. Bitmaps will use high quality downsampling when scaled down
          - high16x16:
            16x anti-aliasing. Bitmaps will use high quality downsampling when scaled down
          - high16x16-linear:
            16x anti-aliasing done in linear sRGB space. Bitmaps will use high quality downsampling when scaled down

  -s, --scale <SCALE>
          The scale mode of the stage
          
          [default: show-all]

          Possible values:
          - exact-fit:
            The movie will be stretched to fit the container
          - no-border:
            The movie will maintain its aspect ratio, but will be cropped
          - no-scale:
            The movie is not scaled to fit the container. With this scale mode, `Stage.stageWidth` and `stageHeight` will return the dimensions of the container. SWF content uses this scale mode to resize dynamically and create responsive layouts
          - show-all:
            The movie will scale to fill the container and maintain its aspect ratio, but will be letterboxed. This is the default scale mode

      --force-scale
          Prevent movies from changing the stage scale mode

      --proxy <PROXY>
          Proxy to use when loading movies via URL

      --upgrade-to-https
          Replace all embedded HTTP URLs with HTTPS

      --fullscreen
          Start application in fullscreen

      --timedemo
          

      --dont-warn-on-unsupported-content
          Start application without ActionScript 3 warning

      --load-behavior <LOAD_BEHAVIOR>
          [default: streaming]

          Possible values:
          - streaming: Allow movies to execute before they have finished loading
          - delayed:   Delay execution of loaded movies until they have finished loading
          - blocking:  Block Ruffle until movies have finished loading

      --letterbox <LETTERBOX>
          Specify how Ruffle should handle areas outside the movie stage
          
          [default: on]

          Possible values:
          - off:        The content will never be letterboxed
          - fullscreen: The content will only be letterboxed if the content is running fullscreen
          - on:         The content will always be letterboxed

      --spoof-url <SPOOF_URL>
          Spoofs the root SWF URL provided to ActionScript

      --player-version <PLAYER_VERSION>
          The version of the player to emulate

  -h, --help
          Print help (see a summary with '-h')

  -V, --version
          Print version
下面我以【益智遊戲】滾磚塊 为例,启动很简单,就一条命令ruffle {flash文件的地址}

代码: 全选

ruffle 201802261519648435684503.swf
图片
人生如音乐,欢乐且自由
头像
ejsoon
圈圈精英
圈圈精英
帖子: 2179
注册时间: 2022年 11月 18日 17:36
为圈友点赞: 96 次
被赞次数: 92 次
联系:

Re: ruffle 一款开源的跨平台 Flash Player 模拟器

帖子 ejsoon »

好像firefox那個擴展也是調用ruffle。
https://ejsoon.win/
天蒼人頡:發掘好玩事物
回复

在线用户

正浏览此版面之用户: 没有注册用户 和 1 访客