Author Topic: Size of sprite  (Read 5025 times)

0 Members and 1 Guest are viewing this topic.

souvik1997

  • Guest
Size of sprite
« on: June 16, 2010, 07:48:51 pm »
What would be the size of an 8x8 sprite in an axe program?

Offline nemo

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1203
  • Rating: +95/-11
    • View Profile
Re: Size of sprite
« Reply #1 on: June 16, 2010, 07:50:47 pm »
like.. in pixels? 64 ... number of bytes? 8. number of hex pairs? 8. number of hex digits? 16.
[FFFFFFFFFFFFFFFF]
^this is a black square. there are 16 F's.


Offline Quigibo

  • The Executioner
  • CoT Emeritus
  • LV11 Super Veteran (Next: 3000)
  • *
  • Posts: 2031
  • Rating: +1075/-24
  • I wish real life had a "Save" and "Load" button...
    • View Profile
Re: Size of sprite
« Reply #2 on: June 16, 2010, 07:52:33 pm »
1 byte = 8 bits
1 bit = 1 pixel
Need 64 pixels

Therefore: Size = 64/8 = 8 bytes
___Axe_Parser___
Today the calculator, tomorrow the world!

souvik1997

  • Guest
Re: Size of sprite
« Reply #3 on: June 16, 2010, 07:57:44 pm »
Thanks. I wanted it in bytes.

Offline ztrumpet

  • The Rarely Active One
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5712
  • Rating: +364/-4
  • If you see this, send me a PM. Just for fun.
    • View Profile
Re: Size of sprite
« Reply #4 on: June 16, 2010, 09:34:20 pm »
64 pixels = 16 hex characters = 8 bytes = 64 bits = 64 pixels
:D

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Size of sprite
« Reply #5 on: June 17, 2010, 12:52:07 am »
Also, a grayscale sprite is composed of two sprites, so it would be 16 bytes. Just adding to the discussion in case somebody would want to know how big they are, since they are different size than in BASIC