forked from GDQuest/learn-gdscript
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlesson-9-adding-and-subtracting.pot
155 lines (136 loc) · 4.94 KB
/
lesson-9-adding-and-subtracting.pot
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
# Translations template for Learn GDScript From Zero.
# Copyright (C) 2022 GDQuest
# This file is distributed under the same license as the Learn GDScript From
# Zero project.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2022.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: Learn GDScript From Zero \n"
"Report-Msgid-Bugs-To: https://github.com/GDQuest/learn-gdscript\n"
"POT-Creation-Date: 2022-02-18 15:02+0300\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.9.0\n"
#: course/lesson-9-adding-and-subtracting/lesson.tres:14
msgid ""
"Our character in our game will have health by defining the "
"[code]health[/code] variable. The higher the character's health, the "
"further away the player is from losing the game.\n"
"\n"
"Health that changes adds tension to the game, especially if the player is"
" fighting with low health! It's a resource that that player should manage"
" carefully.\n"
"\n"
"The character's health might get low if an enemy attacks them or they "
"fall into a hole.\n"
"\n"
"We can create a function to represent damage in these cases."
msgstr ""
#: course/lesson-9-adding-and-subtracting/lesson.tres:40
msgid ""
"We pass the amount of damage the robot should take as a parameter.\n"
"\n"
"Line 2 subtracts [code]amount[/code] from [code]health[/code].\n"
"\n"
"Note the [code]-=[/code] syntax which achieves this. It's a shorthand we "
"often use.\n"
"\n"
"You can also use a longer form. Both of these lines have the same effect."
" They both subtract the value of [code]amount[/code] to the "
"[code]health[/code] variable:\n"
"\n"
"[code]health -= amount[/code]\n"
"[code]health = health - amount[/code]\n"
"\n"
"You may notice that the health of the robot can go below [code]0[/code]. "
"We'll see how to manage this in a future lesson using [i]conditions[/i]."
msgstr ""
#: course/lesson-9-adding-and-subtracting/lesson.tres:61
msgid ""
"The robot's health could increase instead if the player picks up an item "
"that heals them, or if they use a healing item."
msgstr ""
#: course/lesson-9-adding-and-subtracting/lesson.tres:81
msgid ""
"Here again, the health can go beyond [code]100[/code].\n"
"\n"
"Also, once more, the short line [code]health += amount[/code] is "
"equivalent to the longer form [code]health = health + amount[/code]."
msgstr ""
#: course/lesson-9-adding-and-subtracting/lesson.tres:91
msgid "Which of these would increase the health of the robot?"
msgstr ""
#: course/lesson-9-adding-and-subtracting/lesson.tres:94
msgid ""
"Both of these lines increase the [code]health[/code] of the robot by "
"[code]amount[/code].\n"
"[code]\n"
"health += amount\n"
"health = health + amount\n"
"[/code]"
msgstr ""
#: course/lesson-9-adding-and-subtracting/lesson.tres:99
msgid "health -= amount"
msgstr ""
#: course/lesson-9-adding-and-subtracting/lesson.tres:99
#: course/lesson-9-adding-and-subtracting/lesson.tres:100
msgid "health += amount"
msgstr ""
#: course/lesson-9-adding-and-subtracting/lesson.tres:99
#: course/lesson-9-adding-and-subtracting/lesson.tres:100
msgid "health = health + amount"
msgstr ""
#: course/lesson-9-adding-and-subtracting/lesson.tres:99
msgid "health = health - amount"
msgstr ""
#: course/lesson-9-adding-and-subtracting/lesson.tres:109
msgid ""
"In the following practices, you'll code the [code]take_damage()[/code] "
"and [code]heal()[/code] functions so the robot's health can decrease and "
"increase."
msgstr ""
#: course/lesson-9-adding-and-subtracting/lesson.tres:117
msgid "Damaging the Robot"
msgstr ""
#: course/lesson-9-adding-and-subtracting/lesson.tres:118
msgid ""
"In our game, the main character has a certain amount of "
"[code]health[/code]. When it gets hit, the health should go down by a "
"varying [code]amount[/code] of damage.\n"
"\n"
"Add to the [code]take_damage()[/code] function so it subtracts the "
"[code]amount[/code] to the predefined [code]health[/code] variable.\n"
"\n"
"The robot starts with 100 health and will take 50 damage."
msgstr ""
#: course/lesson-9-adding-and-subtracting/lesson.tres:130
msgid "Learn how to deal damage to entities like our robot."
msgstr ""
#: course/lesson-9-adding-and-subtracting/lesson.tres:135
msgid "Healing the Robot"
msgstr ""
#: course/lesson-9-adding-and-subtracting/lesson.tres:136
msgid ""
"It's time to heal the robot up to full health!\n"
"\n"
"Write a function called [code]heal()[/code] that takes "
"[code]amount[/code] as a parameter.\n"
"\n"
"The function should add [code]amount[/code] to [code]health[/code].\n"
"\n"
"The robot starts with 50 health and will heal 50 to get it up to 100."
msgstr ""
#: course/lesson-9-adding-and-subtracting/lesson.tres:149
msgid ""
"Our robot needs healing after that practice! Create a function to heal it"
" back to full health."
msgstr ""
#: course/lesson-9-adding-and-subtracting/lesson.tres:153
msgid "Adding and Subtracting"
msgstr ""