Gondwana Game Engine
Gondwana is a cross-platform 2.5D game and rendering engine written in C#/.NET 8. It provides fine-grained control over rendering, timing, and scene composition, with built-in support for parallax, z-ordering, pixel overhang, collision detection, and particle effects. Gondwana targets desktop, mobile, and web platforms using SkiaSharp for graphics and NAudio for sound.
Loading...
Searching...
No Matches
Gondwana.Collisions.CollisionDetectionAdjustment Struct Reference

Pixel adjustments applied to a Tile's DrawLocation to produce its collision box. Positive values shrink/expand the collision rect relative to the visual rect. More...

Public Member Functions

 CollisionDetectionAdjustment (int top, int bottom, int left, int right)
 Initializes a new instance of the CollisionDetectionAdjustment struct with the specified edge adjustments.

Static Public Attributes

static readonly CollisionDetectionAdjustment None = new()
 Represents a collision detection adjustment with no pixel offsets (all values are zero).

Properties

int Top [get, set]
 Gets or sets the pixel adjustment applied to the top edge of the collision box.
int Bottom [get, set]
 Gets or sets the pixel adjustment applied to the bottom edge of the collision box.
int Left [get, set]
 Gets or sets the pixel adjustment applied to the left edge of the collision box.
int Right [get, set]
 Gets or sets the pixel adjustment applied to the right edge of the collision box.

Detailed Description

Pixel adjustments applied to a Tile's DrawLocation to produce its collision box. Positive values shrink/expand the collision rect relative to the visual rect.

Constructor & Destructor Documentation

◆ CollisionDetectionAdjustment()

Gondwana.Collisions.CollisionDetectionAdjustment.CollisionDetectionAdjustment ( int top,
int bottom,
int left,
int right )

Initializes a new instance of the CollisionDetectionAdjustment struct with the specified edge adjustments.

Parameters
topThe pixel adjustment for the top edge.
bottomThe pixel adjustment for the bottom edge.
leftThe pixel adjustment for the left edge.
rightThe pixel adjustment for the right edge.

Member Data Documentation

◆ None

readonly CollisionDetectionAdjustment Gondwana.Collisions.CollisionDetectionAdjustment.None = new()
static

Represents a collision detection adjustment with no pixel offsets (all values are zero).

Property Documentation

◆ Bottom

int Gondwana.Collisions.CollisionDetectionAdjustment.Bottom
getset

Gets or sets the pixel adjustment applied to the bottom edge of the collision box.

◆ Left

int Gondwana.Collisions.CollisionDetectionAdjustment.Left
getset

Gets or sets the pixel adjustment applied to the left edge of the collision box.

◆ Right

int Gondwana.Collisions.CollisionDetectionAdjustment.Right
getset

Gets or sets the pixel adjustment applied to the right edge of the collision box.

◆ Top

int Gondwana.Collisions.CollisionDetectionAdjustment.Top
getset

Gets or sets the pixel adjustment applied to the top edge of the collision box.