mirror of
https://github.com/godotengine/godot-demo-projects.git
synced 2026-01-04 23:10:08 +01:00
This leads to code that is easier to understand and runs faster thanks to GDScript's typed instructions. The untyped declaration warning is now enabled on all projects where type hints were added. All projects currently run without any untyped declration warnings. Dodge the Creeps and Squash the Creeps demos intentionally don't use type hints to match the documentation, where type hints haven't been adopted yet (given its beginner focus).
67 lines
1.6 KiB
GDScript
67 lines
1.6 KiB
GDScript
extends Node
|
|
|
|
var _tests: Array[Dictionary] = [
|
|
{
|
|
"id": "Functional Tests/Shapes",
|
|
"path": "res://tests/functional/test_shapes.tscn",
|
|
},
|
|
{
|
|
"id": "Functional Tests/Compound Shapes",
|
|
"path": "res://tests/functional/test_compound_shapes.tscn",
|
|
},
|
|
{
|
|
"id": "Functional Tests/Friction",
|
|
"path": "res://tests/functional/test_friction.tscn",
|
|
},
|
|
{
|
|
"id": "Functional Tests/Box Stack",
|
|
"path": "res://tests/functional/test_stack.tscn",
|
|
},
|
|
{
|
|
"id": "Functional Tests/Box Pyramid",
|
|
"path": "res://tests/functional/test_pyramid.tscn",
|
|
},
|
|
{
|
|
"id": "Functional Tests/Collision Pairs",
|
|
"path": "res://tests/functional/test_collision_pairs.tscn",
|
|
},
|
|
{
|
|
"id": "Functional Tests/Joints",
|
|
"path": "res://tests/functional/test_joints.tscn",
|
|
},
|
|
{
|
|
"id": "Functional Tests/Raycasting",
|
|
"path": "res://tests/functional/test_raycasting.tscn",
|
|
},
|
|
{
|
|
"id": "Functional Tests/RigidBody Impact",
|
|
"path": "res://tests/functional/test_rigidbody_impact.tscn",
|
|
},
|
|
{
|
|
"id": "Functional Tests/RigidBody Ground Check",
|
|
"path": "res://tests/functional/test_rigidbody_ground_check.tscn",
|
|
},
|
|
{
|
|
"id": "Functional Tests/Moving Platform",
|
|
"path": "res://tests/functional/test_moving_platform.tscn",
|
|
},
|
|
{
|
|
"id": "Performance Tests/Broadphase",
|
|
"path": "res://tests/performance/test_perf_broadphase.tscn",
|
|
},
|
|
{
|
|
"id": "Performance Tests/Contacts",
|
|
"path": "res://tests/performance/test_perf_contacts.tscn",
|
|
},
|
|
{
|
|
"id": "Performance Tests/Contact Islands",
|
|
"path": "res://tests/performance/test_perf_contact_islands.tscn",
|
|
},
|
|
]
|
|
|
|
|
|
func _ready() -> void:
|
|
var test_menu: OptionMenu = $TestsMenu
|
|
for test in _tests:
|
|
test_menu.add_test(test.id, test.path)
|