Game Development Reference
In-Depth Information
11 - Bagels
'helloXworldXyay' .
The sort() list method will rearrange the items in the list to be in alphabetical order.
The append() list method will add a value to the end of the associated list. If spam
contains the list ['a', 'b', 'c'] , then calling spam.append('d') will change
the list in spam to be ['a', 'b', 'c', 'd'] .
The next chapter is not about programming directly, but will be necessary for the games
we want to create in the later chapters of this topic. We will learn about the math concepts
of Cartesian coordinates and negative numbers. These will be used in the Sonar, Reversi,
and Dodger games, but Cartesian coordinates and negative numbers are used in almost all
games (especially graphical games). If you already know about these concepts, give the
next chapter a brief reading anyway just to freshen up. Let's dive in!
Search WWH ::




Custom Search