Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Bitmapping Qbasic  (Read 5050 times)

0 Members and 1 Guest are viewing this topic.

alexskywalker

    Topic Starter


    Greenhorn

    Bitmapping Qbasic
    « on: May 16, 2009, 11:30:29 AM »
    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?

    Dias de verano

    • Guest
    Re: Bitmapping Qbasic
    « Reply #1 on: May 16, 2009, 12:40:20 PM »
    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"


    Geek-9pm


      Mastermind
    • Geek After Dark
    • Thanked: 1026
      • Gekk9pm bnlog
    • Certifications: List
    • Computer: Specs
    • Experience: Expert
    • OS: Windows 10
    Re: Bitmapping Qbasic
    « Reply #2 on: May 16, 2009, 12:51:34 PM »
    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.bas

    mickster9



      Rookie

      Re: Bitmapping Qbasic
      « Reply #3 on: May 17, 2009, 02:44:06 PM »
      I found this a useful tutorial for bitmaps:

      http://www.geocities.com/mister_jack_dawson/tutorial5.txt

      alexskywalker

        Topic Starter


        Greenhorn

        Re: Bitmapping Qbasic
        « Reply #4 on: May 17, 2009, 08:04:25 PM »
        Thanks guys but im familiar with both creation and movement.
        What im looking for is how to integrate backgrounds and masks into my program

        Geek-9pm


          Mastermind
        • Geek After Dark
        • Thanked: 1026
          • Gekk9pm bnlog
        • Certifications: List
        • Computer: Specs
        • Experience: Expert
        • OS: Windows 10
        Re: Bitmapping Qbasic
        « Reply #5 on: May 17, 2009, 09:35:36 PM »
        BLOAD

        alexskywalker

          Topic Starter


          Greenhorn

          Re: Bitmapping Qbasic
          « Reply #6 on: May 22, 2009, 06:47:21 AM »
          Explain please.

          Reno



            Hopeful
          • Thanked: 32
            Re: Bitmapping Qbasic
            « Reply #7 on: May 22, 2009, 07:03:50 AM »
            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.bmp

            BC_Programmer


              Mastermind
            • Typing is no substitute for thinking.
            • Thanked: 1140
              • Yes
              • Yes
              • BC-Programming.com
            • Certifications: List
            • Computer: Specs
            • Experience: Beginner
            • OS: Windows 11
            Re: Bitmapping Qbasic
            « Reply #8 on: May 22, 2009, 09:22:13 AM »
            you 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 was trying to dereference Null Pointers before it was cool.

            mickster9



              Rookie

              Re: Bitmapping Qbasic
              « Reply #9 on: May 29, 2009, 04:12:52 PM »

              alexskywalker

                Topic Starter


                Greenhorn

                Re: Bitmapping Qbasic
                « Reply #10 on: June 14, 2009, 11:55:20 AM »
                Thanks. 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