Skip to content

Commit

Permalink
Add touch screen support for 3d/platformer
Browse files Browse the repository at this point in the history
  • Loading branch information
shahriarlabib000 committed Nov 1, 2024
1 parent 7ed5b1c commit 04914ab
Show file tree
Hide file tree
Showing 22 changed files with 516 additions and 305 deletions.
3 changes: 3 additions & 0 deletions 3d/platformer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ Renderer: Forward+

Check out this demo on the asset library: https://godotengine.org/asset-library/asset/2748

This project uses Virtual joystick add-on by [`Marco F`](https://github.com/MarcoFazioRandom) for touch screen input.
check it out: https://godotengine.org/asset-library/asset/1787

## Screenshots

![Screenshot](screenshots/platformer.webp)
2 changes: 1 addition & 1 deletion 3d/platformer/coin/coin.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -236,10 +236,10 @@ mesh = SubResource("QuadMesh_kqa4x")
surface_material_override/0 = SubResource("StandardMaterial3D_7q0mq")

[node name="Animation" type="AnimationPlayer" parent="."]
autoplay = "spin"
libraries = {
"": SubResource("AnimationLibrary_7v453")
}
autoplay = "spin"

[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.00894194, 0.575859, 0.0193955)
Expand Down
12 changes: 6 additions & 6 deletions 3d/platformer/enemy/enemy.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -437,8 +437,8 @@ axis_lock_angular_y = true
axis_lock_angular_z = true
physics_material_override = SubResource("1")
custom_integrator = true
max_contacts_reported = 5
contact_monitor = true
max_contacts_reported = 5
script = ExtResource("1")

[node name="Enemy" parent="." instance=ExtResource("2_qf8n3")]
Expand All @@ -448,13 +448,13 @@ bones/1/position = Vector3(-5.04871e-28, 0.661877, 0)
bones/1/rotation = Quaternion(0.707107, -2.48537e-07, -1.95408e-07, 0.707107)
bones/2/position = Vector3(-3.87449e-08, 0.475726, -0.0617121)
bones/3/position = Vector3(0.913587, 0.661877, 0.631826)
bones/3/rotation = Quaternion(1, 0, 7.54979e-08, -1.05879e-22)
bones/3/rotation = Quaternion(1, -2.49197e-38, 7.54979e-08, -1.05879e-22)
bones/5/position = Vector3(-0.913587, 0.661877, 0.631826)
bones/5/rotation = Quaternion(1, 0, 7.54979e-08, -1.05879e-22)
bones/5/rotation = Quaternion(1, -2.49197e-38, 7.54979e-08, -1.05879e-22)
bones/7/position = Vector3(1.05436, 0.661877, -0.654576)
bones/7/rotation = Quaternion(1, 0, 7.54979e-08, -1.05879e-22)
bones/7/rotation = Quaternion(1, -2.49197e-38, 7.54979e-08, -1.05879e-22)
bones/9/position = Vector3(-1.05436, 0.661877, -0.654576)
bones/9/rotation = Quaternion(1, 0, 7.54979e-08, -1.05879e-22)
bones/9/rotation = Quaternion(1, -2.49197e-38, 7.54979e-08, -1.05879e-22)

[node name="RayFloor" type="RayCast3D" parent="Enemy/Skeleton" index="1"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.643772, 0.803052)
Expand All @@ -465,11 +465,11 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.643772, 0.310413)
target_position = Vector3(0, 0, 1.5)

[node name="AnimationPlayer" parent="Enemy" index="1"]
autoplay = "walk"
libraries = {
"": SubResource("AnimationLibrary_f4l5d"),
"extra": SubResource("AnimationLibrary_q27i1")
}
autoplay = "walk"

[node name="Sphere1" type="CollisionShape3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.74185, 0.267137)
Expand Down
221 changes: 0 additions & 221 deletions 3d/platformer/export_presets.cfg

This file was deleted.

Loading

0 comments on commit 04914ab

Please sign in to comment.