mirror of
https://github.com/godotengine/godot-demo-projects.git
synced 2026-01-04 15:00:09 +01:00
This updates all links to point to the 4.2 demos instead of the 3.5 ones. Co-authored-by: A Thousand Ships (she/her) <96648715+AThousandShips@users.noreply.github.com>
31 lines
1.2 KiB
Markdown
31 lines
1.2 KiB
Markdown
# Isometric Game
|
|
|
|
This demo shows a traditional isometric view with depth sorting.
|
|
|
|
A character can move around the level and will also slide around objects,
|
|
as well as be occluded when standing in front or behind them.
|
|
|
|
Language: GDScript
|
|
|
|
Renderer: Compatibility
|
|
|
|
Check out this demo on the asset library: https://godotengine.org/asset-library/asset/2718
|
|
|
|
## How does it work?
|
|
|
|
The level uses a [`TileMap`](https://docs.godotengine.org/en/latest/classes/class_tilemap.html#class-tilemap)
|
|
in which the tiles have different vertical offsets.
|
|
The walls, doors, and pillars each have
|
|
[`StaticBody2D`](https://docs.godotengine.org/en/latest/classes/class_staticbody2d.html)
|
|
and [`CollisionPolygon2D`](https://docs.godotengine.org/en/latest/classes/class_collisionpolygon2d.html)
|
|
at their base. The player also has a collider at its base,
|
|
which makes the player collide with the level.
|
|
|
|
2D lighting effects are achieved using a mixture of PointLight2D nodes (which provide real-time shadows)
|
|
and pre-placed Polygon2Ds with sprites. To provide additional ambient shading, the goblin also has a blob
|
|
shadow below its feet (a Sprite2D with a texture).
|
|
|
|
## Screenshots
|
|
|
|

|