mastodontech.de ist einer von vielen unabhängigen Mastodon-Servern, mit dem du dich im Fediverse beteiligen kannst.
Offen für alle (über 16) und bereitgestellt von Markus'Blog

Serverstatistik:

1,4 Tsd.
aktive Profile

#setter

0 Beiträge0 Beteiligte0 Beiträge heute

I love #Godot's #setter and #getter methods! I'm not sure if this type of thing is available in other languages I've used, but I first came across them in Godot and I find them to be so helpful.

In my game the player can choose the colour of their 'character'. So I have a variable for that, and it has a setter method that also changes the character's sprite. Very cool!

docs.godotengine.org/en/stable

Godot Engine documentationGDScript referenceGDScript is a high-level, object-oriented, imperative, and gradually typed programming language built for Godot. It uses an indentation-based syntax similar to languages like Python. Its goal is to...
#GodotEngine#GameDev#Godot4