mirror of
https://github.com/godotengine/godot-docs-l10n.git
synced 2025-12-31 09:49:22 +03:00
125 lines
6.8 KiB
Plaintext
125 lines
6.8 KiB
Plaintext
# SOME DESCRIPTIVE TITLE.
|
|
# Copyright (C) 2014-present Juan Linietsky, Ariel Manzur and the Godot community (CC BY 3.0)
|
|
# This file is distributed under the same license as the Godot Engine package.
|
|
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
|
#
|
|
#, fuzzy
|
|
msgid ""
|
|
msgstr ""
|
|
"Project-Id-Version: Godot Engine latest\n"
|
|
"Report-Msgid-Bugs-To: \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"
|
|
|
|
#: ../../docs/getting_started/first_2d_game/07.finishing-up.rst:4
|
|
msgid "Finishing up"
|
|
msgstr ""
|
|
|
|
#: ../../docs/getting_started/first_2d_game/07.finishing-up.rst:6
|
|
msgid "We have now completed all the functionality for our game. Below are some remaining steps to add a bit more \"juice\" to improve the game experience."
|
|
msgstr ""
|
|
|
|
#: ../../docs/getting_started/first_2d_game/07.finishing-up.rst:9
|
|
msgid "Feel free to expand the gameplay with your own ideas."
|
|
msgstr ""
|
|
|
|
#: ../../docs/getting_started/first_2d_game/07.finishing-up.rst:12
|
|
msgid "Background"
|
|
msgstr ""
|
|
|
|
#: ../../docs/getting_started/first_2d_game/07.finishing-up.rst:14
|
|
msgid "The default gray background is not very appealing, so let's change its color. One way to do this is to use a :ref:`ColorRect <class_ColorRect>` node. Make it the first node under ``Main`` so that it will be drawn behind the other nodes. ``ColorRect`` only has one property: ``Color``. Choose a color you like and select \"Layout\" -> \"Anchors Preset\" -> \"Full Rect\" either in the toolbar at the top of the viewport or in the inspector so that it covers the screen."
|
|
msgstr ""
|
|
|
|
#: ../../docs/getting_started/first_2d_game/07.finishing-up.rst:20
|
|
msgid "You could also add a background image, if you have one, by using a :ref:`TextureRect <class_TextureRect>` node instead."
|
|
msgstr ""
|
|
|
|
#: ../../docs/getting_started/first_2d_game/07.finishing-up.rst:24
|
|
msgid "Sound effects"
|
|
msgstr ""
|
|
|
|
#: ../../docs/getting_started/first_2d_game/07.finishing-up.rst:26
|
|
msgid "Sound and music can be the single most effective way to add appeal to the game experience. In your game's **art** folder, you have two sound files: \"House In a Forest Loop.ogg\" for background music, and \"gameover.wav\" for when the player loses."
|
|
msgstr ""
|
|
|
|
#: ../../docs/getting_started/first_2d_game/07.finishing-up.rst:31
|
|
msgid "Add two :ref:`AudioStreamPlayer <class_AudioStreamPlayer>` nodes as children of ``Main``. Name one of them ``Music`` and the other ``DeathSound``. On each one, click on the ``Stream`` property, select \"Load\", and choose the corresponding audio file."
|
|
msgstr ""
|
|
|
|
#: ../../docs/getting_started/first_2d_game/07.finishing-up.rst:36
|
|
msgid "All audio is automatically imported with the ``Loop`` setting disabled. If you want the music to loop seamlessly, click on the Stream file arrow, select ``Make Unique``, then click on the Stream file and check the ``Loop`` box."
|
|
msgstr ""
|
|
|
|
#: ../../docs/getting_started/first_2d_game/07.finishing-up.rst:42
|
|
msgid "To play the music, add ``$Music.play()`` in the ``new_game()`` function and ``$Music.stop()`` in the ``game_over()`` function."
|
|
msgstr ""
|
|
|
|
#: ../../docs/getting_started/first_2d_game/07.finishing-up.rst:45
|
|
msgid "Finally, add ``$DeathSound.play()`` in the ``game_over()`` function."
|
|
msgstr ""
|
|
|
|
#: ../../docs/getting_started/first_2d_game/07.finishing-up.rst:76
|
|
msgid "Keyboard shortcut"
|
|
msgstr ""
|
|
|
|
#: ../../docs/getting_started/first_2d_game/07.finishing-up.rst:78
|
|
msgid "Since the game is played with keyboard controls, it would be convenient if we could also start the game by pressing a key on the keyboard. We can do this with the \"Shortcut\" property of the ``Button`` node."
|
|
msgstr ""
|
|
|
|
#: ../../docs/getting_started/first_2d_game/07.finishing-up.rst:82
|
|
msgid "In a previous lesson, we created four input actions to move the character. We will create a similar input action to map to the start button."
|
|
msgstr ""
|
|
|
|
#: ../../docs/getting_started/first_2d_game/07.finishing-up.rst:85
|
|
msgid "Select \"Project\" -> \"Project Settings\" and then click on the \"Input Map\" tab. In the same way you created the movement input actions, create a new input action called ``start_game`` and add a key mapping for the :kbd:`Enter` key."
|
|
msgstr ""
|
|
|
|
#: ../../docs/getting_started/first_2d_game/07.finishing-up.rst:92
|
|
msgid "Now would be a good time to add controller support if you have one available. Attach or pair your controller and then under each input action that you wish to add controller support for, click on the \"+\" button and press the corresponding button, d-pad, or stick direction that you want to map to the respective input action."
|
|
msgstr ""
|
|
|
|
#: ../../docs/getting_started/first_2d_game/07.finishing-up.rst:97
|
|
msgid "In the ``HUD`` scene, select the ``StartButton`` and find its **Shortcut** property in the Inspector. Create a new :ref:`Shortcut <class_Shortcut>` resource by clicking within the box, open the **Events** array and add a new array element to it by clicking on **Array[InputEvent] (size 0)**."
|
|
msgstr ""
|
|
|
|
#: ../../docs/getting_started/first_2d_game/07.finishing-up.rst:104
|
|
msgid "Create a new :ref:`InputEventAction <class_InputEventAction>` and name it ``start_game``."
|
|
msgstr ""
|
|
|
|
#: ../../docs/getting_started/first_2d_game/07.finishing-up.rst:108
|
|
msgid "Now when the start button appears, you can either click it or press :kbd:`Enter` to start the game."
|
|
msgstr ""
|
|
|
|
#: ../../docs/getting_started/first_2d_game/07.finishing-up.rst:111
|
|
msgid "And with that, you completed your first 2D game in Godot."
|
|
msgstr ""
|
|
|
|
#: ../../docs/getting_started/first_2d_game/07.finishing-up.rst:115
|
|
msgid "You got to make a player-controlled character, enemies that spawn randomly around the game board, count the score, implement a game over and replay, user interface, sounds, and more. Congratulations!"
|
|
msgstr ""
|
|
|
|
#: ../../docs/getting_started/first_2d_game/07.finishing-up.rst:119
|
|
msgid "There's still much to learn, but you can take a moment to appreciate what you achieved."
|
|
msgstr ""
|
|
|
|
#: ../../docs/getting_started/first_2d_game/07.finishing-up.rst:122
|
|
msgid "And when you're ready, you can move on to :ref:`doc_your_first_3d_game` to learn to create a complete 3D game from scratch, in Godot."
|
|
msgstr ""
|
|
|
|
#: ../../docs/getting_started/first_2d_game/07.finishing-up.rst:126
|
|
msgid "Sharing the finished game with others"
|
|
msgstr ""
|
|
|
|
#: ../../docs/getting_started/first_2d_game/07.finishing-up.rst:128
|
|
msgid "If you want people to try out your game without having to install Godot, you'll need to export the project for each operating system you want the game to be playable on. See :ref:`doc_exporting_projects` for instructions."
|
|
msgstr ""
|
|
|
|
#: ../../docs/getting_started/first_2d_game/07.finishing-up.rst:132
|
|
msgid "After exporting the project, compress the exported executable and PCK file (not the raw project files) to a ZIP file, then upload this ZIP file to a file sharing website."
|
|
msgstr ""
|