Ver código fonte

Move your_first_game to a dedicated section, write index.rst

I moved some text from the tutorial to the index.rst document to match
the 3D series and group the overview and pre-requisites there.
Nathan Lovato 4 anos atrás
pai
commit
2d86f1496e
31 arquivos alterados com 65 adições e 21 exclusões
  1. 0 0
      getting_started/first_2d_game/files/dodge_assets.zip
  2. 0 0
      getting_started/first_2d_game/img/add_node.png
  3. 0 0
      getting_started/first_2d_game/img/add_script_button.png
  4. 0 0
      getting_started/first_2d_game/img/attach_node_window.png
  5. 0 0
      getting_started/first_2d_game/img/completed_main_scene.png
  6. 0 0
      getting_started/first_2d_game/img/custom_font1.png
  7. 0 0
      getting_started/first_2d_game/img/custom_font2.png
  8. 0 0
      getting_started/first_2d_game/img/dodge_preview.gif
  9. 0 0
      getting_started/first_2d_game/img/draw_path2d.gif
  10. 0 0
      getting_started/first_2d_game/img/export_variable.png
  11. 0 0
      getting_started/first_2d_game/img/filesystem_dock.png
  12. 0 0
      getting_started/first_2d_game/img/grid_snap_button.png
  13. 0 0
      getting_started/first_2d_game/img/group_tab.png
  14. 0 0
      getting_started/first_2d_game/img/instance_scene.png
  15. 0 0
      getting_started/first_2d_game/img/lock_children.png
  16. 0 0
      getting_started/first_2d_game/img/main_scene_nodes.png
  17. 0 0
      getting_started/first_2d_game/img/mob_animations.gif
  18. 0 0
      getting_started/first_2d_game/img/path2d_buttons.png
  19. 0 0
      getting_started/first_2d_game/img/player_coll_shape.png
  20. 0 0
      getting_started/first_2d_game/img/player_scale.png
  21. 0 0
      getting_started/first_2d_game/img/player_scene_nodes.png
  22. 0 0
      getting_started/first_2d_game/img/player_signal_connection.png
  23. 0 0
      getting_started/first_2d_game/img/player_signals.png
  24. 0 0
      getting_started/first_2d_game/img/set_collision_mask.png
  25. 0 0
      getting_started/first_2d_game/img/spriteframes_panel.png
  26. 0 0
      getting_started/first_2d_game/img/spriteframes_panel2.png
  27. 0 0
      getting_started/first_2d_game/img/start_button_shortcut.png
  28. 0 0
      getting_started/first_2d_game/img/ui_anchor.png
  29. 64 0
      getting_started/first_2d_game/index.rst
  30. 0 21
      getting_started/first_2d_game/your_first_game.rst
  31. 1 0
      index.rst

+ 0 - 0
getting_started/step_by_step/files/dodge_assets.zip → getting_started/first_2d_game/files/dodge_assets.zip


+ 0 - 0
getting_started/step_by_step/img/add_node.png → getting_started/first_2d_game/img/add_node.png


+ 0 - 0
getting_started/step_by_step/img/add_script_button.png → getting_started/first_2d_game/img/add_script_button.png


+ 0 - 0
getting_started/step_by_step/img/attach_node_window.png → getting_started/first_2d_game/img/attach_node_window.png


+ 0 - 0
getting_started/step_by_step/img/completed_main_scene.png → getting_started/first_2d_game/img/completed_main_scene.png


+ 0 - 0
getting_started/step_by_step/img/custom_font1.png → getting_started/first_2d_game/img/custom_font1.png


+ 0 - 0
getting_started/step_by_step/img/custom_font2.png → getting_started/first_2d_game/img/custom_font2.png


+ 0 - 0
getting_started/step_by_step/img/dodge_preview.gif → getting_started/first_2d_game/img/dodge_preview.gif


+ 0 - 0
getting_started/step_by_step/img/draw_path2d.gif → getting_started/first_2d_game/img/draw_path2d.gif


+ 0 - 0
getting_started/step_by_step/img/export_variable.png → getting_started/first_2d_game/img/export_variable.png


+ 0 - 0
getting_started/step_by_step/img/filesystem_dock.png → getting_started/first_2d_game/img/filesystem_dock.png


+ 0 - 0
getting_started/step_by_step/img/grid_snap_button.png → getting_started/first_2d_game/img/grid_snap_button.png


+ 0 - 0
getting_started/step_by_step/img/group_tab.png → getting_started/first_2d_game/img/group_tab.png


+ 0 - 0
getting_started/step_by_step/img/instance_scene.png → getting_started/first_2d_game/img/instance_scene.png


+ 0 - 0
getting_started/step_by_step/img/lock_children.png → getting_started/first_2d_game/img/lock_children.png


+ 0 - 0
getting_started/step_by_step/img/main_scene_nodes.png → getting_started/first_2d_game/img/main_scene_nodes.png


