Hi everyone,
I've been programming in QBasic for probably 20 years (as a hobby only), but this is the first time I've ever ventured into using graphics and sound libraries.
The two that seemed to work well for me are DirectQB and DS4QB (direct sound for QBasic).
The only problem I'm running...
Does anyone know how to PUT graphics outside of the VIEW SCREEN without getting an error? I'm trying to perfect my map for my RPG and it uses tiles. I want it to scroll smoothly (moving each tile 1 pixel instead of 1 tile every time the player moves), however, I can't figure out how to get the...
Hey everyone. The program I'm writing uses string space like crazy. It's a tile based RPG and the fastest way that I've found to draw the tiles is to put all the tiles of one area into a string array and then DRAW them. Each string for each tile can be 2000 - 5000 bytes in length and when...
Hey everyone, I'm running into the OUT OF STACK SPACE error. I know what the error means and what the stack is, but I'm curious what I can do to clean up some space without using CLEAR (which is not an option by any means). I have a LOT of COMMON SHARED variables that pass between several...
Hey everyone, I'm working on some 3D graphics for a computer game I'm working on. Previously, I was using SCREEN 7 because of the pages feature, but after some optimization, I got my code to run fast enough to look good in screen 13 using the "WAIT &H3DA, 8" command for vertical retrace. My...
Does anyone have some simple code that can allow me to use a joystick to control my game in QBasic? I know that's rather vague, but the whole idea isn't very complex so it doesn't really require a lot of explaining. Thanks for any help.
For the last year or so, I've been working on an RPG of mine. I've put a lot of work into it, and the only thing I feel that keeps it from having that final "professional" touch is the fact that it's dead silent. I would love to use wave files for sound effects and for background...
Someone was telling me that it is possible to put two or more pictures into one BSAVE file using the offset feature.
However, with some playing around with this, I couldn't get it to work. Does anyone know how to do it?
This is what I was trying
SCREEN 13
DIM pic%(500)
DIM pic2%(500)
'(code...
I'm trying to figure out how to make it so that when I use the PUT statement, I can make it not show certain colors, hence having a background image show through instead of just a black box around the image.
For example, in the following code, it draws a random background, and then places an X...
Hi, I'm trying to find a bitmap loader that doesn't use the palette function.
My reason is this:
I'm making an RPG, and am using Bitmaps (made with a regular paint program) for all the monster pictures, and am doing them in 256 colors so that they can be used with SCREEN 13.
But what I want to...
I'm writing a program that would highly benefit from the use of numerous keyboard inputs at one time. Such as holding down "y" and "x" at the same time, or maybe the up arrow and the right arrow at the same time (to get a diagonal without using the numeric keypad.) It would...
Can someone tell me how I might possibly use 640x480 resolution in Screen 13? Or maybe how to use multiple pages (like Screen 7). Or how to possibly access 256 colors in screen 12?
Not exactly like that, but mainly on how to program in the use of different resolutions, colors, and amount of...
Mostly interested in the bitmap loader.
What I'm really looking for (besides the code) is how the code works.
I have two bitmap loaders, one is about 5 lines long and the other is about 200 lines long. The 200 line code works pretty well and the 5 line code doesn't work at all (even though...
Can someone tell me how to access a certain piece of a DATA string?
For example, if I use the lines
RESTORE TEST
FOR Y = 1 TO 10
FOR X = 1 TO 10
READ INFO
PRINT INFO
NEXT
NEXT
TEST:
DATA 1,2,3,4,5
DATA 2,2,3,1,5
DATA 1,5,8,4,1
DATA 6,3,3,0,5
DATA 1,2,3,4,2
This code would access the...
I have a game where you use the arrow keys to control your figure arround the screen. Every time you press the arrow key, it calculates a lot of things (besides your characters movement) so meanwhile it loads up a lot of direction presses in the buffer and eventually locks up for a few seconds...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.