Giter Club home page Giter Club logo

rbattle's Introduction

RBattle

RBattle is a resurrection of the '90s-era X Windows game XBattle, written in Rust. It uses the Glium OpenGL bindings for graphics, and Tokio for some of its networking.

To play, make sure the players' computers can connect to each other via TCP/IP. (Many wifi networks don't permit associated hosts to communicate with each other directly, only with the outside world.)

On one computer, run the command:

$ cargo run server 0.0.0.0:12345

where 0.0.0.0:12345 give the IP address and TCP port the server should listen for client connections on. Then, on up to three other computers, run:

$ cargo run client ADDR:PORT

where ADDR is the IP address of the computer running the server, and PORT is the same port number given to the server. The clients simply join the game in progress, with each incoming client assigned to a different color.

When the game is started, each player owns a goop source. Click within squares to toggle outflow pumps. Equal amounts of goop of different colors cancel each other when they come in contact. Win by destroying all of your opponents' goop.

RBattle was written in haste. There are many, many improvements possible, and the code is not great in some parts. There are surely plenty of bugs as well. Pull requests are welcome!

To do

  • Mark goop sources.
  • Animate flow
  • Animate combat

License

RBattle is copyright 2017, the RBattle developers. RBattle is distributed under the terms of both the MIT license and the Apache License (Version 2.0), with portions covered by various BSD-like licenses.

See LICENSE-APACHE and LICENSE-MIT.

rbattle's People

Contributors

jimblandy avatar jorendorff avatar

Watchers

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