Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace BreakOut
- {
- class MyProgram
- {
- public void Run()
- {
- #region Movement
- Console.SetCursorPosition(0, 15);
- for (int i = 1; i < 100; i++)
- {
- Console.Write("@");
- System.Threading.Thread.Sleep(10);
- Console.SetCursorPosition(i - 1, 15);
- Console.Write(" ");
- }
- Console.SetCursorPosition(100, 15);
- for (int i = 100; i > 0; i--)
- {
- Console.Write("@");
- System.Threading.Thread.Sleep(10);
- Console.Write(" ");
- Console.SetCursorPosition(i+1, 15);
- }
- #endregion
- int directionX = 1;
- int directionY = 1;
- int posX = 0;
- int posY = 15;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement