Skip to content

Implementation of the PSX Doom intro fire effect in ClojureScript

Notifications You must be signed in to change notification settings

cesarolea/cljs-doom-fire

Repository files navigation

cljs-doom-fire

An implementation of the PSX DOOM fire effect in ClojureScript, as explained at Fabien Sanglard's article.

See Demo

Getting Started

  • Clone the repository to your local computer
  • Inside the repository directory: lein fig-dev
  • Browse to localhost:9500

Prerequisites

  • Clojure
  • leiningen

Development workflow

The project includes figwheel-main, so any changes done to the ClojureScript sources are reloaded in the browser. To start figwheel:

lein fig-dev

It will start the figwheel process and wait for a connection to start the ClojureScript repl. Navigate to localhost:9500, it should connect and at that moment the repl is available.

An nREPL is also included so you can connect your editor and send code for evaluation directly from the source (tested with emacs only). To connect your editor start a Clojure repl:

lein repl :headless :port 6666

Once started, connect to the repl as usual. In emacs use cider-connect-clj (usually bound to C-c M-c) and enter localhost and 6666 when prompted for Host and Port respectively.

Once in the Clojure repl evaluate (start) and it should start the figwheel process. Navigate to localhost:9500, it should connect and at that moment the repl is available.

Compiling

From the project directory:

lein fig-prod

It will generate JavaScript with all optimizations turned on. Output is written to resources/public/cljs-out/prod-main.js.

Built With

Authors

License

This project is licensed under the CC0 License.

CC0
To the extent possible under law, César Olea has waived all copyright and related or neighboring rights to cljs-doom-fire. This work is published from: Mexico.

Acknowledgments

  • Fabien Sanglard for his explanation on how PSX DOOM fire effect was implemented.

About

Implementation of the PSX Doom intro fire effect in ClojureScript

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published