stage_25d

2D game in a real 3D world (on the camera_2d object): side-scrolling 2D gameplay on its plane, drawn into a lit 3D scene (meshes, lights, rain, water) through a perspective camera that follows the 2D camera; sprites are cards lit by the scene's lights. Build the 3D world in metres behind the play plane; units_per_metre maps 2D units to it.

In scene text

stage_25d { units_per_metre 1  plane_z 1  distance 1 }

Add it in the Inspector (Add Component), in scene text as above, or ask your AI. Fields you leave out keep their defaults.

Fields 11

FieldTypeUnit / rangeWhat it does
units_per_metrenumber1 … 100002D units per metre of the 3D world.
plane_znumberm, -100000 … 100000The play plane's z in the 3D world.
distancenumberm, 0.5 … 1000Camera distance in front of the plane.
heightnumberm, -1000 … 1000Camera height above the 2D camera's middle.
look_heightnumberm, -1000 … 1000Height above the 2D camera's middle it looks at.
fovnumberdeg, 5 … 120Vertical field of view.
yawnumberdeg, -80 … 80Side angle (positive swings right).
sprite_lighttrue / false—Sprites take the scene's lights (colour and an edge light from the brightest).
ambientnumber0 … 2Sprite brightness with no light near.
light_gainnumber0 … 20How strongly lights brighten sprites.
backdropstrue / false—Draw the 2D backdrops too (off: the 3D world is the background).
Arcwright Beta 2 (0.4.0) · generated from the engine source (25e375c86)Something wrong or missing? Tell us
Download Arcwright free