+ 0 - 0
getting_started/step_by_step/img/mob_animations.gif → getting_started/first_2d_game/img/mob_animations.gif


+ 0 - 0
getting_started/step_by_step/img/path2d_buttons.png → getting_started/first_2d_game/img/path2d_buttons.png


+ 0 - 0
getting_started/step_by_step/img/player_coll_shape.png → getting_started/first_2d_game/img/player_coll_shape.png


+ 0 - 0
getting_started/step_by_step/img/player_scale.png → getting_started/first_2d_game/img/player_scale.png


+ 0 - 0
getting_started/step_by_step/img/player_scene_nodes.png → getting_started/first_2d_game/img/player_scene_nodes.png


+ 0 - 0
getting_started/step_by_step/img/player_signal_connection.png → getting_started/first_2d_game/img/player_signal_connection.png


+ 0 - 0
getting_started/step_by_step/img/player_signals.png → getting_started/first_2d_game/img/player_signals.png


+ 0 - 0
getting_started/step_by_step/img/set_collision_mask.png → getting_started/first_2d_game/img/set_collision_mask.png


+ 0 - 0
getting_started/step_by_step/img/spriteframes_panel.png → getting_started/first_2d_game/img/spriteframes_panel.png


+ 0 - 0
getting_started/step_by_step/img/spriteframes_panel2.png → getting_started/first_2d_game/img/spriteframes_panel2.png


+ 0 - 0
getting_started/step_by_step/img/start_button_shortcut.png → getting_started/first_2d_game/img/start_button_shortcut.png


+ 0 - 0
getting_started/step_by_step/img/ui_anchor.png → getting_started/first_2d_game/img/ui_anchor.png


+ 64 - 0
getting_started/first_2d_game/index.rst

@@ -0,0 +1,64 @@
+Your first 2D game
+==================
+
+In this step-by-step tutorial series, you will create your first complete 2D
+game with Godot. By the end of the series, you will have a simple yet complete
+game of your own, like the image below.
+
+|image0|
+
+You will learn how the Godot editor works, how to structure a project, and build
+a 2D game.
+
+.. note:: This project is an introduction to the Godot engine. It assumes that
+          you have some programming experience already. If you're new to
+          programming entirely, you should start here: :ref:`doc_scripting`.
+
+The game is called "Dodge the Creeps!". Your character must move and avoid the
+enemies for as long as possible. Here is a preview of the final result:
+
+You will learn to:
+
+- Create a complete 2D game with the Godot editor.
+- Structure a simple game project.
+- Move the player character and change its sprite.
+- Spawn random enemies.
+- Count the score.
+
+And more.
+
+You'll find another series where you'll create a similar game but in 3D. We
+recommend you to start with this one, though.
+
+**Why start with 2D?**
+
+3D games are much more complex than 2D ones. It would be best if you stuck to 2D
+until you understood the game development process and how to use Godot well.
+
+Prerequisites
+-------------
+
+This step-by-step tutorial is intended for beginners who followed the complete
+:ref:`Getting Started <toc-learn-step_by_step>`.
+
+If you're an experienced programmer, you can find the complete demo's source
+code here: `Godot demo projects
+<https://github.com/godotengine/godot-demo-projects>`__.
+
+We prepared some game assets you'll need to download so we can jump straight to
+the code.
+
+You can download them by clicking the link below.
+
+:download:`dodge_assets.zip <files/dodge_assets.zip>`.
+
+Contents
+--------
+
+.. toctree::
+   :maxdepth: 1
+   :name: toc-learn-introduction
+
+   your_first_game.rst
+
+.. |image0| image:: img/dodge_preview.gif

+ 0 - 21
getting_started/step_by_step/your_first_game.rst → getting_started/first_2d_game/your_first_game.rst

@@ -3,27 +3,6 @@
 Your first game
 ===============
 
-Overview
---------
-
-This tutorial will guide you through making your first Godot
-project. You will learn how the Godot editor works, how to structure
-a project, and how to build a 2D game.
-
-.. note:: This project is an introduction to the Godot engine. It
-          assumes that you have some programming experience already. If
-          you're new to programming entirely, you should start here:
-          :ref:`doc_scripting`.
-
-The game is called "Dodge the Creeps!". Your character must move and
-avoid the enemies for as long as possible. Here is a preview of the
-final result:
-
-.. image:: img/dodge_preview.gif
-
-**Why 2D?** 3D games are much more complex than 2D ones. You should stick to 2D
-until you have a good understanding of the game development process and how to
-use Godot.
 
 Project setup
 -------------

+ 1 - 0
index.rst

@@ -77,6 +77,7 @@ The main documentation for the site is organized into the following sections:
 
    getting_started/introduction/index
    getting_started/step_by_step/index
+   getting_started/first_2d_game/index
    getting_started/first_3d_game/index