2023-01-12 20:49:14 +01:00
|
|
|
|
2022-03-18 17:46:08 +01:00
|
|
|
|
|
|
|
Introduction
|
|
|
|
============
|
|
|
|
|
|
|
|
This series is a collection of best practices to help you work efficiently with
|
2024-03-16 20:56:52 +01:00
|
|
|
Pandemonium.
|
2022-03-18 17:46:08 +01:00
|
|
|
|
2024-03-16 20:56:52 +01:00
|
|
|
Pandemonium allows for a great amount of flexibility in how you structure a project's
|
2022-03-18 17:46:08 +01:00
|
|
|
codebase and break it down into scenes. Each approach has its pros and
|
|
|
|
cons, and they can be hard to weigh until you've worked with the engine for long enough.
|
|
|
|
|
|
|
|
There are always many ways to structure your code and solve specific programming
|
|
|
|
problems. It would be impossible to cover them all here.
|
|
|
|
|
|
|
|
That is why each article starts from a real-world problem. We will break down
|
|
|
|
each problem in fundamental questions, suggest solutions, analyze the pros and
|
|
|
|
cons of each option, and highlight the best course of action for the problem at hand.
|
|
|
|
|
2024-03-16 20:56:52 +01:00
|
|
|
You should start by reading `doc_what_are_pandemonium_classes`. It explains how
|
|
|
|
Pandemonium's nodes and scenes relate to classes and objects in other
|
2022-03-18 17:46:08 +01:00
|
|
|
Object-Oriented programming languages. It will help you make sense of the rest of the series.
|
|
|
|
|
2023-01-12 20:55:57 +01:00
|
|
|
Note:
|
|
|
|
|
2022-03-18 17:46:08 +01:00
|
|
|
|
2024-03-16 20:56:52 +01:00
|
|
|
The best practices in Pandemonium rely on Object-Oriented design principles. We
|
2022-03-18 17:46:08 +01:00
|
|
|
use tools like the `single responsibility
|
2023-01-12 20:57:31 +01:00
|
|
|
( https://en.wikipedia.org/wiki/Single_responsibility_principle )` principle and
|
|
|
|
`encapsulation ( https://en.wikipedia.org/wiki/Encapsulation_(computer_programming) )`.
|