junglejourney
changeset 185:ae1d814100fa
Removed hard-coded page size.
Formatted text to fit on the page slightly better.
Added the license header text.
| author | David Boddie <david@boddie.org.uk> |
|---|---|
| date | Mon Sep 26 20:13:02 2011 +0200 |
| parents | cd78196f8910 |
| children | 25d790206b6c |
| files | materials/make_packaging.py |
| diffstat | 1 files changed, 40 insertions(+), 17 deletions(-) [+] |
line diff
1.1 --- a/materials/make_packaging.py Mon Sep 26 00:18:54 2011 +0200 1.2 +++ b/materials/make_packaging.py Mon Sep 26 20:13:02 2011 +0200 1.3 @@ -61,13 +61,16 @@ 1.4 def open(self): 1.5 1.6 self.text = ('<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n' 1.7 - '<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"\n' 1.8 - ' "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">\n' 1.9 - '<svg version="1.1"\n' 1.10 - ' xmlns="http://www.w3.org/2000/svg"\n' 1.11 - ' xmlns:xlink="http://www.w3.org/1999/xlink"\n' 1.12 - ' width="6.5cm" height="10.0cm"\n' 1.13 - ' viewBox="0 0 650 1000">\n') 1.14 + '<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"\n') 1.15 + 1.16 + def add_page(self, width, height): 1.17 + 1.18 + self.text += (' "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">\n' 1.19 + '<svg version="1.1"\n' 1.20 + ' xmlns="http://www.w3.org/2000/svg"\n' 1.21 + ' xmlns:xlink="http://www.w3.org/1999/xlink"\n' 1.22 + ' width="%fcm" height="%fcm"\n' 1.23 + ' viewBox="0 0 %i %i">\n') % (width/100.0, height/100.0, width, height) 1.24 1.25 def add_image(self, x, y, width, height, path): 1.26 1.27 @@ -103,6 +106,8 @@ 1.28 1.29 def render(self, svg): 1.30 1.31 + svg.add_page(self.size[0], self.size[1]) 1.32 + 1.33 positions = [(0, 0)] 1.34 for obj in self.objects: 1.35 1.36 @@ -353,7 +358,7 @@ 1.37 "right indent": 40} 1.38 1.39 monospace_quote = {"family": "FreeMono", 1.40 - "size": 24, 1.41 + "size": 22, 1.42 "left indent": 40, 1.43 "right indent": 40} 1.44 1.45 @@ -365,7 +370,7 @@ 1.46 key_descriptions_quote = {"family": "FreeSerif", 1.47 "size": 24, 1.48 "left indent": 160, 1.49 - "right indent": 40} 1.50 + "right indent": 0} 1.51 1.52 exclamation = {"family": "FreeSerif", 1.53 "size": 28, 1.54 @@ -430,9 +435,11 @@ 1.55 Page((650, 1000), 1.56 [TextBox((25, 35, 600, 0), 1.57 [Text(title, "Loading the Game\n"), 1.58 - Text(regular, "Insert the cassette or disk and type\n"), 1.59 - Text(monospace_quote, "*RUN JUNGLE\n"), 1.60 - Text(regular, 1.61 + Text(regular, "Insert the cassette or disk and type\n")]), 1.62 + TextBox((25, -2, 600, 0), 1.63 + [Text(monospace_quote, "*RUN JUNGLE\n")], follow = True), 1.64 + TextBox((25, -2, 600, 0), 1.65 + [Text(regular, 1.66 "then press Return. If you are loading the game from cassette, press play on the " 1.67 "cassette recorder. The game should now load.\n"), 1.68 Text(title, "Playing the Game\n"), 1.69 @@ -440,10 +447,11 @@ 1.70 "The player must help the character reach the exit for each level. However, the " 1.71 "player must first find a key to unlock the exit. On the final level, the exit " 1.72 "does not require a key but it may be obstructed. Enemies will appear in each " 1.73 - "location and attack the player's character. These can be destroyed by " 1.74 + "location and attack the player's character. They can be destroyed by " 1.75 "projectiles fired by the current weapon.\n"), 1.76 Text(regular, 1.77 - "Your character can be moved around the screen by using four control keys:\n")]), 1.78 + "Your character can be moved around the screen by using four control keys:\n")], 1.79 + follow = True), 1.80 TextBox((25, 0, 600, 0), 1.81 [Text(keys_quote, 1.82 "Z\n" 1.83 @@ -536,12 +544,27 @@ 1.84 [TextBox((25, 50, 600, 0), 1.85 [Text(back_cover_title, "Jungle Journey"), 1.86 Text(back_cover_subtitle, "for the Acorn Electron and BBC Model B")]), 1.87 - Image((100, 8, 500, 0), "screenshot1.png", scale = 0.4, follow = True), 1.88 - TextBox((25, 900, 600, 0), 1.89 + Image((101, 0, 450, 0), "screenshot1.png", scale = 0.7, follow = True), 1.90 + TextBox((25, 45, 600, 0), 1.91 [Text(back_cover_centred, 1.92 u"Copyright \u00a9 2011 David Boddie\n" 1.93 u"An Infukor production for Retro Software\n" 1.94 - u"http://www.retrosoftware.co.uk/")]), 1.95 + u"http://www.retrosoftware.co.uk/")], follow = True), 1.96 + TextBox((25, 20, 600, 0), 1.97 + [Text(regular, 1.98 + "This program is free software: you can redistribute it and/or modify " 1.99 + "it under the terms of the GNU General Public License as published by " 1.100 + "the Free Software Foundation, either version 3 of the License, or " 1.101 + "(at your option) any later version.\n" 1.102 + "\n" 1.103 + "This program is distributed in the hope that it will be useful, " 1.104 + "but WITHOUT ANY WARRANTY; without even the implied warranty of " 1.105 + "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the " 1.106 + "GNU General Public License for more details.\n" 1.107 + "\n" 1.108 + "You should have received a copy of the GNU General Public License " 1.109 + "along with this program.\nIf not, see <http://www.gnu.org/licenses/>.")], 1.110 + follow = True) 1.111 ]), 1.112 ] 1.113
