index.rst 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. :allow_comments: False
  2. .. _doc_your_first_3d_game:
  3. Your first 3D game
  4. ==================
  5. In this step-by-step tutorial series, you will create your first complete 3D
  6. game with Godot. By the end of the series, you will have a simple yet finished
  7. project of your own like the animated gif below.
  8. |image0|
  9. The game we'll code here is similar to :ref:`doc_your_first_2d_game`, with a twist:
  10. you can now jump and your goal is to squash the creeps. This way, you will both
  11. **recognize patterns** you learned in the previous tutorial and **build upon
  12. them** with new code and features.
  13. You will learn to:
  14. - Work with 3D coordinates with a jumping mechanic.
  15. - Use kinematic bodies to move 3D characters and detect when and how they
  16. collide.
  17. - Use physics layers and a group to detect interactions with specific entities.
  18. - Code basic procedural gameplay by instancing monsters at regular time
  19. intervals.
  20. - Design a movement animation and change its speed at runtime.
  21. - Draw a user interface on a 3D game.
  22. And more.
  23. This tutorial is for beginners who followed the complete getting started series.
  24. We'll start slow with detailed instructions and shorten them as we do similar
  25. steps. If you're an experienced programmer, you can browse the complete demo's
  26. source code here: `Squash the Creep source code
  27. <https://github.com/godotengine/godot-3d-dodge-the-creeps>`__.
  28. .. note::
  29. You can follow this series without having done the 2D one. However, if
  30. you're new to game development, we recommend you to start with 2D. 3D game
  31. code is always more complex and the 2D series will give you foundations to
  32. follow along more comfortably.
  33. We prepared some game assets so we can jump straight to the code. You can
  34. download them here: `Squash the Creeps assets
  35. <https://github.com/godotengine/godot-3d-dodge-the-creeps/releases/tag/1.1.0>`__.
  36. We will first work on a basic prototype for the player's movement. We will then
  37. add the monsters that we'll spawn randomly around the screen. After that, we'll
  38. implement the jump and squashing mechanic before refining the game with some
  39. nice animation. We'll wrap up with the score and the retry screen.
  40. Contents
  41. --------
  42. .. toctree::
  43. :maxdepth: 1
  44. :name: toc-learn-first_3d_game
  45. 01.game_setup
  46. 02.player_input
  47. 03.player_movement_code
  48. 04.mob_scene
  49. 05.spawning_mobs
  50. 06.jump_and_squash
  51. 07.killing_player
  52. 08.score_and_replay
  53. 09.adding_animations
  54. going_further
  55. .. |image0| image:: img/squash-the-creeps-final.gif