# Rebels in the Sky

![Splash screen](demo/demo.gif)

It's the year 2101. Corporations have taken over the world.
The only way to be free is to join a pirate crew and start plundering the galaxy. The only mean of survival is to play basketball.

Now it's your turn to go out there and make a name for yourself. Create your crew and start wondering the galaxy in search of worthy basketball opponents.

The game is under heavy development and breaking changes are often introduced. If you can't continue an old game because the save file is invalid, you probably need to start a new one or open an issue to check if the save file can be migrated.

## Just try it out!

Connect via SSH to try the game.

`ssh rebels.frittura.org -p 3788`

## Download

Compiled binaries of the last release can be downloaded at https://rebels.frittura.org.

## Music

Previous versions had the option to play music directly in the game, but this was removed to reduce the binary size. Nevertheless, you can still listen to the game soundtrack by connecting to `https://radio.frittura.org/rebels.ogg`!

### Distro Packages

<details>
  <summary>Packaging status</summary>

[![Packaging status](https://repology.org/badge/vertical-allrepos/rebels-in-the-sky.svg)](https://repology.org/project/rebels-in-the-sky/versions)

</details>

#### Arch Linux

`rebels-in-the-sky` can be installed from the [official repositories](https://archlinux.org/packages/extra/x86_64/rebels-in-the-sky/):

```sh
pacman -S rebels-in-the-sky
```

## Build

You need to have the rust toolchain installed --> https://www.rust-lang.org/tools/install. Then you can build the game with

`cargo build --release`

## Run

This game runs as a terminal application, meaning that you just need to run the executable from your terminal with

`./rebels`

If you downloaded the binaries, you will first need to give execution permissions to the executable with

`chmod +x rebels`

Suggested minimal terminal size: 160x48. Not all terminals support the game colors nicely, so you might need to try different ones. Here is a list of tested terminals:

-   Linux: whatever the default terminal is, it should work
-   MacOs: [iTerm2](https://iterm2.com/), [tabby](https://tabby.sh/)
-   Windows: [tabby](https://tabby.sh/)

**Important**: currently local bot teams are generated by default to make the game more enjoyable. This behaviour can be disabled by passing the `-f` flag to the executable. In the future, when more players will be available, the game will default to online teams only.

## Credits

-   Planet gifs were generated using the [pixel planet generator](https://deep-fold.itch.io/pixel-planet-generator) by [Deep Fold](https://deep-fold.itch.io/).
-   Special thanks to [Il Deposito](https://www.ildeposito.org) for inspiration and the great musical archive.

## Contribution

Join the [discord](https://discord.gg/ebjp33UrrV)! There is no fixed roadmap for the game yet, anyone is welcome to participate with ideas.

It is almost guaranteed that you will encounter bugs along your journey. If you do, please open an issue and describe what happened. If you are a developer and want to contribute, feel free to open a pull request.

## License

This software is released under the [GPLv3](https://www.gnu.org/licenses/gpl-3.0.en.html) license.
