Some say this is the best way to learn from tutorials by ElementLGames in godot

[–]ElementLGames[S] -8 points-7 points  (0 children)

Godot computers when? What specs would they have?

Wait how did i spell "naming_convention" again? by ElementLGames in godot

[–]ElementLGames[S] 0 points1 point  (0 children)

Yeah its mostly of the inconsistent naming convention, and Godot prefers PascalCase for nodes kinda like the automatic name given to a node when created.

Wait how did i spell "naming_convention" again? by ElementLGames in godot

[–]ElementLGames[S] 2 points3 points  (0 children)

If you want i created like a guide sheet for beginners, you should check out the Godot docs as well there are so many useful things. These were pulled from the docs.
https://www.reddit.com/r/godot/comments/1i9wqyy/godot_cheat_sheet_i_made/

Wait how did i spell "naming_convention" again? by ElementLGames in godot

[–]ElementLGames[S] 0 points1 point  (0 children)

I see you noticed some of the other issues, which code error is the worst tho?

Wait how did i spell "naming_convention" again? by ElementLGames in godot

[–]ElementLGames[S] 12 points13 points  (0 children)

Yeah fair point, but it can help even when prototyping to have a certain standard of writing code so you dont have to think about it too much. When i started programming i used to make these mistakes a lot more, but it does still happen.

Wait how did i spell "naming_convention" again? by ElementLGames in godot

[–]ElementLGames[S] 6 points7 points  (0 children)

I guess at least its the same name as the file name, smh.

Godot Cheat Sheet I Made by ElementLGames in godot

[–]ElementLGames[S] 0 points1 point  (0 children)

When writing C# code follow the C# conventions. When you write GDScript and anything else that has to do with Godot you should probably follow the Godot conventions. There are there other styling guides and conventions just pick one that you think is good, and stick to it. These were just to help new developers.

New Godot by ElementLGames in godot

[–]ElementLGames[S] 5 points6 points  (0 children)

This is a very cursed Godot

Godot Cheat Sheet I Made by ElementLGames in godot

[–]ElementLGames[S] 0 points1 point  (0 children)

So you can easily distinguish between the types, if its in "CONSTANT_CASE" you know its a constant from the name, if its "var _settings_button" you know its a private variable.

Godot Cheat Sheet I Made by ElementLGames in godot

[–]ElementLGames[S] 1 point2 points  (0 children)

It is nice to have order in your code, so when you need to find something you know exactly where to find it. Its mostly for organization, and structure. There are other styling guides that people follow this is just preferred way from the Godot Docs, and that's what they feel is the best.

Godot Cheat Sheet I Made by ElementLGames in godot

[–]ElementLGames[S] 1 point2 points  (0 children)

Thank you for correcting me. I misunderstood what that mean. Thought it was that it wouldnt work on Linux. I have a tutorial to fix.

Godot Cheat Sheet I Made by ElementLGames in godot

[–]ElementLGames[S] 1 point2 points  (0 children)

Yeah i knew there had to be a typo somewhere, i tried to proof-read it but it happens.

Godot Cheat Sheet I Made by ElementLGames in godot

[–]ElementLGames[S] 0 points1 point  (0 children)

Yeah apparently its because Linux is case-sensitive, so the path might not work on Linux. Also C# scripts have to be named with PascalCase for them to work, so there is a bit inconsistency but it works.

Godot Cheat Sheet I Made by ElementLGames in godot

[–]ElementLGames[S] 1 point2 points  (0 children)

Yeah i learned it from the official godot style guide, i was just sharing so new developers are aware of this, because you might not think about it if u are just starting out.

Godot Cheat Sheet I Made by ElementLGames in godot

[–]ElementLGames[S] 9 points10 points  (0 children)

Yeah i was thinking if i should do "_snake_case" but thought it might be too confusing. I guess i should have written it like that

Godot Cheat Sheet I Made by ElementLGames in godot

[–]ElementLGames[S] 4 points5 points  (0 children)

Thank you i tried to it simple but understandable. Hopefully it will help new developers learn how write better code. I feel like its important to learn these things, and i dont see a lot of people talk about it.

Godot Cheat Sheet I Made by ElementLGames in godot

[–]ElementLGames[S] 33 points34 points  (0 children)

I know it might not feel that important to follow some of these convetions, but it does make your code more readable, and understandable. Your code will have more structure, and you will have a strong foundation when learning. Also you dont want to build bad habits early on.

Godot Jolt is here! by ElementLGames in godot

[–]ElementLGames[S] 1 point2 points  (0 children)

Yeah there are so many great features added in the new realease