-
-
Notifications
You must be signed in to change notification settings - Fork 14
/
lesson-10-the-game-loop.pot
187 lines (162 loc) · 5.56 KB
/
lesson-10-the-game-loop.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
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
# Translations template for Learn GDScript From Zero.
# Copyright (C) 2024 GDQuest
# This file is distributed under the same license as the Learn GDScript From
# Zero project.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2024.
#
#, 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: 2024-12-12 14:39+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.10.1\n"
#: course/lesson-10-the-game-loop/lesson.tres:14
msgid ""
"As we've seen, Godot has functions that do certain actions. For example, "
"the [code]show()[/code] and [code]hide()[/code] functions change the "
"visibility of things.\n"
"\n"
"We can also create our own functions to make custom effects like adding "
"or removing health to a character.\n"
"\n"
"Godot also has special functions we can customize or add to.\n"
"\n"
"Take the [code]_process()[/code] function."
msgstr ""
#: course/lesson-10-the-game-loop/lesson.tres:40
msgid ""
"The [code]_process()[/code] function gets its name because it does "
"calculations or continuous actions.\n"
"\n"
"It's like a juice factory that [b]processes[/b] juice bottles: the "
"bottles are always moving along a conveyor belt, while different machines"
" operate on them."
msgstr ""
#: course/lesson-10-the-game-loop/lesson.tres:52
msgid ""
"It's similar in Godot, but this function can run [b]hundreds of times a "
"second[/b]."
msgstr ""
#: course/lesson-10-the-game-loop/lesson.tres:60
msgid "How many parameters does this function take?"
msgstr ""
#: course/lesson-10-the-game-loop/lesson.tres:61
msgid ""
"[code]\n"
"func _process(delta):\n"
"[/code]"
msgstr ""
#: course/lesson-10-the-game-loop/lesson.tres:65
msgid ""
"The [code]_process()[/code] function takes one parameter: "
"[code]delta[/code].\n"
"\n"
"We'll look at what [code]delta[/code] is in the next lesson, as well as "
"show how to use it."
msgstr ""
#: course/lesson-10-the-game-loop/lesson.tres:68
#: course/lesson-10-the-game-loop/lesson.tres:69
msgid "1"
msgstr ""
#: course/lesson-10-the-game-loop/lesson.tres:68
msgid "2"
msgstr ""
#: course/lesson-10-the-game-loop/lesson.tres:78
msgid ""
"The [code]_process()[/code] function won't do anything until we add "
"something to it.\n"
"\n"
"You might notice the underscore [code]_[/code] in front of the function "
"name. This is a convention programmers use to coordinate work, and it'll "
"only make sense once you have experience coding in Godot.\n"
"\n"
"For now, all you need to know is that if the function exists in your "
"code, and it is called precisely [code]_process[/code], then Godot will "
"automatically run it every [i]frame[/i].\n"
"\n"
"When Godot draws on the screen, we call that a frame."
msgstr ""
#: course/lesson-10-the-game-loop/lesson.tres:92
msgid "Is this the same for other engines?"
msgstr ""
#: course/lesson-10-the-game-loop/lesson.tres:94
msgid "Other game engines might use different names like [code]_update()[/code]."
msgstr ""
#: course/lesson-10-the-game-loop/lesson.tres:102
msgid "Why is the _process() function useful?"
msgstr ""
#: course/lesson-10-the-game-loop/lesson.tres:104
msgid ""
"It's perhaps better to see the [code]_process()[/code] function in "
"action.\n"
"\n"
"Take the following example."
msgstr ""
#: course/lesson-10-the-game-loop/lesson.tres:126
msgid ""
"When you click the button [code]set_process(true)[/code], you activate "
"processing on the robot.\n"
"\n"
"From there, every frame, Godot runs the [code]_process()[/code] function."
"\n"
"\n"
"Since we wrote a [code]rotate()[/code] instruction, Godot is rotating the"
" character by [code]0.05[/code] radians [b]many[/b] times a second."
msgstr ""
#: course/lesson-10-the-game-loop/lesson.tres:138
msgid "How often does the _process() function run?"
msgstr ""
#: course/lesson-10-the-game-loop/lesson.tres:141
msgid ""
"The faster your computer, the more times [code]_process()[/code] will "
"run.\n"
"\n"
"Godot will try and run [code]_process()[/code] as quickly as it can. This"
" makes sure any movement or animations look smooth and fluid."
msgstr ""
#: course/lesson-10-the-game-loop/lesson.tres:144
msgid "Once a second."
msgstr ""
#: course/lesson-10-the-game-loop/lesson.tres:144
#: course/lesson-10-the-game-loop/lesson.tres:145
msgid "Multiple times a second."
msgstr ""
#: course/lesson-10-the-game-loop/lesson.tres:154
msgid ""
"In the practice, you'll learn how to use the process function to rotate "
"and move a character yourself."
msgstr ""
#: course/lesson-10-the-game-loop/lesson.tres:162
msgid "Rotating a Character Continuously"
msgstr ""
#: course/lesson-10-the-game-loop/lesson.tres:163
msgid ""
"Make the robot rotate slowly by adding to the [code]_process()[/code] "
"function.\n"
"\n"
"A rotation speed of about [code]0.05[/code] each frame should do."
msgstr ""
#: course/lesson-10-the-game-loop/lesson.tres:180
msgid "Creating Circular Movement"
msgstr ""
#: course/lesson-10-the-game-loop/lesson.tres:181
msgid ""
"Make the robot move in a large circle slowly by rotating it and "
"simultaneously moving it along its x direction.\n"
"\n"
"To do this, add the [code]rotate()[/code] and [code]move_local_x()[/code]"
" functions to [code]_process()[/code].\n"
"\n"
"Use a rotation speed of [code]0.05[/code] radians per frame, and move the"
" robot [code]5[/code] pixels per frame."
msgstr ""
#: course/lesson-10-the-game-loop/lesson.tres:199
msgid "The Game Loop"
msgstr ""