Code Monkey home page Code Monkey logo

pongcljs's Introduction

Pong CLJS

A game of Pong / Air Hockey, written in Clojure/Script

Usage

I will have a playable version on-line eventually. If you can't wait until then, use the following instructions -

To run locally, you must have Clojure and Leiningen installed Clone from git. Run lein figwheel in your terminal. Wait for a while until you see `Successfully compiled "resources/public/js/main.js". Open localhost:3449 in your browser.

For more information about Figwheel, check the Figwheel repository on GitHub.

History / Prior Art

There are many games like this. The most obvious are:

Why

Why write a game in Clojure?

  • I like Clojure. I wanted to write a hobby project in it. Something a little bigger than a Dojo sized project, but something fun. A game seems a good choice and something that pushes the boundaries of what one expects of Clojure.

  • Clojure excels at transforming data. It turns out all programming problems can be thought of as turning data from one form to another. Philosophically the visualised game is just a view of the game state.

Why write a pong clone?

  • Pong was one of the first computer games. Intuitively it's a very basic game. However with a little bit of imagination it can be quickly adapted to something different. For example, this version can be viewed like the original as an overhead, or can be angled to present the player with some depth. Having a perspective, one can easily imagine how it can be adapted to other kinds of games.

License

Copyright © 2019 Richard East

Distributed under the GNU General Public License v3.0

pongcljs's People

Contributors

richardeast avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

peter-wilkins

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.