Solved

QBasic question.

Posted on 1998-05-19
4
419 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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

Suggested Solutions

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

710 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