Category:Snippets (简体中文)
这个列表是自动生成的,在此无法直接添加代码片段。如果你希望你的代码片段陈列在此,请参考 Guidelines。
这个页面已被缓存,意味着最新添加的代码片段在页面被 刷新 之前都不会显示出来。
全部代码片段
BoundingBox.lua | Collision checking function based on axis-aligned bounding boxes. | any |
Check | This function checks if it's arguments are of the right types and calls the error-function if one isn't. | any |
Clamping | This function clamps a value to a certain range. | any |
Comparing LÖVE Versions | Compare current LOVE version used | any |
Debug | Lua debug interface through the console. | any |
DistanceBasedCollision | Another way of detecting collisions. This type works perfectly with circles. | any |
FactoryFunctions | The functions to create functions | any |
FractalNoise | Generates 1, 2, 3 or 4 dimensional fractal noise | >0.9.0 |
General math | A collection of mathematical functions which can be useful in game programming. | >0.9.0 |
General math (Español) | A collection of mathematical functions which can be useful in game programming. | >0.9.0 |
Gradients | Draws fast gradients using images and interpolation | any |
HSL color | An alternate colorspace, allowing for aesthetically-pleasing color transformations. | any |
HSV color | An alternate colorspace, allowing for aesthetically-pleasing color transformations. | any |
In-Memory Audio Streaming | In-memory Source "stream". Stores the encoded audio data and decodes it from RAM. | 0.10.0 |
LineStippleSnippet | A substitute for the setLineStipple function removed in 0.8.0. | any |
Minimalist Sound Manager | Code that manages your audio Source objects for you. | any |
Minimalist Sound Manager (Español) | Código que administra tus objetos Source para el audio. | any |
NoiseWrapper | A noise wrapper to LÖVE's noise functions | >0.9.0 |
Objects | The base code for objects | any |
PointInConcavePolygon | A function returning true if the given point is inside the given polygon. | any |
PointInConvexPolygon | A function returning true if the given point is inside the given convex polygon. | any |
PointWithinShape | A set of functions for testing if a point lies within an area. | any |
Polygon splitting | Split convex polygons! | any |
Shear | Shear/skew graphics! | <0.8.0 |
Skip list | Implementation of a skip-list data structure. | any |
Skip list:Drawing Order | Usage example of the skip list data structure. | any |
SoundManager | A simple sound manager with support for playing both sound effects and music playlists. | any |
String exploding | Add the ability to explode strings. (return them as a table along defined divider substrings) | any |
String extensions | Adds additional functions to the string metatable. | any |
TexturedPolygon | A function to create an Image from a polygon textured by a texture. | any |
TileMerging | Generate rectangles that cover tiles of a certain type on a tile map. | any |
TiledMapLoader | Obsolete loader for Tiled (mapeditor) map files. | ? |
Vectors | Vector operator overloading | any |
arcLine | It makes arc line without center lines | any |
coroutine.resume | Fix for hidden coroutine error messages. | any |
fadeColor | Smooth color transitions suitable to fading effects. | any |
findProjectileTrajectory | Finds a projectile's position at a certain time | any |
findRotation | Takes two points and returns the direction from point A to point B. | any |
polypoint | ||
psi2love | C++ program taking a HGE psi file and converting it to Lua source code to create an equivalent particle system in LÖVE. | any |
uLove Compliance conf.lua | Obsolete conf.lua spec for uLove compliance. | 0.6.x |
其他语言
Dansk –
Deutsch –
English –
Español –
Français –
Indonesia –
Italiano –
Lietuviškai –
Magyar –
Nederlands –
Polski –
Português –
Română –
Slovenský –
Suomi –
Svenska –
Türkçe –
Česky –
Ελληνικά –
Български –
Русский –
Српски –
Українська –
עברית –
ไทย –
日本語 –
正體中文 –
简体中文 –
Tiếng Việt –
한국어
More info
This category currently contains no pages or media.