Object (简体中文)

所有LÖVE类的父类

函数

Object:typeGets the type of the object as a string.
Object:typeOfChecks whether an object is of a certain type.

子类

BezierCurveA Bézier curve object that can evaluate and render Bézier curves of arbitrary degree.Added since 0.9.0
BodyBodies are objects with velocity and position.
CanvasOff-screen render target.Added since 0.8.0
ChainShapeA ChainShape consists of multiple line segments.
ChannelAn object which can be used to send and receive data between different threads.Added since 0.9.0
CircleShapeCircle extends Shape and adds a radius and a local position.
CompressedDataCompressed image data designed to stay compressed in RAM and on the GPU.Added since 0.9.0
ContactContacts are objects created to manage collisions in worlds.
CursorRepresents a hardware cursor.Added since 0.9.0
DataThe superclass of all data.
DecoderAn object which can gradually decode a sound file.
DistanceJointKeeps two bodies at the same distance.
DrawableSuperclass for all things that can be drawn on screen.
EdgeShapeEdgeShape is a line segment.
FileRepresents a file on the filesystem.
FileDataData representing the contents of a file.
FixtureFixtures attach shapes to bodies.Added since 0.8.0
FontDefines the shape of characters than can be drawn onto the screen.
FontDataA FontData represents a font.Added since 0.7.0 Removed in 0.8.0
FramebufferOff-screen render target.Added since 0.7.0 Removed in 0.8.0
FrictionJointA FrictionJoint applies friction to a body.Added since 0.8.0
GearJointKeeps bodies together in such a way that they act like gears.
GlyphDataA GlyphData represents a drawable symbol of a font.Added since 0.7.0
ImageDrawable image type.
ImageDataRaw (decoded) image data.
JointAttach multiple bodies together to interact in unique ways.
JoystickRepresents a physical joystick.Added since 0.9.0
MeshA 2D polygon mesh used for drawing arbitrary textured shapes.Added since 0.9.0
MouseJointFor controlling objects with the mouse.
ParticleSystemUsed to create cool effects, like fire.
PixelEffectPixel shader effect.Added since 0.8.0 Removed in 0.9.0
PolygonShapePolygon is a convex polygon with up to 8 sides.
PrismaticJointRestricts relative motion between Bodies to one shared axis.
PulleyJointAllows you to simulate bodies connected through pulleys.
QuadA quadrilateral with texture coordinate information.
RandomGeneratorA random number generation object which has its own random state.Added since 0.9.0
RasterizerA Rasterizer represents font data and glyphs.Added since 0.7.0
RevoluteJointAllow two Bodies to revolve around a shared point.
RopeJointEnforces a maximum distance between two points on two bodies.Added since 0.8.0
ShaderShader effect.Added since 0.9.0
ShapeShapes are objects used to control mass and collisions.
SoundDataContains raw audio samples.
SourceA Source represents audio you can play back.
SpriteBatchStore image positions in a buffer, and draw it in one call.
TextureSuperclass for drawable objects which represent a texture.Added since 0.9.1
ThreadA Thread represents a thread.Added since 0.7.0
WeldJointA WeldJoint essentially glues two bodies together.Added since 0.8.0
WheelJointRestricts a point on the second body to a line on the first body.
WorldA world is an object that contains all bodies and joints.

参考


其他语言

Personal tools