在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);
    }
}
相关推荐
Python私教2 天前
我用 AI 做出了第一个 Godot 贪吃蛇
人工智能·游戏引擎·godot
郝学胜-神的一滴5 天前
中级OpenGL教程 020:巧用数组与循环实现多点点光源渲染,告别冗余代码重构方案
c++·unity·游戏引擎·godot·图形渲染·unreal
KillJUMP10 天前
SDF函数
godot·着色器
松树戈12 天前
【Godot4精进之路】03~Godot编辑器常用界面介绍
编辑器·游戏引擎·godot
郝学胜-神的一滴16 天前
[简化版 GAMES 101] 计算机图形学 16:纹理走样、Mipmap、三线性插值、各向异性过滤原理全解
unity·游戏引擎·godot·图形渲染·three.js·opengl·unreal
风子111 个月前
pong_Day 3:AI 对手球拍 + 计分系统 + 胜负判定
godot
风子111 个月前
pong_day02_让球飞来+碰撞反弹
godot
kyle~1 个月前
Godot开源游戏引擎
开源·游戏引擎·godot
郝学胜-神的一滴1 个月前
[简化版 GAMES 101] 计算机图形学 13:从光栅化到着色——赋予三维像素光影灵魂
c++·计算机视觉·unity·godot·图形渲染·opengl·unreal
Zwarwolf1 个月前
Godot零散知识点项目汇总
游戏引擎·godot