Results 1 to 7 of 7
Hybrid View
-
15th February 2016 09:51 #1
, . :
- , , ? if ? if key pressed=shift
(
.
)
. ?using ?
. music.PlaySync(); , . .
? , C# .
-
15th February 2016 10:05 #2
windows forms handler event , handler-a (, ).
, ( LoadAsync ). PlaySync "", , call.
"" , ,
.
-
15th February 2016 10:13 #3
-
15th February 2016 10:16 #4It's better to kick ass than kiss it
-
15th February 2016 10:34 #5
e :
thread - .. . thread-, thread, /Code:if (Console.KeyAvailable) { ConsoleKeyInfo pressedKey = Console.ReadKey(); if (pressedKey.Key == ConsoleKey.DownArrow) { currentDirection = 0; } if (pressedKey.Key == ConsoleKey.LeftArrow) { currentDirection = 1; } if (pressedKey.Key == ConsoleKey.RightArrow) { currentDirection = 2; } if (pressedKey.Key == ConsoleKey.Q) { gameOn = false; } }
Last edited by toc; 15th February 2016 at 10:45.
-
15th February 2016 11:01 #6
! toc ,
if (Console.KeyAvailable)
{
ConsoleKeyInfo pressedKey = Console.ReadKey();
Console.ReadKey();
if (pressedKey.Key == ConsoleKey.DownArrow)
ConsoleKeyInfo.pressedKey = Console.ReadKey(); readkey downarrow if . .




Reply With Quote
7th May 2023, 16:02 in PC