Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Text Game Testing/Dev
#1
Hey Guys!
I am PKMindBlow and I am currently working on a text game inspired by EarthBound and the Mother Series in general. It also uses some custom ASCII artwork I\'ve been working on. Also, I am new to the forum so I don\'t know how this works.
Anyway. I\'ve been wondering if anyone would want to test it out, give opinions, etc.
Thank you, and here's the code! Big Grin
AREA = 0
MAXHP = 10
HP = 10
HP2 = 10
EHP = 6
time.sleep(3)
print('This game is a text adventure, therefore its gameplay is strictly limited to battles, buying items, talking to people and looking for secrets.')
print('Due to this, the focal point of this game is to tell a story and to demonstrate Python\'s text adventure capabilities.')
print('Thank you,\nEnjoy!')
time.sleep(6)
print(' ____                                                              /\                                  ')
print('|                                       |                         /  \           |                         |')
print('|                                       |                        /    \          |                         |')
print('|____         _____   ____          ____|  ______               /______\     ____|         _____   ____  __|__          ____   _____')
print('|     \    / |_____| |    | \    / |    | |    |  \    /       /        \   |    | \    / |_____| |    |   |    |    | |    | |_____|') 
print('|      \  /  |       |       \  /  |    | |    |   \  /       /          \  |    |  \  /  |       |    |   |    |    | |      |')
print('|____   \/   |_____| |        \/   |____| |____|_   \/       /            \ |____|   \/   |_____| |    |   |    |____| |      |_____|')
print('                              /                     /')
print('                             /                     /')
print('A wacky adventure in a world all to real!')
input('Hit Enter')

for x in range(0, 100):
    print('')
time.sleep(2)
print('Centown')
time.sleep(2)
print('3:00 AM')
time.sleep(2)
print('1999')
time.sleep(2)
print('Zero awakes to a call on his walkie-talkie which is under the pillow.')
time.sleep(2)
print('*ZERO..KRSHK..CLUBHOUSE..KRSHK..NOW!*')
time.sleep(2)
print('You\'ll need a weapon.')
input('Hit Enter')
AREA = 0
I = ['']
PARTY = ['']
while 0 == 0:
    if AREA == 0:
        print('You are in your room. To the West is the living room. Your baseball bat (WB) lies on the dresser.')
        password = input(':')
        if password == 'W':
            if I[0] == '':
                print('What about that weapon!')
            if I[0] == 'BAT':
                print('OK')
                AREA = AREA+1
        if password == 'WB':
            if I[0] == '':
                print('It was your Dad\'s before you got it...You love baseball, but you haven\'t played baseball since he left...')
                input('Hit Enter')
                for x in range(0, 100):
                    print('   #')
                input('Hit Enter')
                print('Got The Wooden Bat')
                I.append('BAT')
                del I[0]
            else:
                print('You already have a bat!')
    if AREA == 1:
        print('You\'re in the living room. Nothing to see really, except that the door is to the N')
        password = input(':')
        
        if password == 'N':
            print('You step outside...')
            AREA = AREA+1
        if password == 'E':
            print('You reenter your room.')
            input('Hit Enter')
            print('But you can\'t sleep knowing that Echo needed you!')
            input('Hit Enter')
            for x in range(0, 50):
                print('')
    if AREA == 2:
        print('You are outside your house. To the N is Echo\'s house.')
        password = input(':')
        if password == 'N':
            print('You step forward...')
            input('Hit Enter')
            print('An Enemy Approaches!')
            time.sleep(3)
            for x in range(0, 50):
                print('          |               ')
            print('Runaway Toast Man Approaches!\n')
            print('     ____      ___ ')
            print('    //   \____/   \ ')
            print('    ||             | ')
            print('____||   V      V  |____ ')
            print('    ||             | ')
            print('    ||        o    | ')
            print('    \\____________/ ')
            print('     /            \ ')
            print('    /             / ')
            print('Your Turn')
            input('Hit Enter')
            password = input('Swing Bat(1) Defend(2) PA(N/A)')
            if password == 'N/A':
                print('Wow. You take things waaaaaay to literally!')
                print('But seriously, you know absolutely no Psychic Abilities...')
            if password == '1':
                OPTS = [0, 0, 1]
                
            if passwrod == '2':
                print('Zero is guarding!')
                DEF = 0
            
                
            
            
            
        
            








#COOL TOAST or DAD
#print('  ___      ___ ')
#print(' ////\____/\\\\ ')
#print('|\____________/| ')
#print('| \____/\____/ | ')
#print('|              | ')
#print('|    \____/    | ')
#print(' \____________/ ')

