1.

Solve : Bitmapping Qbasic?

Answer»

I am TRYING to figure out how to CREATE a character, map, and mask and be able to use them in a game. Can anyone help me?Code: [Select]
restore
for j=1 to whatever
read a$
for q=1 to len(a$)
if mid$(a$,q,1)="x" then
it's a 1
else
it's a 0
ENDIF
next q
next j

data "xxxxxxxxxxxx"
data "x          x"
data "x  x    x  x"
data "x     x    x"
data "x     x    x"
data "x          x"
data "x  x    x  x"
data "x   xxxx   x"
data "x          x"
data "xxxxxxxxxxxx"

Find the surce code tto this game. It was written in QBAISC
http://www.youtube.com/watch?v=UDc3ZEKl-Wc

EDIT:
Source code in TEXT
http://library.thinkquest.org/19436/downld.htm

Go down the page and find Gorilla.basI found this a useful TUTORIAL for bitmaps:

http://www.geocities.com/mister_jack_dawson/tutorial5.txtThanks guys but im familiar with both creation and movement.
What im looking for is how to integrate backgrounds and masks into my programBLOADExplain please.i remember to use 2 bitmaps to create transparancy:
1 bitmap containing the character, and another bitmap is a mask for character bmp which only contain 2-color.

when bitblt-ing to screen, first bitblt the mask bmp, then the character.bmpyou had to use specific Raster operations with the mask and the source bitmaps, too.

I don't believe there was a direct equivalent to bitblt for QBASIC.I think this should explain it well:

http://www.qbasicnews.com/tutorials.php?action=view&id=7Thanks. I'll look into this stuff and see what i can come up with.
If you have any more suggestions please reply or email me at
[email protected]
with a subject of QB Bitmapping



Discussion

No Comment Found