Skip to content

Good way to understand all the code? #218

Answered by mbrlabs
kragil asked this question in Q&A
Discussion options

You must be logged in to vote

Hey, sorry for the late reply. I would start with the latest version i.e. master branch. It's not that much code.

The project loosely follows a the MVC pattern. You have your UI in the UI folder, your models in Types.gd and in the BrushStroke folder and logic in BrushStroke and InfiniteCanvas. Main.gd ties everything together using Godot's signal system.

When i start out with a project of a certain size i always do it bottom up like this:

  1. Use the program
  2. Pick a feature; i.e. the settings dialog
  3. Find the UI in the code (that would be UI/SettingsDialog)
  4. Change some things and see how it affects the program
  5. How does the UI relate to all the other components?
  6. Then fix bugs you encounter or s…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@kragil
Comment options

Answer selected by kragil
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants