Added sprite shape functions

This commit is contained in:
n00b
2025-03-20 17:29:11 -04:00
parent b6b1ecf86f
commit 14f87ecbf1
197 changed files with 5576 additions and 1203 deletions

View File

@@ -52,3 +52,12 @@ function GetWorld2DAutoClearForces()
function CastRay2D( from_x, from_y, to_x, to_y )
function CastRay2D_All( from_x, from_y, to_x, to_y )
sub GetRayHit2D( index, ByRef spr_id, ByRef x, ByRef y, ByRef normal_x, ByRef normal_y )
Sub SetSpriteCollisionShape(spr_id, shape)
Function GetSpriteCollisionShape(spr_id)
Sub SetSpriteRadius(spr_id, radius)
Function GetSpriteRadius(spr_id)
Sub SetSpriteBox(spr_id, w, h)
Sub GetSpriteBoxSize(spr_id, ByRef w, ByRef h)
Sub SetSpriteChain(spr_id, ByRef vx, ByRef vy, v_count, prev_x, prev_y, next_x, next_y)
Sub SetSpriteChainLoop(spr_id, ByRef vx, ByRef vy, v_count)
Sub SetSpritePolygon(spr_id, ByRef vx, ByRef vy, v_count)