Views and Dimensions
Two project settings decide how your game is seen: the dimension (what the world is made of) and the view (where the camera looks from). Both are lines in assets/game.vdc. The dimension is This project is on the Project page of Project Settings, and the view is World view on its Camera page.
Dimension
- 2d
- Pictures only. Tiles for the ground, sprite sheets for characters. No model props.
- 2.5d
- An angled world with height. Characters are sprites or models, chosen per project with
charstyle spriteorcharstyle model. - 3d
- Models first, in a world with real depth. A picture is used only where there is no model.
A project that is not 2D always uses the angled view.
Top-down (2D)
The camera looks straight down. This is the default for a 2D project.
Side view (2D)
view side, or Edit > Project Settings > Camera > World view > Side-scroller.
- Gravity pulls. Left and right walk; Jump (Space) or Up jumps when you stand on something.
- Any prop with collision is solid from every side: a rock is a platform, a crate in the air is a ledge.
- The bottom edge of the map's bounds is the floor of the world. Give every side-view map bounds.
- The editor still lays the map out from above.
- Combat, dialog, quests, shops, events, light and weather work the same as in the other views.
Creature art from a sidescroller/enemies/ folder, named Anim_<Name>_Frames<N>.png and placed on a side-view map, comes alive in play: it walks the floors and turns back at walls and ledges.
Isometric (2.5D and 3D)
The world is drawn on a 2:1 diamond: a tile of size T draws as a diamond T wide and T/2 tall, and everything sorts back to front by depth. Movement keys walk up and down the diamond, and a click lands on the tile you clicked. Collision still works on the flat plan, so everything you author behaves the same.
In a 3D project the angled view is a preset of the real camera. Its yaw and pitch are on the viewport's View menu and are saved as isoyaw and isopitch; it looks through the menu's Field of view, saved as viewfov.
Flat and standing art
In the angled view, ground art either lies flat on the diamond or stands up. The engine measures each picture: a square texture that is solid to its edges lies flat; art already drawn at an angle stands and keeps its shape. If you disagree, prop flat <tag> on in a script lays a piece flat.
Choosing the camera's feel
The Camera page of Edit > Project Settings holds the play camera:
- View
- World view, game zoom and render target. A 3D project also picks its Play camera: 3rd Person Follow, Isometric-Style or First Person.
- Interact
- 3D only. How the player aims at things to use them, and how those things light up.
- First person
- 3D only. Head bob and lean.
- Body
- Every view but side view. Crouch, stamina for sprinting, and wall jumps (2.5D and 3D).
- Follow
- Follow feel, map bounds, dead zone, framing offset, look-ahead and zoom range.
- Character body
- Side view only. The body's half-width and height.
See Game Config Keys for the lines it writes.