Author Topic: Bitmap( Clipping  (Read 6583 times)

0 Members and 1 Guest are viewing this topic.

Offline leafy

  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1554
  • Rating: +475/-97
  • Seizon senryakuuuu!
    • View Profile
    • keff.me
Re: Bitmap( Clipping
« Reply #15 on: March 25, 2011, 11:27:35 pm »
There's earthquakes, and the gravity is way too strong, so I don't think so. You could teleport back to the surface though.
In-progress: Graviter (...)

SirCmpwn

  • Guest
Re: Bitmap( Clipping
« Reply #16 on: March 25, 2011, 11:28:26 pm »
Ah, that makes it easier.

Offline leafy

  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1554
  • Rating: +475/-97
  • Seizon senryakuuuu!
    • View Profile
    • keff.me
Re: Bitmap( Clipping
« Reply #17 on: March 25, 2011, 11:33:18 pm »
lol yes it certainly does xD
In-progress: Graviter (...)

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Bitmap( Clipping
« Reply #18 on: March 26, 2011, 01:35:35 am »
I'm thinking using Bitmap would be something that would hinder the speed way too much to be useful o.O If i remember correctly its horribly slow.  Hmmmm, perhaps it could be hardcoded in, using a separate tilemap with full bytes or whatever?

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Bitmap( Clipping
« Reply #19 on: March 26, 2011, 01:52:33 am »
I think Bitmap is more suitable for games that requires very low speed or less smooth movements and never use the sprite commands. THat way you save a few bytes of code. Otherwise it's best to use pt-on/off

SirCmpwn

  • Guest
Re: Bitmap( Clipping
« Reply #20 on: March 26, 2011, 11:30:11 am »
Yeah, I'm thinking that the best way is a separate, full byte tilemap.

Offline Hot_Dog

  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3006
  • Rating: +445/-10
    • View Profile
Re: Bitmap( Clipping
« Reply #21 on: March 26, 2011, 11:41:05 am »
Interesting...from my experience, Bitmap( handled clipping perfectly unless the image was entirely off screen.

Offline Runer112

  • Project Author
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2289
  • Rating: +639/-31
    • View Profile
Re: Bitmap( Clipping
« Reply #22 on: March 26, 2011, 11:44:55 am »
Interesting...from my experience, Bitmap( handled clipping perfectly unless the image was entirely off screen.

Now that I think of my testing, I think this might be right...

Offline Hot_Dog

  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3006
  • Rating: +445/-10
    • View Profile
Re: Bitmap( Clipping
« Reply #23 on: March 26, 2011, 11:49:40 am »
So SirCmpwn, you could probably draw an image unless it's entirely off screen (in other words, your code should have something like "If X > 95 don't draw"), and still use Bitmap( for your buildings.

The offscreen thing is something TI actually warned about in their SDK manual.  Who would have guessed.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Bitmap( Clipping
« Reply #24 on: March 26, 2011, 04:21:06 pm »
Does it also clip at the top of the screen? I remember some sprite routines got issues with that before. xLIB .601a or below clipped to the left, right and bottom, but when the sprite was outside the top of the screen you got a blue screen of death.

Offline leafy

  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1554
  • Rating: +475/-97
  • Seizon senryakuuuu!
    • View Profile
    • keff.me
Re: Bitmap( Clipping
« Reply #25 on: March 26, 2011, 04:23:58 pm »
Yeah but bitmap will still slow down the program significantly, and since you're using greyscale I don't think this is the way to go.
In-progress: Graviter (...)