Writing a QBasic game from scratch -- Snake game example

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
12,323
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Jan 21, 2010

In this video, a game is created in Microsoft's QBasic, from scratch. You see me type every line.
The background music has been created by me with the exception of the last song, which is created by Skaven / Future Crew. The S3M player (both of them) have been also written by me, though I created them long before making this video.

Microsoft QBasic was shipped without extra charge with MS-DOS versions 4 through 5.
It was a popular programming platform for beginner programmers back then. Even today, it remains one of the easiest platforms to start programming something visual. In this video, I go a step further and demonstrate that it is even possible to play modular AdLib music (S3M files) with QBasic.

The source code (and the script I used for reference when creating this video) can be found at:
http://bisqwit.iki.fi/jutut/kuvat/programming_examples/qbasicsnakegame.pdf

The QBasic S3M player can be found at:
http://bisqwit.iki.fi/source/fmengineqb.html

Category:

Howto & Style

Tags:

License:

Standard YouTube License

  • likes, 3 dislikes

Link to this comment:

Share to:

Uploader Comments (Bisqwit)

  • i know somethings but it isn`t enought :(

  • @blodseker2 Programming languages are highly formal. A single letter spelled wrong may and often does change the meaning of a program: it is often the difference between a properly functioning program and a program that does not work.

    I suggest that you first improve your spelling and grammar. Written ability in natural languages (such as English or Serbian) is correlative with programming potential, and it _can_ be improved.

  • Is this the best for ASCII games? I wanted to learn programing but only to do stuff in ASCII, im a huge fan of games like Dwarf Fortress and Rogue =)

  • @ProjectZeus Definitely one of the easiest approaches, if you don't mind the fact that it's an obsolete platform. For a more modern platform (for ASCII games), I recommend trying Lua or Python.

    However, both have the issue that they both run on a wider variety of terminals (i.e. input & output devices) than just a DOS prompt. Line input and text output are trivial, but achieving _colors_ already requires making assumptions on what the program is being run on. Which may or may not be a factor.

see all

All Comments (38)

Sign In or Sign Up now to post a comment!
  • @blodseker2 те ут Българиа ле се?

  • znam da pisem u programu,al neznam engleski bas najbolje

    xDDDDDDDDDD

  • ok.aj me sad nauci :)

  • u r the best!i wont to be like u.ehhh. :(

    plz teach me

  • @InspectorCarnbarn Oh, and also, do note that you need to set up at least one channel as an AdLib channel (such as A1). Otherwise, all of them are PCM channels (such as L1 or R1), and no adlib sounds can be played.

  • @ProjectZeus

    Pascal is a good language for that as well.

    But Basic will be easier to learn.

  • LOL this is something like TRON! xD

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more