Solved

QBasic question.

Posted on 1998-05-19
4
407 Views
Last Modified: 2009-07-29
How do I make sprites that will not erase the background and still animate? The XOR only works with black backgrounds. Also, I know there is a way to use MOD files in QBasic, anyone know how?
0
Comment
Question by:TeleKawaru
  • 2
4 Comments
 
LVL 1

Expert Comment

by:dnavarro
ID: 1454714
There's not a whole lot you can do with the QBASIC interpreter.  Because it is an interpreter it's fairly limited.  You might want to consider downloading the FirstBasic shareware compiler from www.powerbasic.com or buying QuickBASIC or PowerBASIC which have libraries available for game programming.

PowerBASIC sells a product called PB/Xtra which has a sprite library and a sound library that supports MOD and midi files.
0
 

Author Comment

by:TeleKawaru
ID: 1454715
I know there is a way to do it. Someone made a game exactly like Dragon Warrior for the NES in QBasic. I have pieces of the source code, but not enough to learn from. I also have a game written in QBasic that uses MOD files, but not the source code.
0
 
LVL 9

Accepted Solution

by:
cymbolic earned 50 total points
ID: 1454716
Don't let 'em kid you...you can do anything you want with QBasic 4.5 compiler and you can use any direct screen writes, DOS or BIOS calls, or link to "c" or Assembler if that's your pleasure.  There are still a number of sites serving QBasic, many with game source code.  All you need to do is get on Yahoo and do a search for QBasic.  A number of links will turn up, and those links will have references to other sites.  There is also a "Basic Ring" of linked sites with lots of source code available.

Fast graphic games in QBasic were running long before the masses began waiting an eternity for Windows 95 to load and shut down, you'll find it out there.

If you are serious in writing much in QBasic, get your hands on the PDQ library from formerly Crescent software.  I think it's now marketed on the net as Full Moon Software by the author, Ethan Weiner.  Use that, and the DOS/BIOS interrupt and the tons of source code that comes with it and you can make faster, smaller, more reliable and more maintainable code than any old 'c' programmer could ever compete with.

0
 
LVL 1

Expert Comment

by:dnavarro
ID: 1454717
DNavarro, acutally Microsoft itself calls it QB4.5 so when ANYONE who knows anything about programming says QBasic anything it is understood that they are talking about QuickBasic since there is no QBasic by name.

Cymbolic, Thanks. I love QBasic. I personally think it's the best language ever written. I hope I can find the source code I am looking for. If you have any QBasic proggies you've written, I'd love to see them. TeleKawaru@centuryinter.net
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

827 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question