/rockagotchi

Rockagotchi, a rock-themed Tamagotchi game, was my final project for Carnegie Mellon's 15-112: Fundamentals of Programming (Summer 2021). Using Python, Tkinter, and CMU 112's custom graphics framework, I programmed (and created all of my own artwork) in 5 days, about 5 weeks into learning how to code!

Primary LanguagePython

"ROCKAGOTCHI" FEATURES:

Create/customize a pet rock with different colors and accessories -- hundreds of unique combinations!

Name your pet and take care of it! If you raise it to adulthood, it'll go off to a college (play to find out which)! But if you let its needs get too low, it'll run away. Keep in mind your pet has needs that are more important to it than others. For example, it can't go out on a walk when it's too tired! It'll be sure to let you know, though, with its face and words! (1. Energy, 2. Hunger, 3. Fun, play different combinations of moods to see what each option may elicit)

Press "v" for vacation!!! You can take your rock on a vacation of your choosing... and you'll get a little souvenir photo from the trip on your desktop! And just like a parent would do, no matter its mood when you take it on vacation, you'll make it smile big for the picture!

The game is pre-loaded with many names for your pet and foods you can feed it. Be sure to keep playing to see all the different options!


HOW TO RUN:

MUST first install PIL on computer

Open "Rockagotchi.py"

All necessary graphics and GUI interfaces included in folder


HOW TO INSTALL PIL (instructions directly copy and pasted from https://www.cs.cmu.edu/~112/notes/notes-animations-part4.html:\

For Windows:
1. Run this Python code block in your main Python file (it will print the commands you need to paste into your command prompt): 

import sys
print(f'"{sys.executable}" -m pip install pillow')
print(f'"{sys.executable}" -m pip install requests')

2. Open Command Prompt as an administrator user (right click - run as administrator)
3. Copy-paste each of the two commands printed in step 1 into the command prompt you opened in step 2
4. Close the command prompt and close Python.
5. Re-open Python.

For Mac or Linux:
1. Run this Python code block in your main Python file (it will print the commands you need to paste into your command prompt):

import sys
print(f'sudo "{sys.executable}" -m pip install pillow')
print(f'sudo "{sys.executable}" -m pip install requests')

2. Open Terminal
3b. Copy-paste each of the two commands printed in step 1 into the command prompt you opened in step 2
3a. If you see a lock and a password is requested, type in the same password that you use to log into your computer.
4. Close the terminal and close Python.
5. Re-open Python.


SHORTCUTS:
In game mode, press "Up" and "Down" arrow keys to toggle age

In game mode, press "Left" and "Right" arrow keys to toggle mood