프로퍼티 | 타입 | 설명 | |
---|---|---|---|
Color | Color |
메소드 | 설명 | |
---|---|---|
Draw ( |
Draws a gem in the appropriate color.
|
|
Gem ( |
Constructs a new gem.
|
|
LoadContent ( ) : void |
Loads the gem texture and collected sound.
|
|
OnCollected ( |
Called when this gem has been collected by a player and removed from the level.
|
|
Update ( |
Bounces up and down in the air to entice players to collect them.
|
public Draw ( |
||
gameTime | ||
batch | BitmapBatch | |
리턴 | void |
public Gem ( |
||
level | ||
position | Vector2 | |
리턴 | System |
public OnCollected ( |
||
collectedBy | /// The player who collected this gem. Although currently not used, this parameter would be /// useful for creating special powerup gems. For example, a gem could make the player invincible. /// | |
리턴 | void |
public Update ( |
||
gameTime | ||
리턴 | void |