knockout animation
dude2 gets knocked tf outunknown
csharp
2 years ago
2.0 kB
5
Indexable
using System; using System.Timers; namespace TimerExample { class Program { static Timer timer = new Timer(500); static int i = 0; static void Main(string[] args) { timer.Elapsed+=timer_Elapsed; timer.Start(); Console.Read(); Console.WriteLine("End."); } private static void timer_Elapsed(object sender, ElapsedEventArgs e) { i++; Console.Clear(); if (i == 7) { AnimationFrame3(); } else if (i == 8) { AnimationFrame4(); } else if (i == 9) { AnimationFrame5(); timer.Close(); timer.Dispose(); } else if (i % 2 == 0) { AnimationFrame1(); } else { AnimationFrame2(); } GC.Collect(); } private static void AnimationFrame1() { // - - - - |10 - - - |20 - - - |30 - - - |40 Console.WriteLine(@" o o"); Console.WriteLine(@" <|v v|>"); Console.WriteLine(@" /\ /\"); } private static void AnimationFrame2() { // - - - - |10 - - - |20 - - - |30 - - - |40 Console.WriteLine(@" o o"); Console.WriteLine(@" <|v v|>"); Console.WriteLine(@" /\ /\"); } private static void AnimationFrame3() { // - - - - |10 - - - |20 - - - |30 - - - |40 Console.WriteLine(@" o__, \o"); Console.WriteLine(@" </ /)"); Console.WriteLine(@" /> </"); } private static void AnimationFrame4() { // - - - - |10 - - - |20 - - - |30 - - - |40 Console.WriteLine(@" o \o"); Console.WriteLine(@" </v -/"); Console.WriteLine(@" /> ¯¯/"); } private static void AnimationFrame5() { // - - - - |10 - - - |20 - - - |30 - - - |40 Console.WriteLine(@" o"); Console.WriteLine(@" <|\"); Console.WriteLine(@" /\ \__|o"); Console.WriteLine(@" / \"); } } }
Editor is loading...