Under is a text-based multiplayer browser game / PBBG centered around managing a cult. Project's primary purpose wasn't the creation of a proper & finished game, but learning-through-doing.
Install the packages in requirements.txt
by typing pip install -r requirements.txt
.
You only need psycopg2
if you're using PostgreSQL and pypiwin32
if you're using Windows.
You will also need to run a Redis server.
Go into the python manage.py shell
and create a new game model named 'alpha':
from game.models import WarfareGame
game = WarfareGame(name='alpha')
game.save()
Create a file named config.py
in the warfare/settings
directory and make it look something like this:
config = {
'DEBUG': True, # Set to False in production
'HTTPS': True, # Set to True only if you're using https
'SECRET_KEY': 'abcdef123456abcdef123456abcdef123456',
'ALLOWED_HOSTS': ['1.2.3.4'],
'REDIS_IP': '127.0.0.1',
'DB_NAME': 'game_db',
'DB_USER': 'django',
'DB_PASSWORD': 'hunter2'
}
Run tests with python manage.py test
. To test the consumers, use pytest --ds=warfare.settings
.
Dialogue options, objectives, and game-changing choices.
Member recruitment tree system with stats, specializations, tiers, and jobs.
Fully functioning registration/login system (mp4).
Created as a personal learn-by-doing project in 2018.