This is an explanation of the video content.
 Everything to games
Spanning time and space ...
36

 |   | 

02_创建一个角色

1.将素材放入 res://scenes/player/ 文件夹下

2.res://scenes/player/ 下创建一个2d scene,命名为player.tscn

3.player.tscn里创建两个node:

  • CharacterBody2D
    • Sprite2D
    • CollisionShape2D

4.Sprite2D节点里,将图片填入Texture,让节点显示出图片,因为png图片放大是模糊的,这里需要将图片渲染设置为邻近取样模式.

在左上角导航栏里 project>rendering>textures里设置default texture fiter 为nearest.

5.CollisionShape2D节点里,Shape设置为CircleShape,Radius设置为5px

36 🎮Game design and development ↦ Godot从0到1手把手教程 __ 20 字
 Godot从0到1手把手教程 #2