Giter Site home page Giter Site logo

kendalldoescoding / choose-your-own-adventure-game Goto Github PK

View Code? Open in Web Editor NEW
14.0 2.0 24.0 47.21 MB

A simple Choose Your Own Adventure Game created using Python.

License: MIT License

Python 100.00%
hacktoberfest adventure adventuregame choose-your-own-adventure game python

choose-your-own-adventure-game's Introduction

choose-your-own-adventure-game's People

Contributors

aaryantrivedi avatar akbar-ahmed avatar amarjit0511 avatar athulmekkoth avatar deeproop avatar deepsource-autofix[bot] avatar deepsource-io[bot] avatar edu58 avatar imgbot[bot] avatar ishk9 avatar kanielpinto avatar karthick47v2 avatar kendalldoescoding avatar krupalitrivedi avatar lunacodedemon avatar omppu42 avatar sahilsinghtomar avatar saksham093 avatar sirclashin1 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

choose-your-own-adventure-game's Issues

[DOCS] Improve README.md

There are a bunch of grammar issues, and I feel like it doesn't state exactly what this project is so I would like if someone would help me improve the README.md but adding sections, improving grammar, etc.

[FEAT] Convert to .exe

I require the Python file to also be made into a .exe, and for the .exe file to automatically be updated if the Python is updated.

There are python packages to do so.

If you are finding it hard, even if a gh-action is in place, to allow users to download a .exe from the releases on this repo, that would work too but not preferable.

Game ended without saying Game Over or something else

Duplicate Issues

  • There are no existing posts relating to my problem
  • There are existing posts relating to my problem, but the solution given, doesn't work for me.

What happened?

Well, I was trying to not become a wizard but then game ended
Screenshot_20230310_103840

Release version

I am running it locally.

Steps to reproduce

  1. while taking right
  2. talking to stranger
  3. not becoming the wizard
  4. Game Ended

What platform are you seeing this problem on?

Linux (can also be ChromeOS)

Relevant console log (if any)

No response

[FEAT] Add HTML version.

Add a HTML version of the game.. Converting Python CODE to HTML code, via Pyscript or any other tools/software.

[DOCS] Update example video.

Add a example video which includes the new GUI, don't remove the existing video as that works as well if GUI is not functional on VM/Computer/Gitpod, etc.

[FEATURE REQUEST] - Choose Random

Right now it is made so that for example, the user goes left they go to chapter river, and if they go right they go to chapter bridge. But I want it to be random for this and throughout the game. Because, if a user keeps on playing it they will understand how to win and it's no longer going to be fun.

It's easy to implement this using choice() (import random) is what I've heard.

[BUG REPORT]:- Cannot move music to Music directory (playsound module)

Duplicate Issues

  • There are no existing posts relating to my problem
  • There are existing posts relating to my problem, but the solution given, doesn't work for me.

What happened?

I tried to make it so that the sotb.mp3 was in the music directory and then in music.py, I put the new directory for playsound. Although that didn't work. I do not want sotb.mp3 to be in the main directory and I want to add much more music

Release version

v6.0.0

Steps to reproduce

  1. Move sotb.mp3 to music directory

What platform are you seeing this problem on?

Windows

Relevant console log (if any)

No response

[FEAT] Add more chapters

Right now, there are only 2 chapters to start with (depending on the answers you give in the chapters, you will be transferred to another chapter), but there are only 3 winning methods and as the game starts with 2 chapters, if you play the game, again and again you will know the answers and always win which is boring.

So, we need to add more chapters to start with to make the game interesting, at least 10-15 (inside which, these chapters can direct users to other chapters based on their answers to questions)

Double Check Grammer

I've been finding a few spelling mistakes lately, for example a missing "to" (2c8bc5e), etc. I need someone to double check the grammar for all the chapters (throughout the game) and ensure that there are no spelling mistakes.

Loop song/Change song if music stopped (pygame module)

In the beginning of the program, it asks the user if they want to play music. If they say yes the music plays. There are 7 songs defined to play as of now (and any song can play at random) but some songs can range from 1 minute and some up to 3 minutes. The songs (especially the short ones), may get over while the user is still playing the game. So, we need to make it so that if in the beginning the user wants to play music and later while the program is running if the song stops. Automatically pick a new song or loop the song that was playing before.

Please check out music.py for more info.

Create logo for app

Create a logo for the app.

Something like this with a person, but it should say Choose Your Own Adventure Game:
image

Ignore `__pycache__/`

image

PyCache should be ignored.

  1. Delete the folder from your local machine
  2. Add a .gitignore with the following contents:
*.pyc
__pycache__/

Then commit the changes.

[FEATURE REQUEST] Linux support

I was curios about the game and found out after running that is works only with windows.
Maybe we can change this - python is supposed to give us cross platform support.

I will try to work on this task, maybe we can have a discussion about the solution and it would be good to have some windows tester, since i do not have a windows computer available.

I found already two spots, which have to be changed:

  • ctypes.windll.shell32.SetCurrentProcessExplicitAppUserModelID(myappid) <- is not working
  • music_player.py is using a wrong path. sound = pygame.mixer.Sound("Music/bliss.mp3") is only working because of windows. i would even say this is some kind of bug. it must be music instead

with those first two things the game is starting up, but still not functional. i will try to get more insights now.
Any known other points already?

Improve/Simplify Code

I don't know Python too well (I would say i know around quarter of it) so I may've used a hard way of going around things instead of the easy way, so I require help to make the code more simple.

GitPod does not start the game

Duplicate Issues

  • There are no existing posts relating to my problem
  • There are existing posts relating to my problem, but the solution given, doesn't work for me.

What happened?

Well, I was trying to play the game on Gitpod and it did not start

image

[BUG REPORT]:- Music unmutes when song changes

Duplicate Issues

  • There are no existing posts relating to my problem

Steps to reproduce

  1. Mute the game
  2. Wait for the current song to finish
  3. The next song will unmute and begin playing.

What platform are you seeing this problem on?

Windows

[FEAT] Support for K_KP_ENTER:

It happens to me while playing/coding that i press the "wrong" enter key - so i think it would be good to add the 2nd enter key (at least if you have a key pad)

Describe the solution you'd like
I want to change this line:
if event.type == pygame.KEYDOWN and event.key == pygame.K_RETURN:
to
if event.type == pygame.KEYDOWN and (event.key == pygame.K_RETURN or event.key == pygame.K_KP_ENTER):

You could go with a 2nd if statement, but i think we can still understand this line.

Should i create PR for this?

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.