Image Map Image Map
Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15

Thread: Choice equivalent in qbasic

  1. #11
    Join Date
    Jan 2007
    Location
    Pacific Northwest, USA
    Posts
    28,503
    Blog Entries
    20

    Default

    I'm not familiar with the game genre. So it's okay if a player hits a key twice?

  2. #12

    Default

    If a player hits a key twice then they move two spaces.

  3. #13
    Join Date
    Jan 2007
    Location
    Pacific Northwest, USA
    Posts
    28,503
    Blog Entries
    20

    Default

    I'm trying to follow this--so only one player per keyboard? That is, the timing of the key input doesn't matter?

  4. #14

    Default

    Correct. They are typically single player, and the game only updates one step after you move.

    Personally I would use INKEY$ as well, because it's more flexible and it works with the arrow keys. But the original question posed was the QB equivalent of CHOICE, which is INPUT$(1). For a roguelike I think either will work.

  5. #15

    Default

    I suppose it would be considered a "rogue-lite" if you really want to get down to the semantics.

Bookmarks

Posting Permissions

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