About 'GameState.gd'!

In this video (objectives)…

1 The Single Responsibility Principle 2 Create a script to handle the game's rules 3 Call a function from a child node

After watching (learning outcomes)…

Learn the Single Responsibility Principle and how to organize your game around it.

(Unique Video Reference: 13_HD_GDT)

We would love to know…

  • What you found good about this lecture?
  • What we could do better?

Remember that you can reply to this topic, or create a new topic. The easiest way to create a new topic is to follow the link in Resources. That way the topic will…

  • Be in the correct forum (for the course).
  • Be in the right sub-forum (for the section)
  • Have the correct lecture tag.

Enjoy your stay in our thriving community!

Interesting Lecture. I felt that I gained an understanding of how the Game State script functions, and feel confident calling functions in the Game Stat script from other scripts, like Player.gd. However, I am still a bit confused on the Single Responsibility Principle, and I don’t quite understand which functions need to be called in Game State. For example, If an enemy is programmed to die after an attack collides with the enemy, does that entirely belong in the enemy script, or does the function get called in the Game State script? Id love to hear feedback from anyone!

Privacy & Terms