mastodon.world is one of the many independent Mastodon servers you can use to participate in the fediverse.
Generic Mastodon server for anyone to use.

Server stats:

8.2K
active users

#godot

112 posts87 participants14 posts today
Continued thread

Found a solution for missing string enums in #godot #gdscript

I have written a EditorInspectorPlugin that overrides the default EditorInspector for exported string properties that can use an Expression as a lookup table to display options for the property. Making it safe from typing errors.

Not exactly what string enums would have been but close enough for my use-case.

Was fun to extend the editor with this type of plugin.

Hmmm...
I've turned the Berry Planter into a Planter/Gatherer.
Forested uses the same code, so I've switched off Gather for them.
Now, do I switch lumberjack over, and not need a dedicated Gatherer?
OR
Put TWO Workers in a Planter/Gather hut (one of each)?
OR
have 3 types: Planter, Gatherer, Combo?
OR
Somehow turn each Task into a Component, and mash them into an extensible State Machine?

Шестидесятилетний заключённый и лабораторная крыса. F# на Godot. Часть 9. Первичный конструктор, _Ready

В прошлой главе мы ненадолго прервали изучение синтаксиса F#, но в этой всё с лихвой нагоним, так как сегодня у нас в программе первичный конструктор, расширения типов (снова) и их архитектурные следствия. Я попытался описать их в одном тексте, но обычно они раскиданы по разным частям документации, что серьёзно мешает целостному восприятию, в результате чего даже весьма башковитые ребята тупят как мальчики с Википедией при обсуждении истории древнего Рима. То есть формально у них есть доступ ко всем знаниям человечества, но фактически они соображают слабее, чем человек, прочитавший трижды устаревшего Моммзена. Начиная с этой главы мы будем постепенно отказываться от того сценария разработки, который предлагает Godot по умолчанию. Итогом отказа будет почти полное исчезновение C# (пока только в рамках проекта) и переход на удобную и идиоматически правильную архитектуру.

habr.com/ru/companies/first/ar

#fsharp #f# #net #godot #godotengine #primary_constructors #первичный_конструктор

ХабрШестидесятилетний заключённый и лабораторная крыса. F# на Godot. Часть 9. Первичный конструктор, _ReadyВ прошлой главе мы ненадолго прервали изучение синтаксиса F#, но в этой всё с лихвой нагоним, так как сегодня у нас в программе первичный конструктор, расширения типов (снова) и их архитектурные...

Godot Question:
I thought it would be a good idea to try to stop my game lagging and stuttering.
I have a low-poly Terrain mesh (500m square), with a few low-poly buildings, and about 100 low-poly trees, all in a NavigationRegion3d.
When a new Object is instanced in to the scene, I get a lag - a fraction of a second, very noticeable.
I have tried researching why this would be, and how to fix it but found very little concrete information.

Any Clues?