Solved

QBasic question.

Posted on 1998-05-19
4
413 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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 I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

756 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