コード例 #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);
 }