浏览代码

Add 2D animation tutorial

Chris Bradfield 6 年之前
父节点
当前提交
25fae63f12
共有 2 个文件被更改,包括 27 次插入0 次删除
  1. 26 0
      tutorials/2d/2d_sprite_animation.rst
  2. 1 0
      tutorials/2d/index.rst

+ 26 - 0
tutorials/2d/2d_sprite_animation.rst

@@ -0,0 +1,26 @@
+.. _doc_2d_sprite_animation:
+
+2D Sprite Animation
+===================
+
+Introduction
+------------
+
+In this tutorial, you'll learn two different ways to create 2D animated
+characters. Typically, when you create or download an animated character, it
+will come in one of two ways: as individual images or as a single spritesheet
+containing all the animation's frames. Depending on which type of assets you
+have, you can choose one of the following solutions.
+
+First, we'll use :ref:`AnimatedSprite <class_AnimatedSprite>` to
+animate a collection of individual images. Then, to use a spritesheet, we'll
+use :ref:`AnimationPlayer <class_AnimationPlayer>` along with the _Animation_
+property of :ref:`Sprite <class_Sprite>`.
+
+Individual images with AnimatedSprite
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+
+Sprite sheets with AnimationPlayer
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+

+ 1 - 0
tutorials/2d/index.rst

@@ -13,3 +13,4 @@
    2d_lights_and_shadows
    2d_meshes
    custom_drawing_in_2d
+   2d_sprite_animation