Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace FifthProject
- {
- class Program
- {
- static void Main(string[] args)
- {
- Renderer render = new Renderer();
- Player player = new Player();
- render.RenderPlayer(player.PositionX, player.PositionY);
- }
- }
- class Player
- {
- public int PositionX { get; } = 3;
- public int PositionY { get; } = 5;
- }
- class Renderer
- {
- public void RenderPlayer(int x, int y)
- {
- Console.SetCursorPosition(x, y);
- Console.WriteLine("Player");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement