Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [StartCode]
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace ConsoleApp22
- {
- internal class Program
- {
- static void Main(string[] args)
- {
- Rendеring rendering = new Rendеring();
- Player player = new Player(4,4);
- rendering.DrawPlayer(player.X,player.Y);
- }
- }
- class Rendеring
- {
- public void DrawPlayer(int x,int y)
- {
- Console.SetCursorPosition(x,y);
- Console.WriteLine("2");
- }
- }
- class Player
- {
- public Player(int x, int y)
- {
- X = x;
- Y = y;
- }
- public int X { get; private set; }
- public int Y { get; private set; }
- }
- }
- [EndCode]
Advertisement
Add Comment
Please, Sign In to add comment