gamejam

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

run (2003B)


      1 #!/bin/sh
      2 
      3 clear 
      4 aplay music.wav &> /dev/null & 
      5 
      6 echo """
      7                                      _/
      8     _/_/_/                        _/
      9    _/    _/    _/_/      _/_/_/      _/_/_/
     10   _/    _/  _/    _/  _/          _/_/
     11  _/    _/  _/    _/  _/              _/_/
     12 _/_/_/      _/_/      _/_/_/    _/_/_/
     13 
     14 
     15 
     16      _/_/_/  _/                              _/
     17   _/        _/_/_/      _/_/      _/_/_/  _/_/_/_/
     18  _/  _/_/  _/    _/  _/    _/  _/_/        _/
     19 _/    _/  _/    _/  _/    _/      _/_/    _/
     20  _/_/_/  _/    _/    _/_/    _/_/_/        _/_/
     21 
     22 Developed by Lucas		  Written by Laura 
     23 Music ripped from 		     Hollow Knight
     24 """
     25 
     26 sleep 3
     27 
     28 clear
     29 
     30 echo """
     31 Hey...you...are
     32 you here to help?
     33 """ | fmt | ./pp
     34 
     35 echo """
     36 What's going on,
     37 are you the only one
     38 here?
     39 """ | fmt | ./pp
     40 
     41 echo """
     42 No...I'm just the
     43 only one who cares
     44 to stay anymore.
     45 Don't you remember
     46 what happened? The
     47 infection...so many
     48 lives lost...there
     49 are only 10 of us
     50 left but one is
     51 still very sick.
     52 Sadly, nobody can
     53 remember the cure
     54 and so we are
     55 preparing for a
     56 funeral in
     57 the village.
     58 """ | fmt | ./pp
     59 
     60 echo """
     61 I can look for the
     62 cure. Where should I
     63 start?
     64 """ | fmt | ./pp
     65 
     66 echo """
     67 Try talking to the  
     68 others. They may 
     69 have some ideas.
     70 """ | fmt | ./pp
     71 
     72 sleep 1
     73 
     74 old=$(stty -g)
     75 
     76 ./mapgen > map.S
     77 make game
     78 stty raw -echo
     79 
     80 
     81 (sleep 10m  && kill $(pidof game)) &
     82 ./game && if [[ $? -eq 0 ]]; then
     83 	stty "$old"
     84 	clear
     85 
     86 	echo """
     87 	You found the
     88 	formula for the cure
     89 	on time! You were able
     90 	to save the I'll from
     91 	dying. Because
     92 	you found the cure,
     93 	you were also able
     94 	to cure yourself of
     95 	a budding infection
     96 	that you had not
     97 	noticed during your
     98 	adventure. You were
     99 	handsomely rewarded
    100 	for your efforts.
    101 		THE END
    102 		""" | fmt | ./pp
    103 else
    104 	stty "$old"
    105 	clear
    106 
    107 	echo """
    108 	You ran out of time!
    109 	Sadly, the person
    110 	passed from the
    111 	infection. During
    112 	your adventure, you
    113 	also got infected.
    114 	Nobody knew the
    115 	cure to save you.
    116 	Sadly, the village
    117 	had two funerals
    118 	that night.
    119 		THE END
    120 	""" | fmt | ./pp
    121 
    122 
    123 fi
    124 
    125 
    126 pkill -P $$
    127