IT 2 Showcase

Storytelling Project

Using digital tools to tell a story.

Project Multimedia Storytelling Overview

In this project, you will use various digital tools we have learned to tell a story or create a project. The project or multimedia story must involve at least 4-5 of the following:

  • Operating systems
  • Premiere
  • Programming languages
  • Phyton Applications
  • Concepts covered in CSP I Intro to app design
  • CSP loops, conditionals and functions

Additionally, the story told must cover one of the following:

  • A global event
  • A current issue
  • A school related function

My Work

Research

  • We researched different climate change topics to base our story on.
  • We researched various multimedia tools and decided to use Python to create our story.
  • We gathered information on global warming and its impacts to create an informative story.

Planning

  • We designed a logo for our story to be used throughout.
  • We allocated roles for each group member and set deadlines for completing tasks.
  • We created a prototype of our story using basic code and refined it based on feedback.

Execution

  • We tested the final product to ensure that all effects were functioning properly.

Challenges faced

  • Limited knowledge of Python programming.
  • Difficulty in telling the story through the console

How we overcame challenges

  • We practiced coding in Python.
  • We spent time experimenting with code until we found the code that works.

Strengths

  • Effective communication and collaboration within the group.
  • Creative and engaging storyline with informative content.

Weaknesses

  • Limited knowledge of Python programming.
  • Difficulty in creating animations.

Sources of growth

  • Learning to collaborate effectively in a group setting.
  • Learning new programming and design skills.

Code

# project
# In this project, you will use various digital tools we have learned to tell a story or create a project.
import sys
import time
import random
import os
import platform

logo = """  ______   __            __                  __        __       __                                    __                     
 /      \\ |  \\          |  \\                |  \\      |  \\  _  |  \\                                  |  \\                    
|  $$$$$$\\| $$  ______  | $$____    ______  | $$      | $$ / \\ | $$  ______    ______   ______ ____   \\$$ _______    ______  
| $$ __\\$$| $$ /      \\ | $$    \\  |      \\ | $$      | $$/  $\\| $$ |      \\  /      \\ |      \\    \\ |  \\|       \\  /      \\ 
| $$|    \\| $$|  $$$$$$\\| $$$$$$$\\  \\$$$$$$\\| $$      | $$  $$$\\ $$  \\$$$$$$\\|  $$$$$$\\| $$$$$$\\$$$$\\| $$| $$$$$$$\\|  $$$$$$\\
| $$ \\$$$$| $$| $$  | $$| $$  | $$ /      $$| $$      | $$ $$\\$$\\$$ /      $$| $$   \\$$| $$ | $$ | $$| $$| $$  | $$| $$  | $$
| $$__| $$| $$| $$__/ $$| $$__/ $$|  $$$$$$$| $$      | $$$$  \\$$$$|  $$$$$$$| $$      | $$ | $$ | $$| $$| $$  | $$| $$__| $$
 \\$$    $$| $$ \\$$    $$| $$    $$ \\$$    $$| $$      | $$$    \\$$$ \\$$    $$| $$      | $$ | $$ | $$| $$| $$  | $$ \\$$    $$
  \\$$$$$$  \\$$  \\$$$$$$  \\$$$$$$$   \\$$$$$$$ \\$$       \\$$      \\$$  \\$$$$$$$ \\$$       \\$$  \\$$  \\$$ \\$$ \\$$   \\$$ _\\$$$$$$$
                                                                                                                   |  \\__| $$
    A short story about global warming.                                                                             \\$$    $$
                                                                                                                     \\$$$$$$ 
                                                                                                                     """


def print_slow(t):
    for l in t:
        sys.stdout.write(l)
        sys.stdout.flush()
        time.sleep(random.random() * 10.0 / typing_speed)
    print('')


def pause_cont():
    input("Press Enter to continue... ")


def clear():
    if is_term_supported():
        if platform.system() == "Windows":
            os.system("cls")
        else:
            os.system("clear")


def is_term_supported():
    return os.environ.get("TERM")


def pause_not_auto():
    if not autoplay:
        time.sleep(1)
        pause_cont()
    else:
        time.sleep(3)
    clear()
    print(logo)


def endes(wow):
    return "Enabled" if wow else "Disabled"


