예제 #1
0
 public override void Update()
 {
     position.x = position.x + Input.GetHor() * speed;
     if (position.x > 50)
     {
         position.x = 0;
         ConsoleGraphics.BakeSky(75, 80);
         Console.Beep(783, 200);
     }
     if (position.x < 0)
     {
         position.x = 50;
         ConsoleGraphics.BakeSky(75, 80);
         Console.Beep(783, 200);
     }
 }
예제 #2
0
파일: Program.cs 프로젝트: yargr96/renderer
 public override void Update()
 {
     position.x = position.x + Input.GetHor() * speed;
     if (position.x > 45)
     {
         position.x = 0;
         ConsoleGraphics.BakeSky(75, 80);
         Console.Beep(783, 200);
         Game.LoadScene(Game.cur_sc_id + 1);
     }
     if (position.x < 0)
     {
         position.x = 50;
         ConsoleGraphics.BakeSky(75, 80);
         Console.Beep(783, 200);
     }
 }