Skip to content

Commit

Permalink
feat: create game logo
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaryan Trivedi authored Mar 13, 2023
1 parent 7b02f53 commit f593016
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Choose Your Own Adventure Game

<div align="center">
<img src="https://socialify.git.ci/KendallDoesCoding/Choose-Your-Own-Adventure-Game/image?description=1&descriptionEditable=A%20simple%20Choose%20Your%20Own%20Adventure%20Game%20created%20using%20Python.%0A%0A&forks=1&issues=1&language=1&name=1&owner=1&pattern=Solid&pulls=1&stargazers=1&theme=Dark" alt="Choose-Your-Own-Adventure-Game" width="640" height="320" />
<img src="https://socialify.git.ci/KendallDoesCoding/Choose-Your-Own-Adventure-Game/image?description=1&font=Inter&forks=1&issues=1&language=1&logo=https%3A%2F%2Fraw.githubusercontent.com%2FKendallDoesCoding%2FChoose-Your-Own-Adventure-Game%2F7e92194b9819b14a9fd4145716d6d8790f11eb86%2FPicture1.png&name=1&owner=1&pattern=Solid&pulls=1&stargazers=1&theme=Dark" alt="Choose-Your-Own-Adventure-Game" width="640" height="320" />
</div>

A simple **Choose Your Own Adventure Game** created using python.
Expand Down
Binary file added assets/images/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 12 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# import modules
import subprocess
import sys

import pkg_resources
import numpy as np
import matplotlib.pyplot as plt
from PIL import Image

from chapters import *
from music_player import *
Expand All @@ -20,6 +22,15 @@
# import dependencies

# heading text!


ImageAddress = 'assets\images/logo.png'
ImageItself = Image.open(ImageAddress)
ImageNumpyFormat = np.asarray(ImageItself)
plt.imshow(ImageNumpyFormat)
plt.draw()
plt.pause(1) # pause how many seconds
plt.close()
heading = "Choose Your Own Adventure Game!"
copyright = "\U000000A9 2023, KendallDoesCoding, All Rights Reserved"
new_str = Fore.BLUE + heading.center(150)
Expand Down

0 comments on commit f593016

Please sign in to comment.