Author Topic: Bitmap( Clipping  (Read 6711 times)

0 Members and 1 Guest are viewing this topic.

SirCmpwn

  • Guest
Bitmap( Clipping
« on: March 25, 2011, 10:33:17 pm »
Hello,
Does the Bitmap( command properly handle clipping?

Offline Runer112

  • Project Author
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2289
  • Rating: +639/-31
    • View Profile
Re: Bitmap( Clipping
« Reply #1 on: March 25, 2011, 10:33:32 pm »
Nope.

Offline leafy

  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1554
  • Rating: +475/-97
  • Seizon senryakuuuu!
    • View Profile
    • keff.me
Re: Bitmap( Clipping
« Reply #2 on: March 25, 2011, 10:33:45 pm »
I don't believe it does.
In-progress: Graviter (...)

SirCmpwn

  • Guest
Re: Bitmap( Clipping
« Reply #3 on: March 25, 2011, 10:33:56 pm »
Do you know for sure?  Because it wouldn't be difficult to handle it accidentally.

Offline leafy

  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1554
  • Rating: +475/-97
  • Seizon senryakuuuu!
    • View Profile
    • keff.me
Re: Bitmap( Clipping
« Reply #4 on: March 25, 2011, 10:37:39 pm »
I know the Pt- commands handle clipping, but others like the Line command don't. Iono, maybe something could be done with Bitmap.
In-progress: Graviter (...)

Offline Runer112

  • Project Author
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2289
  • Rating: +639/-31
    • View Profile
Re: Bitmap( Clipping
« Reply #5 on: March 25, 2011, 10:39:19 pm »
Well I just tried using Bitmap() to draw an image offscreen. Miraculously it didn't cause a RAM clear, but it turned the screen to maximum contrast and changed the z address, so I'd say the clipping is far from perfect.
« Last Edit: March 25, 2011, 10:39:53 pm by Runer112 »

SirCmpwn

  • Guest
Re: Bitmap( Clipping
« Reply #6 on: March 25, 2011, 10:39:52 pm »
D: sad day.
Well, that's that.  Motherload faces yet another issue with speed.

Offline leafy

  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1554
  • Rating: +475/-97
  • Seizon senryakuuuu!
    • View Profile
    • keff.me
Re: Bitmap( Clipping
« Reply #7 on: March 25, 2011, 10:40:58 pm »
What do you need the Bitmap clipping for? I thought your map is all tile-based.
In-progress: Graviter (...)

SirCmpwn

  • Guest
Re: Bitmap( Clipping
« Reply #8 on: March 25, 2011, 10:42:50 pm »
Not the buildings on the surface :/

Offline leafy

  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1554
  • Rating: +475/-97
  • Seizon senryakuuuu!
    • View Profile
    • keff.me
Re: Bitmap( Clipping
« Reply #9 on: March 25, 2011, 10:46:29 pm »
If you converted the buildings into a bunch of tiles linked together, you could probably get it to work.
If a building is like 16 by 16 and the tiles for top left, top right, bottom left, and bottom right are 01, 02, 03, and 04 respectively just arrange them in your map like

0102etc
0304etc
In-progress: Graviter (...)

SirCmpwn

  • Guest
Re: Bitmap( Clipping
« Reply #10 on: March 25, 2011, 10:47:55 pm »
Well, in order to facilitate massive maps, I'm using half-byte tiles, and I need to dedicate most of them to minerals and the like.

Offline leafy

  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1554
  • Rating: +475/-97
  • Seizon senryakuuuu!
    • View Profile
    • keff.me
Re: Bitmap( Clipping
« Reply #11 on: March 25, 2011, 11:10:34 pm »
Ah I see. That's a problem I had with Graviter too.
Maybe if the y is above the dirt, use one tileset, but if it's below, use another? Because you'll also need some special tiles for natas's chamber.
In-progress: Graviter (...)

SirCmpwn

  • Guest
Re: Bitmap( Clipping
« Reply #12 on: March 25, 2011, 11:12:53 pm »
Natas's chamber will be an entirely different map.  I think I'll have the vehicle drop into a cavern, and as it is falling, load the new map.
This isn't my first wrestle with performance, I'm sure I'll get it working.  The separate tileset idea won't work, because there are a ton of different tiles :(

Also, I've never actually beaten Motherload <_< so if someone wants to describe the final battle to me I'd appreciate it.
« Last Edit: March 25, 2011, 11:16:22 pm by SirCmpwn »

Offline leafy

  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1554
  • Rating: +475/-97
  • Seizon senryakuuuu!
    • View Profile
    • keff.me
Re: Bitmap( Clipping
« Reply #13 on: March 25, 2011, 11:24:47 pm »
Er...use full byte at the top but half byte in the middle? Also the final boss with Natas is basically you just keep throwing dynamite at him until he blows up. If I remember correctly, because usually I cheated before then :P
In-progress: Graviter (...)

SirCmpwn

  • Guest
Re: Bitmap( Clipping
« Reply #14 on: March 25, 2011, 11:25:17 pm »
Can you resurface?