Skip to content

notsilverhoft/WasFlash

Repository files navigation

WasFlash

Currently: Currently: An SWF Movie Player that plays typical SWF video like files, and shape only flash animations, with audio! It works for both Linux, and HTML5.

The Hope:

A (Hopefully) Fully Featured Flash Player Replacement(Say that 10 times fast), designed for both PC and Web(Using EMScripten :D). In essence, this would be able to run flash games in the modern day. This will process .SWF files and display their contents, much like current SWF players like Ruffle and LightSpark, but with a higher focus on portability, and simple integration with websites.

Optimization Quest:

I had to optimize this using a tone of methods:

I Reduced memory usage by slimming down my shape processor(This is listed in devlogs)

Many of my algorithms throughout use Efficient algorithms, I did this by creating base functions for every data shift, so I don't have to read through a roll of bits. I created efficient ways to read out bytes, and complete bit-math(See my utils in src).

I used inbuilt EMScripten dependencies, and used MiniAudio, rather than SDL, and I am only using what I need in skia.

Goals & Progress

  • Finish header parsing
    • LZMA Decompression
    • FrameRate
    • FrameCount
  • Work on low-level tag parsing
    • Parse Tag Header
    • Fully parse a very simple SWF File
  • Work on higher-level tag parsing
  • Work on ActionScript parsing
  • Work on ActionScript interpreter
  • Work on making an ActionScript instruction engine
  • Community testing

Please feel free to use the included swf files in samples if you do not have any!

License

TBD


WasFlash is not affiliated with Adobe Inc. Flash and SWF are trademarks of Adobe.

About

A (Hopefully) Fully Featured Flash Player Replacement(Say that 10 times fast), designed for both PC and Web(Using EMScripten :D). This will process .SWF files and display their contents, much like current SWF players like Ruffle and LightSpark, but with a higher focus on portability, and simple integration with websites.

Topics

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors