Skip to content

HakubJozak/mana

Repository files navigation

Mana

Mana is a proof-of-concept in-browser implementation of Magic the Gathering(tm) card game using jQuery, EventMachine, Sinatra, Compass and Websockets. Pre-alpha stage. The main aim is to be able to play Magic the Gathering via internet without any client-side setup (downloading cards, installing client ...). Any rules enforcing or checks are far beyond the scope however.

Screenshot Screenshot Screenshot

Live Server

Try it for yourself!

Just before you do, please notice that:

WARNING 1: the server has very limited resources and might go offline unexpectedly.

WARNING 2: anyone who knows little about HTML or JavaScript can cheat, so choose your opponents with care ;)

WARNING 3: I am almost sure there are security issues (XSS and such), don't say I didn't warn you! (see TODO)

Requirements

Client

Webkit-based browser (developed in Chrome) - for now. It is quite easy to make it cross-(modern)-browser but right now the focus is on the core features.

Server

  • Ruby 1.9.2
  • Bundler + all the gems in Gemfile...
  • MongoDB
  • Node.js (for Coffee script compiling)

More Features Convenience - Versions 1+

  • visible shuffling effect
  • inform all users about (all) other users' actions
  • history recording & match replays
  • variable width and height of the battleground
  • advanced keyboard shortcuts
  • select more cards + save selection (C&C style)
  • untap all / selected cards
  • smart image loading (+ show dummy before card image is loaded)
  • zooming
  • Gravatar - http://railscasts.com/episodes/244-gravatar
  • cheating prevention

Contributions

All contributions are welcome! The graphics needs rework (right now it is in-fact "borrowed" from http://tappedout.net), tests have to be written and a lot of features that are easy to implement but not so critical plea for attention. Just fork the repository and send me the pull request or write me a message on Github. If you don't know where to start, see the TODO list and Wiki to help you get on track.

History

23/10/2010 - First commit 14/02/2011 - First game succesfully played and finished (Kolohnat X Kvetak)

Licence

(TODO - choose one)

Copyright

Copyright © 2011 Jakub Hozak