12345678910111213141516171819202122232425262728293031323334 |
- [gd_scene load_steps=5 format=2]
- [ext_resource path="res://powerMenu.tscn" type="PackedScene" id=1]
- [ext_resource path="res://client.gd" type="Script" id=2]
- [ext_resource path="res://PowerMenu.gd" type="Script" id=3]
- [sub_resource type="GDScript" id=6]
- script/source = "extends Node
- var enabled = false
- func _physics_process(delta):
- if enabled:
- var input = ''
- if Input.is_action_pressed(\"s\"):
- input =(\"ui_down\")
- if Input.is_action_pressed(\"w\"):
- input =(\"ui_up\")
- if Input.is_action_pressed(\"a\"):
- input =(\"ui_left\")
- if Input.is_action_pressed(\"d\"):
- input =(\"ui_right\")
- get_parent().send_input(input)
- "
- [node name="ClientDummy" type="Node" groups=["client"]]
- script = ExtResource( 2 )
- [node name="Input" type="Node" parent="."]
- script = SubResource( 6 )
- [node name="PowerMenu" type="CanvasLayer" parent="." instance=ExtResource( 1 )]
- script = ExtResource( 3 )
|