added falling sand - dirt actually

This commit is contained in:
2023-10-16 15:41:33 +02:00
parent 8a6004af24
commit fe40e33d36
6 changed files with 113 additions and 19 deletions

View File

@@ -2,7 +2,7 @@ using FOU.Scripts;
using Godot;
public partial class Main : Node2D {
[Export] public int BrushSize = 10;
[Export] public int BrushSize = 5;
private TextureRect mLevelDrawer;
private Level mLevel;
@@ -13,6 +13,8 @@ public partial class Main : Node2D {
}
public override void _Process(double delta) {
mLevel.Update();
mLevelDrawer.Texture = ImageTexture.CreateFromImage(mLevel.DrawLevel());
}