在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);
    }
}
相关推荐
相信神话20211 天前
3.5《酒魂》体验与失败设计
游戏引擎·godot·godot4
刘欣的博客2 天前
Godot的Normalized()函数说明
godot·normalized函数说明
风酥糖3 天前
Godot游戏练习01-第34节-开始引入AI开发
人工智能·游戏·godot
郝学胜-神的一滴9 天前
[简化版 GAMES 101] 计算机图形学 08:三角形光栅化上
c++·unity·游戏引擎·godot·图形渲染·opengl·unreal
Being0912 天前
GDScript使用静态类型并开启严格的类型检查
godot
郝学胜-神的一滴13 天前
中级OpenGL教程 004:为几何体注入法线灵魂
c++·unity·游戏引擎·godot·图形渲染·opengl·unreal
相信神话202117 天前
3.2《酒魂》规则设计文档
游戏引擎·godot·2d游戏编程·godot4·2d游戏开发
风酥糖17 天前
Godot游戏练习01-第33节-新增会爆炸的敌人
游戏·游戏引擎·godot
郝学胜-神的一滴18 天前
罗德里格斯旋转公式(Rodrigues‘ Rotation Formula)完整推导
c++·unity·godot·图形渲染·three.js·unreal
OSwich19 天前
【 Godot 4 学习笔记】数组(Array)
笔记·学习·godot