Giter Site home page Giter Site logo

mazerace's Introduction

Mazerace

A two-player in-browser maze game implemented in Clojure/ClojureScript. You can try out the game here.

The game itself is a remake of a Windows game from the nineties that somehow ended up on my harddisk and has since been long lost. If you happen to know the original author of the game be sure to let me know so I can credit the author.

Screenshot

image of game

Running

To run locally, build the code by running

lein uberjar

Then start the resulting package using

java -jar target/mazerace.jar.

Development

To run the whole thing during development, first clean any artifacts left from building a release package by running lein clean.

Start the backend by running lein run. Start the clojurescript compiler by running lein with-profile dev cljsbuild auto.

Source organization

The game is composed of the server-side backend in src folder and the frontend code in src-ui.

The backend embeds a HTTP-Kit web server and uses core.async to decouple the core game code from websocket handling.

The frontend uses Reagent for rendering the game as combination of html and svg.

mazerace's People

Contributors

mlni avatar

Watchers

 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.