index.rst 2.4 KB

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