Giter Site home page Giter Site logo

mjard / gridcontrol Goto Github PK

View Code? Open in Web Editor NEW

This project forked from github/game-off-2012

0.0 2.0 0.0 709 KB

The GitHub Game Off 2012 is a game jam / hackathon / coding challenge to create an open source a web-based game

Home Page: https://github.com/blog/1303-github-game-off

JavaScript 51.16% Python 48.73% Shell 0.11%

gridcontrol's Introduction

OVERVIEW

GridControl is a Free-to-play In-browser Social Massive-Multiplayer-Online Game, where you control your bot using a specialized stack-based language (called gridlang) and your github account. Your bot can roam the grid, gather resources, and attack/avoid other bots. The best code wins!

GridControl Game! GridControl is a originally a project started during GitHub's Game Off 2012. It was not even in an alpha state by the end of the gameoff, but the vision has continues.

HOW TO PLAY

Log in with your github account at the test server.

Learn how to gridlang

Learn how to control your bot

Add a gist on github with the file extension .gridlang

WIN

LATEST NEWS

Lasers were implemented. They're pretty awesome.

Players with a passion for c-syntax can use .gridc from gridc, a c-like language that compiles to gridlang.

SETTING UP GRIDCONTROL SERVER

Source Code

To download source and set up environment:

Grab source from git:
$ git clone [email protected]:GridControl-Team/GridControl.git

Make a virtualenv or else
$ mkvirtualenv gridcontrol

Install other requirements:
$ pip install -r requirements.txt

Create local settings:
$ cp gridcontrol/settings.py.sample gridcontrol/settings.py

Edit that settings file and add the secrets you need:
$ vim gridcontrol/settings.py

Do djangoy setup
$ python manage.py syncdb
$ python manage.py migrate

Other Dependencies

The test server can live with python's built-in sqlite for the Django ORM, but the game itself requires redis. So grab redis however you need and run it on the default port.

GridControl Parts

GridControl: Public facing Django site that users see

GridLang: gridlang language vm and parser code

GridStream: tornado server using socket.io to stream realtime bot status

Run Dev Environment

supervisord method:
$ ./runserver.sh

Supervisord is configured to automatically start the celery and tornado servers. The django site can be started with either start gridcontrol_gunicorn for production machines, or start gridcontrol_runserver for local development.

Or look inside of the supervisor conf to see the commands to run the separate services.

gridcontrol's People

Contributors

dafyddcrosby avatar dforsyth avatar leereilly avatar lessandro avatar mjard avatar quanticle avatar sirpengi avatar

Watchers

 avatar  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.