petrSchreiber / BetweenTheBubbles-tb

Bugs adventure in an infinite bubbleverse, thinBasic game
1 stars 0 forks source link

Fix feat intro #14

Open DirectuX opened 4 years ago

DirectuX commented 4 years ago

Hi Petr, I created this branch so you can have a look at this strange (to me) display behaviour.

Also title.tbasicu still is shown as binary and I don't know why (there's no Hex 00 at the end of file)

Also2 I added a transparent picture for the tittle, any tip how to make it display correctly according to the background ?

petrSchreiber commented 4 years ago

Hi Sebastian,

I am afraid the btb1024.png does not have any transparency in the image file. You need to update the image the way you did it with bubbles.

Minor tip - if you want smooth alpha, you may consider replacing AlphaFunc with blending:

      tbgl_pushMatrix
        tbgl_pushTexture(2) ' Of course appropriate texture is needed
          tbgl_pushStateProtect(%TBGL_DEPTHMASK | %TBGL_DEPTH)
          tbgl_pushState(%TBGL_BLEND)
          tbgl_pushBlendFunc(%GL_SRC_ALPHA, %GL_ONE_MINUS_SRC_ALPHA)

          ' Render bubble or screen here

          tbgl_popBlendFunc
          tbgl_popState
          tbgl_popStateProtect
        tbgl_popTexture
      tbgl_popMatrix

P

DirectuX commented 4 years ago

also, did you understand the title.tbasicu issue I mentioned ?