- XNA 4.0 Game Development by Example Beginner's Guide(Visual Basic Edition)
- Kurt Jaegers
- 152字
- 2021-08-20 15:50:43
Time for action – generating fading pieces
What just happened?
Adding fading pieces is simply a matter of getting the type of piece currently occupying the square that we wish to remove (before it is replaced with an empty square) and adding it to the FadingPieces
dictionary. We need to use the CInt
typecasts because the thisPipe
variable is a Vector2
value, which stores its X
and Y
components as Singles
.