LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Closed Thread
  Search this Thread
Old 10-28-2012, 07:45 PM   #1
tw1tch
LQ Newbie
 
Registered: Sep 2012
Distribution: Windows 7, Ubuntu 12.10, Fedora 17
Posts: 27

Rep: Reputation: Disabled
Would this work?


I'm not to good with linux as im new but i am part of a small indie game development team and were currently working on a first person platformer on the Unreal engine 3 but i was wondering, would it be possible to make a game that you play inside terminal with bash scripts? sort of something like this (i wrote a quick bash script and im sure theres mistakes in it but heres what im guessing it would look like):

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
clear

echo "You awaken lying face down in the middle of the road, by the position of the sun it is about noon, there's a half collapsed McDonalds 25 yards to the east. You look west and see an aircraft slam into a lake, by the markings you can see that it is an American Airlines passenger jet, you hear no cries for help and everyone inside is presumed dead, there is a long narrow road coming from the North and headed somewhere south, in what direction do you wish to go?"

echo ""

if [ $direction = north ]
then echo "You walk for 3 days and 3 nights, there have been no signs of surviviors, you found an orange on the side of the road and have kept it in case you cannot find any other food. You are now at a cross roads, you can only go one direction, to your east lays nothing but road, you can see a barn in the distance to the north and what seems to be a small town to the west or, you can turn back the way you came which is not advisable. Choose wisely, you have little food and enough water for a days trip at best, choose your path."

elif [insert bullcrap here]

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

I got the idea from the easter egg in Call of Duty:Black Ops in which you play a cool little text based game, so is it possible to do this and run the script in terminal?
 
Old 10-28-2012, 08:20 PM   #2
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Moderator Response

Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate of http://www.linuxquestions.org/questi...2/#post4817071
 
  


Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
I'm defeated: Can't get SCP to work in chroot jail (but sftp and ssh work fine) ponga Linux - Security 2 09-30-2011 11:06 AM
[SOLVED] Sound comes and goes in Flash, no media players work, system sounds generally DO work damgar Arch 2 07-03-2010 12:46 PM
With PCI bridge TI PCI2050, VT6212's EHCI can't work(time out), but its UHCI can work thisway.diy Linux - Kernel 0 10-23-2009 09:32 PM
can't make ethernet on laptop work, wireless and usb work fine ubuntu 8.10 rz1988 Linux - Newbie 10 01-13-2009 02:21 PM
FALCONS EYE (nethack) FAILS ON STARTUP, use to work, wont work even after reinstall roorings Linux - Software 0 10-08-2003 10:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration