-
Notifications
You must be signed in to change notification settings - Fork 270
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remake key official Godot demos #56
Comments
@razcore-art Jonnhy will take care of this job, but could you tell me what you think about the questions above? In short, do you think we should push our art style in the official demos, and e.g. suggest our code style? It's mostly compatible with the official docs' styleguide anyway, it just goes a little further. For Johnny: you'll work on this repository directly. While we got informal approval from Juan and Rémi, I still want to double-check if we can go ahead and directly PR/push to the official repo (I'm a reviewer and have commit rights on the demos I think). |
So I have a few comments. One thing we didn't really cover here is the use of comments. In our code guideline we push for minimal comments because they can get out of sync quite fast, but for these demos I think we should use quite a lot of them since they're a tool for education as noted. All in all I agree with everything @NathanLovato is saying, no surprise here. Can we use our GDQuest art style? I would say definitely yes as long as Juan, Rémi & whoever else is involved accepts. I think it will create a very nice consistent look. There might be exceptions, depending on the scope of the game. If we look at the Unity learning resources (which are pretty good in my opinion), they don't have a theme for all games. That said, they do have very different projects and some of them "full-blown" games. So with that I'd say:
Can we use our code guidelines? I'd say definitely yes, that's the purpose of the guidelines and we discussed integrating them in the Godot docs anyway, that's why we made them compatible with the docs. I would also say type hints all the way for all the benefits it gives, including easier code readability. |
How about having docstrings for functions, and inline comments where they're most relevant to the demo? E.g. have comments on |
Yeah sure, I wasn't talking about a specific type of comment (docstring vs. inline comments). Just generally. I don't have a feel for what they should be yet. After we see it in practice we could develop the topic a bit. I don't think it would take too long to adjust if needed. |
By the way, I just remembered. @johnnygossdev you could start off with the game I refactored to make it easier and take as an example: https://gitlab.com/razcore/godotcon2019. There's 2 branches in that repo In that example I used the |
Thanks for this @razcore-art! I've started making notes on the 2D Platformer but will use the project you linked as a reference. I think docstrings are great. For users not so familiar with GDScript or coding in general, I think more comments are better than less personally. |
The code and quality level of the official demos varies a lot. They were made quickly overall to just show that some features exist and how they work at a basic level.
The goals of the demos are to:
Users can get a feel for Godot's power with these demos. If an experienced developer may see the value of a feature showcased in a basic way, a casual user or hobbyist may wrongly feel that Godot sucks because the demo is bare-bones.
The demos' design
Each demo should clearly focus on one feature. The scope of the feature can be one node, one game mechanic, or one system. Examples:
KinematicBody2D
, make a simple game with a side-view platform character, and another scene with top-down movement, and obstacles, including moving onesThe project
Update key official Godot demos to:
Create related videos to communicate around changes made to the demos:
I'd prefer the videos to give overviews and ease people into using the demos over turning them into step-by-step tutorials, as the demos themselves are meant to be the learning resources. This will keep the videos easy to produce as well, ideally with minimal editing or post-production work.
Tasks
Start with 2 demos you, or the community feels are most important.
Write down a short concept/outline for the changes you plan.
Questions
Can we use our GDQuest art style?
We'll use that as a base to create some visual guidelines. Our art style's goals are:
Our art is inspired by webdesign and minimalistic mobile games.
Here is an example:
Can we use our code guidelines?
We have set up code guidelines that build upon the official guidelines and make the code collaboration-friendly and robust at the same time. I'd like us to use our guidelines because:
One big question: should we use type hints or dynamic code? Dynamic code looks more accessible at first glance, while typed code catches more errors, provides more warnings, better autocompletion, and should greatly improve performances with upcoming gdscript compiler improvements. But as we're making a contribution to the official demos, we should adapt to the official guidelines (NB: there are none for now)
The text was updated successfully, but these errors were encountered: