Game objects: - LAGx/simpllight GitHub Wiki

BASE CLASSES:

class BaseObject

This class has just a texture, position of this texture(relative by center) and blit() for bliting this texture.

class DynamicObject :public BaseObject

Add phisic dynamic body with texture.

type of figure:

  • tringle_T, pentagon_T, intnugon_T - make equilateral figures, where length from center to corner equal figureSize.Texture have to be square.
  • rect_T - make phisic body by side of texture. FigureSize - indent by size for shadow.
  • circle_T - figureSize - radius. Texture have to be square.

class StaticObject :public BaseObject

Add phisic static body with texture.

type of figure: the same as in DynamicObject

ANOTHER CLASSES:

class House

Make house and trigger(door) on the top side. Shadow of main texture have to be 10. Shadow of door shadow have to be 4.