def story():
    print(logo)
    print_slow("""    Once upon a time, in a beautiful land far away, there lived a group of animals.
    They were a happy and peaceful bunch, always playing and living in harmony with nature.

    """)
    pause_not_auto()

    print_slow("""    One day, however, they noticed that things were starting to change.
    The weather was becoming hotter and drier, and the plants were withering away.

    """)
    pause_not_auto()

    print_slow("""    The animals didn't know what was happening at first, but then a wise old owl explained to them that the Earth was getting warmer.
    This was called global warming, and it was caused by people using too much energy and releasing harmful gases into the air.

    """)
    pause_not_auto()

    print_slow("""    The animals were worried.

    """)
    pause_not_auto()

    print_slow("""    They loved their home and didn't want it to be destroyed. So they decided to take action.
    They started conserving energy by turning off lights and unplugging electronics when they weren't in use.
    They also encouraged people to recycle and reduce waste.

    """)
    pause_not_auto()

    print_slow("""    But even with all their efforts, the Earth continued to get warmer.
    The animals realized they needed to do something more.
    They decided to talk to the humans and ask them to change their ways.
    They knew it wouldn't be easy, but they had to try.

    """)
    pause_not_auto()

    print_slow("""    So the animals went to the nearest town and spoke to the people there.
    They explained how global warming was hurting the Earth and all its inhabitants, and they asked the humans to help.
    At first, some people didn't believe them, but others listened and started making changes.

    """)
    pause_not_auto()

    print_slow("""    Slowly but surely, the humans began to reduce their energy use and make more environmentally-friendly choices.
    They planted trees, used public transportation, and even started using renewable energy sources like wind and solar power.

    """)
    pause_not_auto()

    print_slow("""    The animals were thrilled. They could see the Earth starting to heal, and the plants and animals were thriving once again.
    And the humans were happier too, living in a cleaner and healthier environment.

    """)
    pause_not_auto()

    print_slow("""    The moral of the story is that we all have a responsibility to take care of our planet.
    Global warming is a serious issue that affects everyone, and we can all do our part to make a difference.
    Let's work together to create a better, greener world for ourselves and future generations.

    """)
    time.sleep(3)
    pause_cont()

    clear()
    print(logo)
    print_slow("    About global warming:")
    time.sleep(1)
    print_slow("""    Global warming is the long-term increase in the average temperature of the Earth's atmosphere.
    This increase is primarily caused by human activities such as burning fossil fuels and deforestation, which release greenhouse gases into the atmosphere.
    These greenhouse gases trap heat, causing the Earth's temperature to rise and leading to a range of environmental impacts such as melting ice caps, rising sea levels, and extreme weather events.
    """)

    time.sleep(1)
    pause_cont()


# Settings
autoplay = False
typing_speed = 200


def settings():
    global autoplay
    global typing_speed
    while True:
        clear()
        print(logo)
        print("(1) [A]utoplay: " + endes(autoplay))
        print("(2) [T]yping Speed: " + str(typing_speed) + "wpm")
        print("(B) [B]ack")
        print("")

        strWhat = input("Selection: ").strip().lower()

        if strWhat == "":
            continue

        if strWhat == "1" or strWhat == "a":
            autoplay = not autoplay
        if strWhat == "2" or strWhat == "t":
            speed = edit_number_menu("Now editing typing speed.", 200, " (50-500wpm)")
            if not (speed < 50 or speed > 500):
                typing_speed = speed
        elif strWhat == "b":
            break
        else:
            continue


def edit_number_menu(text, default_number, suffix):
    clear()
    print(logo)
    print(text)

    strWhat = input(f"Enter a number{suffix}: ").strip().lower()

    if strWhat == "":
        return default_number

    num = default_number
    try:
        num = int(strWhat)
    except:
        return num
    return num


def menu():
    welcome_text = "Welcome!"

    while True:
        clear()
        print(logo)
        print(welcome_text)
        print("(1) [S]tart Story")
        print("(2) Setti[n]gs")
        print("(3) [E]xit")
        print("")

        strWhat = input("Selection: ").strip().lower()

        if strWhat == "":
            continue

        if strWhat == "1" or strWhat == "s":
            clear()
            story()
            return
        elif strWhat == "2" or strWhat == "n":
            clear()
            settings()
            return
        elif strWhat == "3" or strWhat == "e":
            clear()
            print("Goodbye!")
            exit(0)
        else:
            welcome_text = f"That option does not exist."
            continue


if not os.environ.get("TERM", None):
    print(logo)
    print("This console cannot run Global Warming - The short story.\nPlease open a terminal of your choice and run the program from there.")
    input("\nPress Enter to exit... ")
    exit(0)

clear()

# WELCOME
while True:
    menu()

All rights reserved.