Advertisement
LeRoY_Go

Untitled

Jun 28th, 2020
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. using System;
  2. using System.Security.Cryptography.X509Certificates;
  3.  
  4. namespace ConsoleApp4
  5. {
  6. class Program
  7. {
  8. static void Main(string[] args)
  9. {
  10. Player player1 = new Player(25,3);
  11. Map map = new Map();
  12. map.Drawing(player1.X, player1.Y);
  13.  
  14.  
  15. Console.ReadKey();
  16. }
  17. }
  18.  
  19. class Player
  20. {
  21. public int X { get; private set; }
  22. public int Y { get; private set; }
  23.  
  24. public Player (int x, int y)
  25. {
  26. X = x;
  27. Y = y;
  28. }
  29. }
  30. class Map
  31. {
  32. public void Drawing(int X, int Y)
  33. {
  34. Console.SetCursorPosition(X, Y);
  35. Console.Write("@");
  36. }
  37. }
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement