Permalink
Browse files

keep on truckin' some more

  • Loading branch information...
1 parent 1aa0613 commit 9cbf80ecf70dc139ac7543e55d8248720633114a @jholton committed Feb 7, 2013
View
@@ -1,52 +0,0 @@
-# start of game
-# time macine choice of 1969 or 1977
-# 1969 = woodstock
-# woodstock = brown acid or no brown acid
-# brown acid = bad trip wake up 15 hours later naked, and you missed the most historic concert of all time
-# no brown acid = you witnessed the most historic concert of all time and Jimi Hendrix invited you back stage to hang out.
-
-# 1977 = bad disco era
-# bad disco era = stab your own ear drum with an ice pick or buy some bell bottoms and join everyone under the disco ball
-# ice pick = you lost your hearing
-# bell bottoms = you meet the women of your dreams
-
-def prompt()
- print '> '
-end
-
-def woodstock()
- puts "The time machine puts you right in the middle of th Woodstock Music Festival."
- puts "A man with a scragly beard offers you some famous brown acid."
- puts "Do you accept or decline the brown acid?"
-
- prompt; brown_acid = gets.chomp
- if brown_acid == "accept"
- bad_trip()
- elsif brown_acid == "decline"
- jimi_hendrix()
- else
- puts "Just get in the time machine and travel back home."
- end
-end
-
-
-
-def start
- puts "You sneak your way into a secret labratory, and find a time machine."
- puts "The time machine only has two options of time travel. 1969 or 1977."
- puts "What year would you like to travel back in time to?"
-
- prompt; year_choice = gets.chomp
-
- if year_choice.include? "69"
- woodstock()
- elsif year_choice.include? "77"
- disco()
- else
- puts "You just broke the time machine and now owe the government 1 million dollars."
- end
-end
-
-start()
-# I need to def disco, bad_trip, and jimi_hendrix
-# After I def disco I need to continue with other options for the game
View
@@ -1,154 +0,0 @@
-module Stuff
- INVENTORY = []
-end
-
-def prompt()
- print "> "
-end
-
-def start()
- puts "You have arrived on a dark door step of an unfamilar house."
- puts "You were given this address by a friend."
- puts "There is a door in front of you, what would you like to do?"
- puts "Knock on the door? Open the door?"
-
- prompt; your_choice = gets.chomp
-
- if your_choice.include? "knock"
- puts "The door creeks open, but no one is behind it. You enter."
- main_hall()
- elsif your_choice.include? "open"
- puts "The floor beneath you opens and you fall to your death. Maybe next time you should knock."
- Process.exit(0)
- else
- puts "Nothing happens, and you wait on the porch until you starve to death."
- Process.exit(0)
- end
-end
-
-def main_hall()
- puts "You are in the main hall of the house."
- puts "There is a room to your right, a staircase, and a door to your left."
- puts "What room would you like to go into?"
-
- prompt; your_choice = gets.chomp
-
- if your_choice.include?("right")
- kitchen()
- elsif your_choice.include?("left")
- dining_room()
- else
- staircase()
- end
-end
-
-def kitchen()
- puts "You are in a kitchen."
- puts "There is a candle and matches, a knife, and a pantry door."
- puts "Would you like to take something, or search the pantry?"
-
- prompt; your_choice = gets.chomp
-
- if your_choice.include?("take")
- puts "Which item would you like to take?"
-
- prompt; take_something = gets.chomp
-
- if take_something.include? "candle" || "matches"
- Stuff::INVENTORY << 1
- puts "You decide to return to the main hall with your candle and matches."
- main_hall()
- elsif take_something.include? "knife"
- Stuff::INVENTORY << 2
- puts "You decide to return to the main hall with your knife."
- main_hall()
- end
-
- elsif your_choice.include? "search"
- puts "You search the pantry and find a mutilated corpse."
- puts "You drop dead from fear."
- Process.exit(0)
- end
-end
-
-def dining_room()
- if Stuff::INVENTORY.include?(1)
- puts "You are unable to see in this room so you light your candle."
- puts "You are in a dining room."
- puts "There is a key on the dining room table."
- puts "You take the key, and head back to the main hall."
- Stuff::INVENTORY << 3
- main_hall()
-
- else
- puts "You are in a dark room."
- puts "You can't see a thing."
- puts "What would you like to do?"
- puts "Attempt to search the room, call for help, or return to the main hall?"
-
- prompt; your_choice = gets.chomp
-
- if your_choice.include? "search"
- puts "You wander aimlessly in this room and find nothing."
- puts "You return to the main hall."
- main_hall()
- elsif your_choice.include? "call"
- puts "You call out for help."
- puts "You can hear someone whisper your name from behind."
- puts "You felt safer in the main hall."
- main_hall()
- else
- puts "you shouldn't see this."
- end
- end
-end
-
-def staircase()
- if Stuff::INVENTORY.include?(1)
- puts "You have a key that will fit this door."
- puts "You put the key in the hole and open it."
- puts "All your friends are waiting behind the door!"
- puts "It's a surprise party!"
- puts "Your friends have a sick sense of humor...."
- Process.exit(0)
- else
- puts "The is a door at the top of the staircase."
- puts "Would you like to open it?"
-
- prompt; your_choice = gets.chomp
-
- if your_choice.include? "yes"
- puts "The door is locked, you decide to go back to the main hall."
- main_hall()
- else
- puts "You return to the main hall."
- main_hall()
- end
- end
-end
-
-start()
-
-
-#Haunted house
-#start off on the porch to the house
-#You must enter by knocking, the door will open with no one behind it.
-#if you try to open the door a trap door will open below you and you will fall to your death
-#you are in the main hall, there will be two rooms and a staircase
-#room 1 living room, it is dark, no lights.
-#go back to the main hall? Search for a light source? Call for help?
-#if search sudden death, to be determined.
-#call for help, whispers your name
-#room 2 the kitchen, there is a candle and matches, a knife, and a pantry
-#what would you like to do? if take add to inventory
-#if search death! not sure how yet
-#back to main hall?
-#staircase leads to a locked door. Would you like to try to open it?
-#if you try to open it, suprise nothing happens, lucky bastard.
-#after getting the candle and matches and taking them back to room 1 another prompt
-#would you like to light the candle? if so there are a set of keys on the dining room table
-#if the knife was taken and you try to search the room someone will push you from behind
-#sending you onto your knife to your death, congrats!!!!!! cant figure out!!
-#take the key, and another prompt on where to go next.
-#If you go to the stair case and use the key on the door, it will open to your suprise birthday party!
-#congrats your friends are dicks, what a surprise!
View
Binary file not shown.
View
@@ -1,31 +0,0 @@
-class Disco < Level
-
- def start()
- puts "You must like the Bee Gee's. The time machine landed you in the middle of a disco."
- puts "There's loud disco music, a disco ball, and everyone is wearing bell bottoms and dancing like fools."
- puts "You can either grab the ice pick from behind the bar, and stab your ear drums, or go buy some bell bottoms and start dancing."
- puts "Which do you choose?"
-
- prompt; decision = gets.chomp
-
- if decision.include? "ice pick"
- ice_pick()
- elsif decision.include? "bell bottoms"
- dance_floor()
- end
- end
-
- def ice_pick()
- die "Your an idiot, you didn't have to stab your own ear drum, you could have just walked out.\nBut since your are an idiot, you are now deaf for the rest of your life.\nGood luck with that."
- end
-
- def dance_floor()
- die <<-MESSAGE
- Your on the dance floor dancing with several attractive women.
- You begin to hit on one of the women and she is very into you.
- You both find a quite booth and start having a nice conversation.
- Since you traveled back in time, you find out through your deep conversation, that in fact, you have been hitting on you mom this whole time.
- That's what you get for choosing the disco era.
- MESSAGE
- end
-end
View
@@ -1,6 +0,0 @@
-require File.expand_path(File.dirname(__FILE__) + "/level")
-require File.expand_path(File.dirname(__FILE__) + "/home")
-require File.expand_path(File.dirname(__FILE__) + "/disco")
-require File.expand_path(File.dirname(__FILE__) + "/woodstock")
-
-Home.new.start
View
@@ -1,17 +0,0 @@
-class Home < Level
- def start
- puts "You sneak your way into a secret labratory, and find a time machine."
- puts "The time machine only has two options of time travel. 1969 or 1977."
- puts "What year would you like to travel back in time to?"
-
- prompt; year_choice = gets.chomp
-
- if year_choice.include? "69"
- Woodstock.new.start
- elsif year_choice.include? "77"
- Disco.new.start
- else
- puts "You just broke the time machine and now owe the government 1 million dollars."
- end
- end
-end
View
@@ -1,13 +0,0 @@
-class Level
-
- def prompt()
- print '> '
- end
-
- def die(message)
- puts(message)
- Process.exit(0)
- end
-end
-
-
View
@@ -1,96 +0,0 @@
-# start of game
-# time macine choice of 1969 or 1977
-# 1969 = woodstock
-# woodstock = brown acid or no brown acid
-# brown acid = bad trip wake up 15 hours later naked, and you missed the most historic concert of all time
-# no brown acid = you witnessed the most historic concert of all time and Jimi Hendrix invited you back stage to hang out.
-
-# 1977 = bad disco era
-# bad disco era = stab your own ear drum with an ice pick or buy some bell bottoms and join everyone under the disco ball
-# ice pick = you lost your hearing
-# bell bottoms = you meet the women of your dreams
-
-def prompt()
- print '> '
-end
-
-def hospital()
- puts "Your an idiot, you didn't have to stab your own ear drum, you could have just walked out."
- puts "But since your are an idiot, you are now deaf for the rest of your life."
- puts "Good luck with that."
-end
-
-def dance_floor()
- puts "Your on the dance floor dancing with several attractive women."
- puts "You begin to hit on one of the women and she is very into you."
- puts "You both find a quite booth and start having a nice conversation."
- puts "Since you traveled back in time, you find out through your deep conversation, that in fact, you have been hitting on you mom this whole time."
- puts "That's what you get for choosing the disco era."
-end
-
-
-def disco()
- puts "You must like the Bee Gee's. The time machine landed you in the middle of a disco."
- puts "There's loud disco music, a disco ball, and everyone is wearing bell bottoms and dancing like fools."
- puts "You can either grab the ice pick from behind the bar, and stab your ear drums, or go buy some bell bottoms and start dancing."
- puts "Which do you choose?"
-
- prompt; decision = gets.chomp
- if decision.include? "ice pick"
- hospital()
- elsif decision.include? "bell bottoms"
- dance_floor()
- end
-end
-
-
-def jimi_hendrix()
- puts "You did not take the brown acid and witnessed Jimi Hendrix' famous rendition of the Star Spangled Banner."
- puts "Not only did get to see Hendrix play, but he invites you back to his tour bus for the after party. You are awesome!!!"
-end
-
-
-def bad_trip()
- puts "You experienced the effects of the brown acid."
- puts "Not only did you miss the most historic music festval in history, but you also woke up completly naked and have no idea where you are."
- puts "You suck at life."
-end
-
-def woodstock()
- puts "The time machine puts you right in the middle of th Woodstock Music Festival."
- puts "A man with a scragly beard offers you some famous brown acid."
- puts "Do you accept or decline the brown acid?"
-
- prompt; brown_acid = gets.chomp
- if brown_acid == "accept"
- bad_trip()
- elsif brown_acid == "decline"
- jimi_hendrix()
- else
- puts "Just get in the time machine and travel back home."
- end
-end
-
-
-
-def start
- puts "You sneak your way into a secret labratory, and find a time machine."
- puts "The time machine only has two options of time travel. 1969 or 1977."
- puts "What year would you like to travel back in time to?"
-
- prompt; year_choice = gets.chomp
-
- if year_choice.include? "69"
- woodstock()
- elsif year_choice.include? "77"
- disco()
- else
- puts "You just broke the time machine and now owe the government 1 million dollars."
- end
-end
-
-start()
-
-
-
-
Oops, something went wrong.

0 comments on commit 9cbf80e

Please sign in to comment.