Пример #1
0
 public void moveDown()
 {
     Direction = EDirection.South;
     Texture   = TexturePool.GetTexture("robot_d");
     KeyPressedDelay(Keys.Down, 0, 1);
 }
Пример #2
0
 public void moveUp()
 {
     Direction = EDirection.North;
     Texture   = TexturePool.GetTexture("robot_u");
     KeyPressedDelay(Keys.Up, 0, -1);
 }
Пример #3
0
 public void moveLeft()
 {
     Direction = EDirection.West;
     Texture   = TexturePool.GetTexture("robot_l");
     KeyPressedDelay(Keys.Left, -1, 0);
 }
Пример #4
0
 public void moveRight()
 {
     Direction = EDirection.East;
     Texture   = TexturePool.GetTexture("robot_r");
     KeyPressedDelay(Keys.Right, 1, 0);
 }
Пример #5
0
 public override void Draw(SpriteBatch spriteBatch)
 {
     spriteBatch.Draw(TexturePool.GetTexture("dialogue"), Position, Color.White);
     spriteBatch.DrawString(TexturePool.GetFont("dialogue_font"), Text, new Vector2(20, 20), Color.Black);
 }