Game Development Reference
In-Depth Information
game design clearer. By commenting, you can describe the responsibilities of
the actor or the intent of the rule. Next, it makes your game projects easier to
understand for others. When you work on a team, you will save your colleagues
a tremendous amount of time if you include the right comments. A good
comment provides useful information about your design strategy and any tricky
arrangements in your rules.
To add a comment, use the Note behavior of GameSalad. It can be placed as
any behavior in the Actor Behavior pane or within a rule. Let's practice a little bit.
Open the Racket actor in the Actor Editor. Drag and drop a Note behavior at the
top of the pile of the behaviors. Type the following comment:
The Racket is the paddle to be controlled by the player.
The racket will collide and bounce with collidable objects.
The racket will be constrained on the Y=40 axis.
Your comment should be similar to Figure 1-17.
Figure 1-17. General comment for the racket
Now, drag and drop a Note behavior above the Left Movement rule. Type the
following comment:
When the left key is pressed, the actor will move to the left direction.
When the right key is pressed, the actor will move to the right
direction.
Your comment should be similar to Figure 1-18.
Figure 4-18. Comments on racket movement rules
From this step forward, I will not tell you which comment to write but the project
files will contain some of my comments. Feel free to read them.
 
Search WWH ::




Custom Search