#TEXT IDEAS
#My Boulder has evovled into a.....Mega Frickin MOUNTAIN!!!
#Swag Bagels
#Jammin Toast Man...a Toastman with a guitar!
#Echo tried PA Lightning! Then he remembers that he can\'t use PA\'s


                      
def ECHOFINALBREATH():
    print('Echo dives in front of the shot, throwing the bomb simultaneously')
    time.sleep(2.5)
    print('Zero : ECHO NO!')
    time.sleep(3)
    print('Infinity : IN THE SHORT TIME I\'VE BEEN LIVING...I\'VE DISRUPTED YOUR LIFE GREATLY...')
    time.sleep(2)
    print('Infinity : AND WITH MY FINAL BREATHS I WILL VOW TO CONTINUE DOING SO...')
    time.sleep(2)
    print('Infinity began to make modem noises...')
    time.sleep(2)
    print('Infinty\'s thruster rocket launched him into the sky...')
    time.sleep(2)
    print('Echo : Zero...was I help..ful?')
    time.sleep(2)
    print('Zero : Oh....Echo...You...you....')
    time.sleep(2)
    print('Echo : Don\'t...worry, Zero...Just get the heck outta here...')
    time.sleep(2)
    print('Echo gave his final breath...')
    time.sleep(5)
    print('Zero began to cry...')
    time.sleep(3.5)
    print('However\n He knew what he had to do.')
    
PS: The battle sequence isn't finished, and I recommend you run this in fullscreen Python 3.3 GUI. And yes I know I\'ve been making backslashes at every apostrophe. It's a Python habit.

Just realized that this doesn't have imports at the top!
Add import time to the top of the code in order to fix this.
Here is the updated code!

import time
import random
AREA = 0
MAXHP = 10
HP = 10
HP2 = 10
EHP = 6
time.sleep(3)
print('This game is a text adventure, therefore its gameplay is strictly limited to battles, buying items, talking to people and looking for secrets.')
print('Due to this, the focal point of this game is to tell a story and to demonstrate Python\'s text adventure capabilities.')
print('Thank you,\nEnjoy!')
time.sleep(6)
print(' ____                                                              /\                                  ')
print('|                                       |                         /  \           |                         |')
print('|                                       |                        /    \          |                         |')
print('|____         _____   ____          ____|  ______               /______\     ____|         _____   ____  __|__          ____   _____')
print('|     \    / |_____| |    | \    / |    | |    |  \    /       /        \   |    | \    / |_____| |    |   |    |    | |    | |_____|') 
print('|      \  /  |       |       \  /  |    | |    |   \  /       /          \  |    |  \  /  |       |    |   |    |    | |      |')
print('|____   \/   |_____| |        \/   |____| |____|_   \/       /            \ |____|   \/   |_____| |    |   |    |____| |      |_____|')
print('                              /                     /')
print('                             /                     /')
print('A wacky adventure in a world all to real!')
input('Hit Enter')

for x in range(0, 100):
    print('')
time.sleep(2)
print('Centown')
time.sleep(2)
print('3:00 AM')
time.sleep(2)
print('1999')
time.sleep(2)
print('Zero awakes to a call on his walkie-talkie which is under the pillow.')
time.sleep(2)
print('*ZERO..KRSHK..CLUBHOUSE..KRSHK..NOW!*')
time.sleep(2)
print('You\'ll need a weapon.')
input('Hit Enter')
AREA = 0
I = ['']
PARTY = ['']
while 0 == 0:
    if AREA == 0:
        print('You are in your room. To the West is the living room. Your baseball bat (WB) lies on the dresser.')
        password = input(':')
        if password == 'W':
            if I[0] == '':
                print('What about that weapon!')
            if I[0] == 'BAT':
                print('OK')
                AREA = AREA+1
        if password == 'WB':
            if I[0] == '':
                print('It was your Dad\'s before you got it...You love baseball, but you haven\'t played baseball since he left...')
                input('Hit Enter')
                for x in range(0, 100):
                    print('   #')
                input('Hit Enter')
                print('Got The Wooden Bat')
                I.append('BAT')
                del I[0]
            else:
                print('You already have a bat!')
    if AREA == 1:
        print('You\'re in the living room. Nothing to see really, except that the door is to the N')
        password = input(':')
        
        if password == 'N':
            print('You step outside...')
            AREA = AREA+1
        if password == 'E':
            print('You reenter your room.')
            input('Hit Enter')
            print('But you can\'t sleep knowing that Echo needed you!')
            input('Hit Enter')
            for x in range(0, 50):
                print('')
    if AREA == 2:
        print('You are outside your house. To the N is Echo\'s house.')
        password = input(':')
        if password == 'N':
            print('You step forward...')
            input('Hit Enter')
            print('An Enemy Approaches!')
            time.sleep(3)
            for x in range(0, 50):
                print('          |               ')
            print('Runaway Toast Man Approaches!\n')
            print('     ____      ___ ')
            print('    //   \____/   \ ')
            print('    ||             | ')
            print('____||   V      V  |____ ')
            print('    ||             | ')
            print('    ||        o    | ')
            print('    \\____________/ ')
            print('     /            \ ')
            print('    /             / ')
            print('Your Turn')
            input('Hit Enter')
            password = input('Swing Bat(1) Defend(2) PA(N/A)')
            if password == 'N/A':
                print('Wow. You take things waaaaaay to literally!')
                print('But seriously, you know no Psychic Abilities...')
            if password == '1':
                OPTS = [0, 0, 1]
                
            if passwrod == '2':
                print('Zero is guarding!')
                DEF = 0
            
                
            
            
            
        
            








