Advertisement
SnowPhoenix347

5.3

Nov 9th, 2019
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.60 KB | None | 0 0
  1. using System;
  2.  
  3. namespace FifthProject
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             Renderer render = new Renderer();
  10.             Player player = new Player();
  11.  
  12.             render.RenderPlayer(player.PositionX, player.PositionY);
  13.         }
  14.     }
  15.  
  16.     class Player
  17.     {
  18.         public int PositionX { get; } = 3;
  19.         public int PositionY { get; } = 5;
  20.     }
  21.  
  22.     class Renderer
  23.     {
  24.         public void RenderPlayer(int x, int y)
  25.         {
  26.             Console.SetCursorPosition(x, y);
  27.             Console.WriteLine("Player");
  28.         }
  29.     }
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement