junglejourney

changeset 148:b7c0ad00dfa3

Added some instructions from the README.txt file.
author David Boddie <david@boddie.org.uk>
date Tue Sep 13 20:19:54 2011 +0200
parents 17d0a4c8fde5
children f1cd55ab1be2
files materials/make_packaging.py
diffstat 1 files changed, 61 insertions(+), 13 deletions(-) [+]
line diff
     1.1 --- a/materials/make_packaging.py	Mon Sep 12 23:23:09 2011 +0200
     1.2 +++ b/materials/make_packaging.py	Tue Sep 13 20:19:54 2011 +0200
     1.3 @@ -120,17 +120,17 @@
     1.4                      w += 1
     1.5              
     1.6              if words:
     1.7 -                yield self.format(words, width), self.height(words)
     1.8 +                yield self.format(words, width, last = True), self.height(words)
     1.9              elif not line:
    1.10                  yield [], self.line_height()/2
    1.11      
    1.12 -    def format(self, words, width):
    1.13 +    def format(self, words, width, last = False):
    1.14      
    1.15          output = []
    1.16          
    1.17          if len(words) == 0:
    1.18              spacing = 0
    1.19 -        elif self.align == "justify":
    1.20 +        elif self.align == "justify" and not last:
    1.21              # Full justify the text.
    1.22              total_width = sum(map(lambda word: word.width(), words))
    1.23              spacing = (width - total_width)/float(len(words))
    1.24 @@ -213,8 +213,8 @@
    1.25          os.mkdir(output_dir)
    1.26      
    1.27      pages = [
    1.28 -        Page((800, 1000),
    1.29 -             [TextBox((80, 40, 640, 1120), 
    1.30 +        Page((750, 1000),
    1.31 +             [TextBox((50, 40, 650, 0), 
    1.32                        [Text("FreeSerif", 24, "Jungle Journey\n", weight = "bold"),
    1.33                         Text("FreeSerif", 24,
    1.34                              "The last flames of the campfire fade to glowing embers and I am alone. "
    1.35 @@ -223,8 +223,8 @@
    1.36                              "sweep the cold face of the moon and I perceive the clicks, whistles and "
    1.37                              "cries of creatures in the hot air that cloaks this place. Desperately, I "
    1.38                              "try to stay my panic and remember those fragments of wilderness craft "
    1.39 -                            "learned and unlearned many years ago.\n")]),
    1.40 -              TextBox((120, 0, 560, 0),
    1.41 +                            "learned and unlearned many years ago.\n", align = "justify")]),
    1.42 +              TextBox((90, 5, 570, 0),
    1.43                        [Text("FreeSerif", 24,
    1.44                              "Choose your weapon carefully,\n"
    1.45                              "Get ready for a fight.\n"
    1.46 @@ -235,15 +235,15 @@
    1.47                              "If you don't find the hidden gate\n"
    1.48                              "You won't get out of there.\n", style = "italic")],
    1.49                        follow = True),
    1.50 -              TextBox((80, 0, 640, 0),
    1.51 +              TextBox((50, 5, 650, 0),
    1.52                        [Text("FreeSerif", 24,
    1.53                              "Hopeless, I scramble to my feet, reaching for any weapon still left to me. "
    1.54                              "Struggling through the dense undergrowth, I search for signs of a track or "
    1.55                              "trail. At first glance, paths that seemed to lead to safety turn out to be "
    1.56                              "impassable, overgrown by tangled and twisted vines. I remember the words of "
    1.57 -                            "an old teacher:\n")],
    1.58 +                            "an old teacher:\n", align = "justify")],
    1.59                        follow = True),
    1.60 -              TextBox((120, 0, 560, 0),
    1.61 +              TextBox((90, 5, 570, 0),
    1.62                        [Text("FreeSerif", 22,
    1.63                              u'\u201cDo not be tempted to use fire to make your way. '
    1.64                              'Many a traveller has strayed from the path, using fire to blaze a trail, '
    1.65 @@ -251,14 +251,61 @@
    1.66                              'has grown back. Those who are desperate enough will even seek out '
    1.67                              u'forgotten routes when the way home is in sight.\u201d\n')],
    1.68                        follow = True),
    1.69 -              TextBox((80, 0, 640, 0),
    1.70 +              TextBox((50, 5, 650, 0),
    1.71                        [Text("FreeSerif", 24,
    1.72                              "Sensing my presence, obscene creatures emerge from the darkness, hungry "
    1.73                              "for prey. Only through skill and luck am I able to dispatch them back "
    1.74                              "into the shadows. Even though I know I must journey deeper into this "
    1.75 -                            "uncharted land to find the way home, the thought of vengeance drives me on.")],
    1.76 +                            "uncharted land to find the way home, the thought of vengeance drives me on.",
    1.77 +                            align = "justify")],
    1.78                        follow = True)
    1.79 -              ])]
    1.80 +             ]),
    1.81 +        Page((750, 1000),
    1.82 +             [TextBox((50, 40, 650, 0),
    1.83 +                      [Text("FreeSerif", 24, "Loading the Game\n", weight = "bold")]),
    1.84 +              TextBox((50, 5, 640, 0),
    1.85 +                      [Text("FreeSerif", 24, "Insert the cassette or disk and type\n")],
    1.86 +                      follow = True),
    1.87 +              TextBox((90, 5, 570, 0),
    1.88 +                      [Text("FreeMono", 24, "*RUN JUNGLE\n")], follow = True),
    1.89 +              TextBox((50, 0, 640, 0),
    1.90 +                      [Text("FreeSerif", 24,
    1.91 +                            "then press Return. If you are loading the game from cassette, press play on the "
    1.92 +                            "cassette recorder. The game should now load.\n")],
    1.93 +                      follow = True),
    1.94 +              TextBox((50, 15, 640, 0),
    1.95 +                      [Text("FreeSerif", 24, "Playing the Game\n", weight = "bold")],
    1.96 +                      follow = True),
    1.97 +              TextBox((50, 5, 640, 0),
    1.98 +                      [Text("FreeSerif", 24,
    1.99 +                            "Your character can be moved around the screen by using four control keys:\n")],
   1.100 +                      follow = True),
   1.101 +              TextBox((90, 5, 570, 0),
   1.102 +                      [Text("FreeSerif", 24,
   1.103 +                            "Z     left\n"
   1.104 +                            "X     right\n"
   1.105 +                            ":     up\n"
   1.106 +                            "/     down\n")], follow = True),
   1.107 +              TextBox((50, 5, 640, 0),
   1.108 +                      [Text("FreeSerif", 24,
   1.109 +                            "Enemies can be destroying by the projectiles fired by the player's weapon. "
   1.110 +                            "To fire a weapon, press the Return key. There are four different types of "
   1.111 +                            "weapon available in the game.\n\n"
   1.112 +                            "The player must help the character reach the exit for each level. However, the "
   1.113 +                            "player must first find a key to unlock the exit. On the final level, the exit "
   1.114 +                            "does not require a key but it may be obstructed.\n\n"
   1.115 +                            "Other keys can be used to control the game:\n")],
   1.116 +                      follow = True),
   1.117 +              TextBox((90, 5, 570, 0),
   1.118 +                      [Text("FreeSerif", 24,
   1.119 +                            "S         enable sound effects\n"
   1.120 +                            "Q         disable sound effects\n"
   1.121 +                            "P         pause the game\n"
   1.122 +                            "O         resume the game\n"
   1.123 +                            "Escape    quits the game, returning to the title screen\n")],
   1.124 +                      follow = True)
   1.125 +              ])
   1.126 +        ]
   1.127      
   1.128      i = 0
   1.129      for page in pages:
   1.130 @@ -266,5 +313,6 @@
   1.131          path = os.path.join(output_dir, "page-%i.png" % i)
   1.132          image = page.render()
   1.133          image.save(path)
   1.134 +        i += 1
   1.135      
   1.136      sys.exit()