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); } }
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); } }