index.rst 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. .. _doc_your_first_2d_game:
  2. Your first 2D game
  3. ==================
  4. In this step-by-step tutorial series, you will create your first complete 2D
  5. game with Godot. By the end of the series, you will have a simple yet complete
  6. game of your own, like the image below.
  7. |image0|
  8. You will learn how the Godot editor works, how to structure a project, and build
  9. a 2D game.
  10. .. note:: This project is an introduction to the Godot engine. It assumes that
  11. you have some programming experience already. If you're new to
  12. programming entirely, you should start here: :ref:`doc_scripting`.
  13. The game is called "Dodge the Creeps!". Your character must move and avoid the
  14. enemies for as long as possible.
  15. You will learn to:
  16. - Create a complete 2D game with the Godot editor.
  17. - Structure a simple game project.
  18. - Move the player character and change its sprite.
  19. - Spawn random enemies.
  20. - Count the score.
  21. And more.
  22. You'll find another series where you'll create a similar game but in 3D. We
  23. recommend you to start with this one, though.
  24. **Why start with 2D?**
  25. If you are new to game development or unfamiliar with Godot, we recommend
  26. starting with 2D games. This will allow you to become comfortable with both
  27. before tackling 3D games, which tend to be more complicated.
  28. You can find a completed version of this project at this location:
  29. - https://github.com/godotengine/godot-demo-projects
  30. Prerequisites
  31. -------------
  32. This step-by-step tutorial is intended for beginners who followed the complete
  33. :ref:`Getting Started <toc-learn-step_by_step>`.
  34. If you're an experienced programmer, you can find the complete demo's source
  35. code here: `Godot demo projects
  36. <https://github.com/godotengine/godot-demo-projects>`__.
  37. We prepared some game assets you'll need to download so we can jump straight to
  38. the code.
  39. You can download them by clicking the link below.
  40. `dodge_the_creeps_2d_assets.zip <https://github.com/godotengine/godot-docs-project-starters/releases/download/latest-4.x/dodge_the_creeps_2d_assets.zip>`_.
  41. Contents
  42. --------
  43. .. toctree::
  44. :maxdepth: 1
  45. :name: toc-learn-first_2d_game
  46. 01.project_setup
  47. 02.player_scene
  48. 03.coding_the_player
  49. 04.creating_the_enemy
  50. 05.the_main_game_scene
  51. 06.heads_up_display
  52. 07.finishing-up
  53. .. |image0| image:: img/dodge_preview.gif