Sprites are small

November 25th, 2008 | Tags:

In version 2.0, sprites memory consumption will be shrinked considerably and I really mean shrinked. If you don’t use any fancy features for the sprite, it will take around 80 to 100 bytes instead of approximately 15076 bytes. Fancy sprite features will be split down into categories to lessen memory consumption.

  • Base sprite properties
  • Animation properties (ex: frames, animspeed, ….)
  • Rendering properties (ex: alpha, tint, clipping, color, …)
  • Physic properties (ex: mass, elasticity, friction, …)
  • Collision properties (ex: collideleft, collidetop, collideright, collidebottom, id, collide, grid, …)
  • Ai properties (ex: aispeed, procedure, …)
  • Advanced properties (ex: offsets, auto offsets, tiling, alternate frames, isometric, cost, lfetime, user data, …)

You won’t have to change anything in your code, it will all be handle internally without much speed hit.

  1. Leginus
    November 25th, 2008 at 12:38
    Reply | Quote | #1

    This is definitely a great addition……or subtraction :-) SO will this work on the DS as well (can’t blame a man for trying!) ;-)

  2. zehlein
    November 25th, 2008 at 16:22
    Reply | Quote | #2

    @ Leginius: *LOL*
    @ Kornalius: this is a good thing to hear, using lots of sprites could get one into trouble easily with ver 1.xx

You must be logged in to post a comment.
TOP