Game Development Reference
In-Depth Information
8 - Flow Charts
that we hadn't considered before. We may end up having to change or delete a lot of code
that we had already written, which would be a waste of effort. To avoid this, it's always
best to think carefully, and plan how the program will work before we start writing it.
The following flow chart is provided as an example of what flow charts look like and
how to make them. For now, since you're just using the source code from this topic, you
don't need to draw a flow chart before writing code. The program is already written, so you
don't have to plan anything out. But when you make your own games, a flow chart can be
very handy.
Creating the Flow Chart
Keep in mind, your flow charts don't always have to look exactly like this one. As long
as you understand the flow chart you made, it will be helpful when you start coding. We'll
begin with a flow chart that only has a "Start" and an "End" box, as shown in Figure 8-2:
Figure 8-2: Begin your flow chart with a Start and End box.
Search WWH ::




Custom Search