c++ - Data structures: alternatives to logic bitmap/pixmap -


i have decided rewrite old zatacka clone of mine. old thing, running under allegro 4, utilizes logic bitmap, bitmap used non-display purposes, reflecting directly visible "what's on screen , doesn't move" bitmap, integers stored in represent logical meaning of things on screen, because game got quite colorful. things players see may of color possible, game remembers kind of object each pixels represents.

the new clone not supposed use allegro, write logic bitmap code myself. said, appreciate if suggested more efficient , precise alternatives.

structure must able kept bitmap/texture visible players. think worms game, utilizing player invisible ground type variations, or something. in addition, following methods must implemented:

  • checking if pixels in circle belong small (~6) set of "colors" given parameter.
  • painting pixels in circle single "color".
  • painting pixels in circle, (except/only) ones in small set of "colors" provided parameter, single "color".
  • painting silhouette of rotated, preprocessed if wish so, bitmap single "color". (that's tricky one: interpreting bitmap stupid polygon loads of right angles job?)

this minimum. if structure supports shapes other circles, that's great.


Comments

Popular posts from this blog

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -

linux - Does gcc have any options to add version info in ELF binary file? -

java - Are there any classes that implement javax.persistence.Parameter<T>? -