Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/aleksilassila/bitfields

Text-based terminal-style game where you can explore procedurally generated maps with other players, build bases and fight others in your web browser!
https://github.com/aleksilassila/bitfields

bitfields browser-game fight nextjs players python websockets

Last synced: 3 months ago
JSON representation

Text-based terminal-style game where you can explore procedurally generated maps with other players, build bases and fight others in your web browser!

Awesome Lists containing this project

README

        

# Bitfields

Explore procedurally generated maps with other players, build bases and fight others in your web browser!

My latest project, a text-based .io style game powered by python, websockets and javascript canvas. Supports multiplayer and custom procedural map generation using simplex noise.

[Live demo!](http://ec2-3-87-232-152.compute-1.amazonaws.com/bitfields)

## To get started:

### Create a server:

Inside `bitfields/server`:

- Make sure you have **at least python 3.7** installed.

- `pip3 install -r requirements.txt`

- Tweak `config.py` if necessary

- `python3 main.py`

### Set up frontend client

Inside `bitfields/client`:

- Run `yarn install` `(npm install)`

- Start development server: `yarn dev` `(npm run dev)`

Next head to [localhost:3000](http://localhost:3000)

OR alternatively export frontend as static web page for serverless use:

Inside `bitfields/client`: `yarn export` `(npm run export)`

## Contributing

All help is much appreciated, so feel free to contribute.

## Screenshots

![](screenshot1.png?raw=true "Welcome to the Bitfields!")
![](screenshot2.png?raw=true "Potentially endless procedural worlds!")
![](screenshot3.png?raw=true "Underworld cave system with limited visibility ^^")

## To Do

- Spawn points
- Cave rooms / systems
- Breach ammunition? Mines?
- Announce kills / deaths
- Teams?
- Color schemes
- Place ladders?

## Bugs

- Double clicking connect / play creates 2 players