Results 1 to 7 of 7

Thread:

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User Gaming_Cool's Avatar
    Join Date: May:2014
    Location: Plovdiv,Bulgaria
    Posts: 246

    Question

    , . :
    - , , ? if ? if key pressed=shift
    (
    .
    )

    . ?using ?

    . music.PlaySync(); , . .
    ? , C# .

  2. #2
    Registered User tedych's Avatar
    Join Date: Nov:2003
    Location:
    Posts: 17,654
    windows forms handler event , handler-a (, ).

    , ( LoadAsync ). PlaySync "", , call.
    "" , , .

  3. #3
    Registered User Gaming_Cool's Avatar
    Join Date: May:2014
    Location: Plovdiv,Bulgaria
    Posts: 246
    , console application . .

  4. #4
    Registered User atscata's Avatar
    Join Date: Jul:2006
    Location: Plovdiv
    Posts: 3,158
    It's better to kick ass than kiss it

  5. #5
    Registered User toc's Avatar
    Join Date: Mar:2006
    Location:
    Posts: 448
    e :
    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;
                            }
                    }
    thread - .. . thread-, thread, /
    Last edited by toc; 15th February 2016 at 10:45.

  6. #6
    Registered User Gaming_Cool's Avatar
    Join Date: May:2014
    Location: Plovdiv,Bulgaria
    Posts: 246
    ! toc ,
    if (Console.KeyAvailable)
    {
    ConsoleKeyInfo pressedKey = Console.ReadKey();
    Console.ReadKey();
    if (pressedKey.Key == ConsoleKey.DownArrow)

    ConsoleKeyInfo.pressedKey = Console.ReadKey(); readkey downarrow if . .

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Copyright © 1999-2011 . .
iskamPC.com | mobility.BG | Bloody's Techblog | | 3D Vision Blog |