Skip to content

LunarShape

ZSolarDev edited this page Jan 15, 2025 · 4 revisions


LunarShape

A base shape. (DO NOT USE THIS IF YOU WANT THIS SHAPE TO RENDER!!! ONLY USE CLASSES THAT EXTEND LUNARSHAPE!!!)

Variables:

  • color:Int: The color of this shape.
  • shapeType(default, null):LunarShapeType: The type of shape this shape is.
  • alpha(default, set):Int: the alpha of this shape. (0-256)

Functions:

  • copy(): Returns a copy of this shape.


LunarRect (extends LunarShape)

A rectangle shape.

Variables:

  • width:Float: The width of this rectangle.
  • height:Float: The height of this rectangle.


LunarCircle (extends LunarShape)

A circle shape.

Variables:

  • radius:Float: The radius of this circle.


LunarTexture (extends LunarRect)

A texture.

Variables:

  • texPath:String: The path to the texture.
  • graphicStorage:LunarVarAbstract: The storage for the graphic of the texture. (acess it with graphicStorage.graphic. on HaxeFlixel, graphicStorage.graphic is a FlxGraphic.)

Welcome, Welcome. Read up, and have a good day!

Clone this wiki locally