소스 검색

Change C++ animation name for consistency in Your first 2D game (#5938)

Steven Calvert 3 년 전
부모
커밋
a52f5eb499
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      getting_started/first_2d_game/03.coding_the_player.rst

+ 1 - 1
getting_started/first_2d_game/03.coding_the_player.rst

@@ -361,7 +361,7 @@ movement. Let's place this code at the end of the ``_process()`` function:
  .. code-tab:: cpp
 
         if (velocity.x != 0) {
-            _animated_sprite->set_animation("right");
+            _animated_sprite->set_animation("walk");
             _animated_sprite->set_flip_v(false);
             // See the note below about boolean assignment.
             _animated_sprite->set_flip_h(velocity.x < 0);