index.rst 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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. 3D games are much more complex than 2D ones. It would be best if you stuck to 2D
  26. until you understood the game development process and how to use Godot well.
  27. You can find a completed version of this project at this location:
  28. - https://github.com/godotengine/godot-demo-projects
  29. Prerequisites
  30. -------------
  31. This step-by-step tutorial is intended for beginners who followed the complete
  32. :ref:`Getting Started <toc-learn-step_by_step>`.
  33. If you're an experienced programmer, you can find the complete demo's source
  34. code here: `Godot demo projects
  35. <https://github.com/godotengine/godot-demo-projects>`__.
  36. We prepared some game assets you'll need to download so we can jump straight to
  37. the code.
  38. You can download them by clicking the link below.
  39. :download:`dodge_assets.zip <files/dodge_assets.zip>`.
  40. Contents
  41. --------
  42. .. toctree::
  43. :maxdepth: 1
  44. :name: toc-learn-first_2d_game
  45. 01.project_setup
  46. 02.player_scene
  47. 03.coding_the_player
  48. 04.creating_the_enemy
  49. 05.the_main_game_scene
  50. 06.heads_up_display
  51. 07.finishing-up
  52. .. |image0| image:: img/dodge_preview.gif