#COOL TOAST or DAD
#print('  ___      ___ ')
#print(' ////\____/\\\\ ')
#print('|\____________/| ')
#print('| \____/\____/ | ')
#print('|              | ')
#print('|    \____/    | ')
#print(' \____________/ ')

#TEXT IDEAS
#My Boulder has evovled into a.....Mega Frickin MOUNTAIN!!!
#Swag Bagels
#Jammin Toast Man...a Toastman with a guitar!
#Echo tried PA Lightning! Then he remembers that he can\'t use PA\'s


                      
def ECHOFINALBREATH():
    print('Echo dives in front of the shot, throwing the bomb simultaneously')
    time.sleep(2.5)
    print('Zero : ECHO NO!')
    time.sleep(3)
    print('Infinity : IN THE SHORT TIME I\'VE BEEN LIVING...I\'VE DISRUPTED YOUR LIFE GREATLY...')
    time.sleep(2)
    print('Infinity : AND WITH MY FINAL BREATHS I WILL VOW TO CONTINUE DOING SO...')
    time.sleep(2)
    print('Infinity began to make modem noises...')
    time.sleep(2)
    print('Infinty\'s thruster rocket launched him into the sky...')
    time.sleep(2)
    print('Echo : Zero...was I help..ful?')
    time.sleep(2)
    print('Zero : Oh....Echo...You...you....')
    time.sleep(2)
    print('Echo : Don\'t...worry, Zero...Just get the heck outta here...')
    time.sleep(2)
    print('Echo gave his final breath...')
    time.sleep(5)
    print('Zero began to cry...')
    time.sleep(3.5)
    print('However\n He knew what he had to do.')
    
Reply


Messages In This Thread
Text Game Testing/Dev - by PKMindBlow - Dec-10-2017, 02:18 AM
RE: Text Game Testing/Dev - by EgMusic - Dec-11-2017, 01:57 PM
RE: Text Game Testing/Dev - by PKMindBlow - Dec-12-2017, 11:03 PM
RE: Text Game Testing/Dev - by PKMindBlow - Dec-13-2017, 01:25 AM
RE: Text Game Testing/Dev - by PKMindBlow - Jan-20-2018, 03:13 AM
RE: Text Game Testing/Dev - by j.crater - Jan-20-2018, 09:25 AM
RE: Text Game Testing/Dev - by Larz60+ - Jan-20-2018, 12:53 PM
RE: Text Game Testing/Dev - by j.crater - Jan-20-2018, 12:55 PM
RE: Text Game Testing/Dev - by Larz60+ - Jan-20-2018, 12:56 PM
RE: Text Game Testing/Dev - by metulburr - Jan-20-2018, 01:27 PM
RE: Text Game Testing/Dev - by PKMindBlow - Jan-21-2018, 08:44 PM
RE: Text Game Testing/Dev - by Larz60+ - Jan-21-2018, 08:54 PM
RE: Text Game Testing/Dev - by metulburr - Jan-21-2018, 11:29 PM
RE: Text Game Testing/Dev - by PKMindBlow - Jan-23-2018, 02:33 AM
RE: Text Game Testing/Dev - by metulburr - Jan-23-2018, 04:47 AM
RE: Text Game Testing/Dev - by PKMindBlow - Jan-23-2018, 01:35 PM
RE: Text Game Testing/Dev - by PKMindBlow - Jan-24-2018, 03:23 AM
RE: Text Game Testing/Dev - by metulburr - Jan-24-2018, 04:02 AM
RE: Text Game Testing/Dev - by PKMindBlow - Jan-31-2018, 10:34 PM
RE: Text Game Testing/Dev - by buran - Feb-01-2018, 09:11 AM
RE: Text Game Testing/Dev - by PKMindBlow - Feb-02-2018, 11:05 PM
RE: Text Game Testing/Dev - by PKMindBlow - Feb-05-2018, 11:04 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Adding an inventory and a combat system to a text based adventure game detkitten 2 6,870 Dec-17-2019, 03:40 AM
Last Post: detkitten
  Using classes for room movement (text game) Lawr3y 3 6,571 Aug-20-2019, 12:40 AM
Last Post: Lawr3y
  Text Based Game DuaneJack 3 3,545 Aug-15-2018, 12:02 PM
Last Post: ichabod801

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020