GithubHelp home page GithubHelp logo

alvinparker1 / reagent-breakout Goto Github PK

View Code? Open in Web Editor NEW

This project forked from city41/reagent-breakout

0.0 1.0 0.0 428 KB

The game Breakout implemented with Reagent

Home Page: http://city41.github.io/reagent-breakout/

License: Eclipse Public License 1.0

Shell 0.16% Clojure 63.21% CSS 34.67% HTML 1.96%

reagent-breakout's Introduction

Reagent Breakout

This is an implementation of Breakout done in Reagent and ClojureScript.

It is mostly done, but still has a few more things to do. Check out the issues to see what's left to tackle.

You can play it here

Hacking on the code

You will need Leiningen installed as well as a Java SDK 1.7 or better. (Typical Clojure environment).

run lein figwheel to setup the dev environment. You can then see the game at http://localhost:3449.

Also lein garden auto will automatically start compiling the garden (at src/clj/breakout/style.clj) into css.

Any CSS or ClojureScript changes you make will be picked up right away by the browser. But since this is a game with a lot of state, requestAnimationFrame, etc, you still often need to refresh the browser to see your changes.

Deploying

run lein build-prod. Once done, the contents of resources/public/ will have everything you need:

  • index.html
  • js/app.min.js
  • img/ -- all of the images in here
  • css/site.css

resources/public/ is what gets deployed out to the gh-pages branch with deploy.sh

reagent-breakout's People

Contributors

city41 avatar

Watchers

Alvan Parker avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.