Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Masks
#1
i need to load a guy i drew in ms paint into qbasic but im wondering how to make a mask for him.
Reply
#2
i havent used masks in forever... but i BELIEVE that you color anything thats not trasparent (not black usually), white
Reply
#3
http://faq.qbasicnews.com/?blast=MaskingAndSprites
SCUMM (the band) on Myspace!
ComputerEmuzone Games Studio
underBASIC, homegrown musicians
[img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i
Reply
#4
had it backwards =p


Code:
def seg = &ha000

for y = 0 to spritey

for x = 0 to spritex

if color <> 0 then poke ((y * 320) + x), color

next:next


masks are all well and good but it would do you good to figure out what this code means =)
Reply
#5
k i will also how would you not use masks?
Reply
#6
Quote:k i will also how would you not use masks?

learn what the term "double buffering" means first
Reply
#7
chaos, he would still require masks.
Reply
#8
erm... double buffering is the term for how the data is stored in the image array

once he learned how that worked, he could figure out how to read the data and "PSET" it manually, (ignoring black) which is what i was getting at
Reply
#9
but i loaded a bmp
guy.BMP
in paint but when i was doing graphics like
Code:
data 1,0,1,5,1,0,1
data 1,0,1,5,1,0,1

my masks were like this
Code:
data 1,255,1,5,1,255,1
data 1,255,1,5,1,255,1
so how do i make a mask im using Z!res BMP loader and i nothing of how it works.
im just wondering cause its quite odd to see pretty nice graphics with a uh bitmaped messed up color wise dude
Reply
#10
My guess is you Make a bmp with black background, and make the same one with a white background, it should work the same.
url=http://www.sloganizer.net/en/][Image: style4,TheDarkJay.png][/url]
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)