comparison gamelib/helpscreen.py @ 572:40eee9e1246c

extended help; renamed building-related buttons.
author Adrianna Pińska <adrianna.pinska@gmail.com>
date Sat, 28 Nov 2009 20:22:51 +0000
parents a8dde729000a
children ecad90bbdc61
comparison
equal deleted inserted replaced
571:2921169e545b 572:40eee9e1246c
9 """Welcome to %s 9 """Welcome to %s
10 10
11 Introduction: 11 Introduction:
12 12
13 The aim of the game is to make as much money as possible from your chicken 13 The aim of the game is to make as much money as possible from your chicken
14 farm. The problem is the foxes, which want to eat your chickens. Since hiring 14 farm. The problem is that chickens are delicious and foxes want to eat them.
15 guards is both too expensive and unreliable, the obvious solution is to help 15 Since hiring guards is too expensive and too unreliable, the obvious solution
16 the chickens defend themselves. 16 is to help the chickens defend themselves.
17 17
18 You lose if you end a night with no chickens left. 18 You lose if you end a night with no chickens left.
19 19
20 Check the in-game controls reference for information about keys and mouse buttons!
21
20 """ % constants.NAME, 22 """ % constants.NAME,
21 23
22 """Important Game mechanics: 24 """Biology and economics:
23 25
24 Chickens only lay eggs in henhouses, and must stay on the egg for 2 days to 26 Chickens only lay eggs in henhouses. An egg must be incubated for two days to
25 hatch a new chicken. Chickens that hatch in already full henhouses are 27 hatch. Chickens that hatch in already full henhouses are moved outside. If there
26 moved to just outside. If there is no space outside, they die immediately 28 is no space left next to the henhouse, they die immediately from overcrowding.
27 from overcrowding.
28 29
29 Buildings require wood to construct. You can either trade money for wood, 30 Chickens have short attention spans, and will stray from where you put them at
30 or, by equipping a chicken with an axes, and placing it near trees, your 31 the end of the day if they are out in the open.
31 chickens will chop down trees at the end of the day.
32 32
33 Chickens that aren't in buildings will move around at the end of the day. 33 You can sell chickens and eggs. Only one egg per chicken will hatch; the excess
34 is sold automatically. The fox pelts your chickens acquire during their violent
35 nocturnal activities are also sold automatically.
36
37 Buildings require wood to construct. You can buy and sell wood. If you equip a
38 chicken with an axe and place it next to some trees, it will chop some down at the
39 end of the day.
40
41 """,
42
43 """Equipment:
44
45 Axe: For chopping down trees. Doubles as a weapon, but it's not very good. \\
46 Helmet: Cheap armour. \\
47 Kevlar: More expensive and durable armour. \\
48 Knife: Easy to use, but only at melee range, \\
49 Rifle: Ranged weapon; requires more skill. \\
50 Sniper rifle: Longer range and better accuracy than the plain rifle, but less ammo per clip.
51
52 You can sell equipment, but you don't get the full price back.
53
54 Guns use ammunition. You have an unlimited supply, but chickens don't have pockets, so they
55 can only use one clip per night.
56
57 """,
34 58
35 """ 59 """
60 Buildings:
61
62 Henhouse: The standard chicken dwelling. \\
63 Hendominium: A luxury double-storey chicken dwelling. \\
64 Watchtower: A lookout post which helps chickens with rifles to see better and further away. \\
65 Fence: A barrier to both foxes and chickens.
66
67 You can repair broken fences and demolish buildings for their wood. You won't get as
68 much as you started with -- chickens are bad tenants and peck holes in everything.
69
70 """,
71
72 """
73 The enemy:
74
75 Fox: One of the little furry gluttons who are gorging themselves on your chickens. \\
76 Greedy fox: Doesn't have the decency to stop at just one chicken. \\
77 Ninja fox: Tries to sneak past your chicken guards. \\
78 Sapper fox: Blows up your fences with explosives. \\
79 Rinkhals: Not in fact a fox at all. It has eclectic tastes. \\
80
81 """,
36 ] 82 ]
37 83
38 LEVEL_TEXT="""The currently selected level is %(name)s 84 LEVEL_TEXT="""The currently selected level is %(name)s
39 85
40 The goal is: 86 The goal is:
110 HELP[self.cur_page] 156 HELP[self.cur_page]
111 157
112 for paragraph in full_text.split('\n\n'): 158 for paragraph in full_text.split('\n\n'):
113 self.block(align=-1) 159 self.block(align=-1)
114 for word in paragraph.split(): 160 for word in paragraph.split():
115 self.add(gui.Label(word)) 161 if word == "\\":
116 self.space(space) 162 self.br(space[1])
163 else:
164 self.add(gui.Label(word))
165 self.space(space)
117 self.br(space[1]) 166 self.br(space[1])
118 self.br(space[1]) 167 self.br(space[1])
119 self.add(self.prev_button, align=-1) 168 self.add(self.prev_button, align=-1)
120 self.add(self.next_button, align=1) 169 self.add(self.next_button, align=1)
121 self.add(self.done_button, align=0) 170 self.add(self.done_button, align=0)