G2A Many GEOs
SHARE
TWEET

Untitled

a guest Apr 10th, 2020 136 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace ConsoleApp33
  7. {
  8.     class Program
  9.     {
  10.         static void Main(string[] args)
  11.         {
  12.             Player player1 = new Player(5, 10);
  13.             Renderer renderer = new Renderer();
  14.             renderer.DrawPlayer(player1.X, player1.Y);
  15.             Console.ReadKey();
  16.         }
  17.     }
  18.     class Player
  19.     {
  20.         public int X { get; private set; }
  21.         public int Y { get; private set; }
  22.         public Player(int posX, int posY)
  23.         {
  24.             X = posX;
  25.             Y = posY;
  26.         }
  27.     }
  28.     class Renderer
  29.     {
  30.         public void DrawPlayer(int x, int y, char ch = '#')
  31.         {
  32.             Console.SetCursorPosition(x, y);
  33.             Console.Write(ch);
  34.             Console.CursorVisible = false;
  35.         }
  36.     }
  37. }
RAW Paste Data
Ledger Nano X - The secure hardware wallet
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top