在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);
    }
}
相关推荐
风子1113 天前
pong_Day 3:AI 对手球拍 + 计分系统 + 胜负判定
godot
风子1114 天前
pong_day02_让球飞来+碰撞反弹
godot
kyle~14 天前
Godot开源游戏引擎
开源·游戏引擎·godot
郝学胜-神的一滴15 天前
[简化版 GAMES 101] 计算机图形学 13:从光栅化到着色——赋予三维像素光影灵魂
c++·计算机视觉·unity·godot·图形渲染·opengl·unreal
Zwarwolf16 天前
Godot零散知识点项目汇总
游戏引擎·godot
caimouse18 天前
Godot Engine 最新版官方文档(简体中文完整翻译 & 精简梳理)
游戏引擎·godot
郝学胜-神的一滴19 天前
中级OpenGL教程 009:用环境光告别模型死黑
前端·c++·unity·godot·图形渲染·opengl·unreal
张学徒19 天前
Godot 4.x 中导入Excel文件的最简单的方式
游戏·godot·gdscript·游戏开发
caimouse20 天前
Godot 引擎官方常见问题(FAQ)整理
游戏引擎·godot
caimouse21 天前
Godot 4.7 内嵌 C# 模块切换到 .NET 9.0 编译指南
c#·.net·godot