游戏 UI/2D/Control 界面制作 | 音视频
综合/最新
Godot游戏开发 | 知名游戏作品
新:
无。
综合:
AudioStreamInteractive 类似 AudioStreamPlaylist 音频播放列表,但能添加剪辑 set_clip_stream(clip_index: int, stream: AudioStream),并管理播放顺序和过渡。
UI/2D/Control
综合:
等轴视图(远近大小一样)是完全在2D设计视图下按瓷砖等比例排列出来,而近大远小的斜视角游戏则是在3D视图的_Process中,以摄像头为中心,遍历所有2D纸片物体,使其rotation朝向摄像头方向,视角旋转也要持续朝着。
等轴视图(TileSet.TileShape = Isometric/斜45度视图)是在 2D 游戏中制造 3D 效果的显示方法,有时我们也称它为伪 3D 或 2.5D。
Tilemap(瓦片地图/节点名为TileMapLayer)是指由小方块(Tile瓦片)拖拽组成的二维地图(TileSet)。
Tile指定为场景(或Atlas纹理) - https://docs.godotengine.org/zh-cn/4.5/tutorials/2d/using_tilemaps.html#id7
Tile指定自定义数据:
get_cell_tile_data(cell).set_custom_data(layer, value)
notify_runtime_tile_data_update()
实例:
2D等轴视图(需改为TileMapLayer) - https://github.com/godotengine/godot-demo-projects/tree/master/2d/isometric
字体
综合:
无
字体:
var ff = new FontFile(); // OS.GetSystemFonts() // Windows 已内置 Noto Sans SC
ff.Data = FileAccess.GetFileAsBytes(OS.GetSystemFontPath("Noto Sans SC"));
_TextMesh.Font = (Font)ff;