在TileMapLayer中显示一个瓦块(Godot学习)

复制代码
在TileMapLayer中显示一个瓦块,下面是TileMapLayer的脚步:
cs 复制代码
using Godot;
using System;

public partial class TileMapLayer : Godot.TileMapLayer
{
    public override void _Ready()
    {    
       
        // 在地图上放置 tile(假设 tileId = 0 存在于 TileSet 中)
        SetCell(new Vector2I(1, 1), 0, Vector2I.Zero);
    }
}
相关推荐
风酥糖2 天前
Godot游戏练习01-第24节-多人游戏暂停菜单,游戏优化
游戏·游戏引擎·godot
SCLchuck3 天前
Godot 4 2D 物理引擎位置初始化踩坑:add_child() 和 position 到底谁先? (错误位置触发物理事件)
游戏引擎·godot·游戏开发·物理引擎
风酥糖5 天前
Godot游戏练习01-第23节-新增Player名称显示
游戏·游戏引擎·godot
YY_pdd6 天前
godot的项目打包为安卓程序
游戏引擎·godot
amadeusCristina6 天前
Godot ——Dialogue Manager插件
游戏引擎·godot
风酥糖6 天前
Godot游戏练习01-第22节-错误弹窗与连接错误处理
游戏·游戏引擎·godot
风酥糖7 天前
Godot游戏练习01-第21节-优化游戏菜单,增加选项
游戏·游戏引擎·godot
相信神话20218 天前
第四章:Godot 4.6 核心概念与开发环境搭建
游戏引擎·godot·2d游戏编程·godot4·2d游戏开发
代数狂人8 天前
在Godot中应用面向对象原则:C#脚本实践
c#·游戏引擎·godot