Skip to content

Sample implementation to deliver "Shoryuken" and other Ryu's deathblows based on JavaFX and Reactor, powered by Reactive Streams/Extensions technology.

Notifications You must be signed in to change notification settings

AkihiroKitada/StreamFighterII

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 

Repository files navigation

Stream Fighter II

Sample implementation to deliver "Shoryuken" and other Ryu's deathblows based on JavaFX and Reactor, powered by Reactive Streams/Extensions technology.

Regarding each classes

  • quitada.RyuWithoutReactiveStreamsV2 - This is a class without Reactive Streams. It deliver dethblows with driven by key events.
  • quitada.RyuWithReactiveStreamsV2 - This is a class with Reactive Streams, based on Reactor's Flunx and FluxSink. It deliver dethblows with driven by Flux.subscribe until the buffered data strem based on key events is flahsed by pushing punch key or kick key.
  • quitada.RyuWithReactiveStreamsV3 - This is a class with Reactive Streams, based on Reactor's Flunx and FluxSink. It deliver dethblows with driven by Flux.subscribe until the buffered data strem based on key events is flahsed by pushing punch key or kick key, with more sophisticated animation compared with quitada.RyuWithReactiveStreamsV2 (adding animations for going back and forward).

Operation

  • Direcion key: up - "W", down - "Z", left - "A", right - "S"
    • [V3 only] going back - keep pressing "A", going forward - keep pressing "S"
  • Puch key: "X"
  • Kick key: "C"
  • Syoruken command: right -> down -> [right + down with punch]
  • Hadouken command: down -> [down + right] -> [right with punch]
  • Tatsumaki-senpukyaku command: down -> [down + left] -> [left with kick]

Prepartion to run this appliction

You have to prepare additional gif files and mp3 files to run this application becasue they are grabbed from other public site (they are not mine). Please get those files according to the instruction below and put them under /src/main/resources/quitada while those required resource files have been uploaded on this github project and you can use them.

Run this appliction

Please just execute quitada.RyuWithoutReactiveStreamsV2 or quitada.RyuWithReactiveStreamsV2 or quitada.RyuWithReactiveStreamsV3 from your favorite Java IDE or console while you need to add the following parameters required for JavaFX:

  • --module-path /path/to/javafx-sdk-**../lib --add-modules=javafx.controls,javafx.fxml,javafx.media

About

Sample implementation to deliver "Shoryuken" and other Ryu's deathblows based on JavaFX and Reactor, powered by Reactive Streams/Extensions technology.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages