mirror of
https://github.com/godotengine/godot-demo-projects.git
synced 2026-01-04 06:09:46 +03:00
Add README files to demos with multiple versions
This commit is contained in:
@@ -1,18 +1,18 @@
|
||||
# 2.5D Demo Project (GDScript)
|
||||
# 2.5D Demo Project with GDScript
|
||||
|
||||
This demo project shows a way to create a 2.5D game in Godot by mixing 2D and 3D nodes. It also adds a 2.5D editor viewport for easily editing 2.5D levels.
|
||||
|
||||
Note: There is a Mono C# version available [here](https://github.com/godotengine/godot-demo-projects/tree/master/mono/2.5d).
|
||||
|
||||
Language: GDScript
|
||||
|
||||
Renderer: GLES 2
|
||||
|
||||
Note: There is a Mono C# version available [here](https://github.com/godotengine/godot-demo-projects/tree/master/mono/2.5d).
|
||||
|
||||
## How does it work?
|
||||
|
||||
Custom node types are added in a Godot plugin to allow 2.5D objects. Node25D serves as the base for all 2.5D objects. Its first child must be a 3D Spatial, which is used to calculate its position. Then, add a 2D Sprite (or similar) to display the object.
|
||||
|
||||
Inside of Node25D, a 2.5D transformation matrix made of three Vector2 is used to calculate the 2D position from the 3D position. For getting a 3D position, this project uses KinematicBody and StaticBody (3D), but these only exist for math - the camera is 2D and all sprites are 2D. You are able to use any Spatial node for math.
|
||||
Inside of Node25D, a 2.5D transformation matrix made of three `Vector2`s is used to calculate the 2D position from the 3D position. For getting a 3D position, this project uses KinematicBody and StaticBody (3D), but these only exist for math - the camera is 2D and all sprites are 2D. You are able to use any Spatial node for math.
|
||||
|
||||
Several view modes are implemented, including top down, front side, 45 degree, isometric, and two oblique modes. To implement a different view angle, all you need to do is create a new set of basis vectors in Node25D, use it on all instances, and of course create sprites to display that object in 2D.
|
||||
|
||||
|
||||
13
misc/multitouch_view/README.md
Normal file
13
misc/multitouch_view/README.md
Normal file
@@ -0,0 +1,13 @@
|
||||
# Multitouch View with GDScript
|
||||
|
||||
Simple debugger for multitouch input. Shows red dots everywhere you press.
|
||||
|
||||
Language: GDScript
|
||||
|
||||
Renderer: GLES 2
|
||||
|
||||
Note: There is a VisualScript version available [here](https://github.com/godotengine/godot-demo-projects/tree/master/visual_script/multitouch_view).
|
||||
|
||||
## Screenshots
|
||||
|
||||

|
||||
@@ -15,7 +15,7 @@ _global_script_class_icons={
|
||||
|
||||
[application]
|
||||
|
||||
config/name="TouchesView"
|
||||
config/name="Multitouch View"
|
||||
run/main_scene="res://Main.tscn"
|
||||
config/icon="res://icon.png"
|
||||
|
||||
|
||||
0
misc/multitouch_view/screenshots/.gdignore
Normal file
0
misc/multitouch_view/screenshots/.gdignore
Normal file
BIN
misc/multitouch_view/screenshots/multitouch.png
Normal file
BIN
misc/multitouch_view/screenshots/multitouch.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.6 KiB |
Reference in New Issue
Block a user