Giter Club home page Giter Club logo

dnd_network's Introduction

Dnd Networking Project

Description

Pyhm World is a 2D RPG made in Python 3.8 for the 3A STI programmation project.

Installation

First of all, you will need python3.8 installed in your machine. A later version of Python does not work for the moment.

After cloning the repository, place yoursef into the root of the project by making the following command :

Then, let's install one package needed for the open world's generation and the other for graphical interfaces :

sudo apt install python3-tk
sudo apt install libpython3.8
sudo apt update
sudo apt upgrade

The last thing needed is a packet / virtual environnement manager, to install the dependencies of the project :

sudo apt install pipenv
sudo apt update

Enter the shell and install the dependencies :

pipenv shell
pipenv install

Launch the program with ./main.py and Enjoy.

If pipenv isn't working, quit the shell by typing exit and do :

python3 -m pip install -r ./requirements.txt
ou
pip3 install -r ./requirements.txt

Game Branch

When pulling stuff from this branch, don't forget to do the following in order to get a db working :

cd saves
python3 initDB.py
cd ../
./main.py

If you get an error like this:

pygame.error: ALSA: Couldn't open audio device: No such file or directory

Set theses lines as follow :

utils/musicController.py :

self.sounds = musicConf.SOUNDS_BANK -> # self.sounds = musicConf.SOUNDS_BANK
self.mainChannel = pygame.mixer.Channel(0) -> # self.mainChannel = pygame.mixer.Channel(0)
self.mainChannel = pygame.mixer.Channel(0) -> # self.mainChannel.set_volume(0.3)
pass
.
.
.
def setMusic(self, place):

    if pygame.mixer.music.get_busy():
        self._changeSong(place)
        pass

    else:
        self._addSong(place)
        pass
    ->
    # if pygame.mixer.music.get_busy():
        # self._changeSong(place)
    pass

    # else:
        # self._addSong(place)
    pass

main.py :

pygame.mixer.init() -> # pygame.mixer.init()

utils/RessourceLoader.py :

musicConf.SOUNDS_BANK = {
        songName: pygame.mixer.Sound(songPath)
        for songName, songPath in musicConf.SOUNDS_PATH.items()
    } ->
    # musicConf.SOUNDS_BANK = {
    #     songName: pygame.mixer.Sound(songPath)
    #     for songName, songPath in musicConf.SOUNDS_PATH.items()
    # }

dnd_network's People

Contributors

spicytelescope avatar younesramadi avatar pierte avatar

Stargazers

 avatar  avatar  avatar Estéban avatar  avatar Typ 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.