Reprisal game dev diary

  • Random
  • Archive
  • RSS
banner
View Separately

Daily update, before you get excited about the sprites in the screen grab above I’m using the old Mega-lo-mania sprites at the moment to speed along the dev. So full credit must be given to the Sens guys :D

WARNING - SOME GEEKY STUFF …

If you have ever done any Bitmap.copyPixels in AS2, you may have noticed that if your doing loads of it sometimes weird overlapping happens with alpha channels. It’s almost like flash is corrupting the alpha channel.

After some googling and messing around I’ve found the solution! Something that I’ve never realised is that in the command you can target another bitmap object that contains an Alpha mask.

bitmap.copyPixels(spriteSheet, new Rectangle(0, 0, 16, 16), new Point(targetX, targetY), spriteSheetAlpha, new Point(0, 0), true);

That last ‘true’ option is what does the Alpha blending. Yes big air punch…

So the new blitter drawing function can push over 10,000 objects around on the screen, animated, which is proper handy.

    • #pixels
    • #blitting
    • #as2
    • #dev
    • #bitmaps
  • Tuesday January 11, 2011
  • 1
  • Comments
  • Permalink
  • Share
    Tweet
Pop-upView Separately

Managed to find some of the original mega-lo-mania sprites [via] for reference. There’s not as many as I thought, just really clever coding in the original.

    • #sprites
    • #bitmaps
  • Monday January 10, 2011
  • 1
  • Comments
  • Permalink
  • Share
    Tweet

About

This is a game development diary of a RTS game based on Bullfrog's classic Populous.

hi there!
We like pixels and you can like us :D

Join us on facebook!
play reprisa

hi there! hi there!xxx!xxx!xxx!
Being developed by ELECTROLYTE.CO.UK

Pages

  • About
  • How to play
  • Changes
  • Battle Keep
  • Last 17

Twitter

loading tweets…

  • RSS
  • Random
  • Archive
  • Mobile

Effector Theme by Carlo Franco.

Powered by Tumblr