[3.1] Simplify list of branches in the README (#1255)

This commit is contained in:
Aaron Franke
2025-10-02 15:46:10 -07:00
parent a6ae6f64be
commit ea5b868fc7
143 changed files with 575 additions and 689 deletions

19
.github/workflows/static_checks.yml vendored Normal file
View File

@@ -0,0 +1,19 @@
name: Static Checks
on: [push, pull_request]
jobs:
format:
name: File formatting (file_format.sh)
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Install dependencies
run: |
sudo apt-get update -qq
sudo apt-get install -qq dos2unix recode
- name: File formatting checks (file_format.sh)
run: |
bash ./file_format.sh

1
.gitignore vendored
View File

@@ -18,4 +18,5 @@ mono_crash.*.json
# System/tool-specific ignores
.directory
.DS_Store
*~

View File

@@ -10,7 +10,6 @@ config_version=4
_global_script_classes=[ ]
_global_script_class_icons={
}
[application]

View File

@@ -10,7 +10,6 @@ config_version=4
_global_script_classes=[ ]
_global_script_class_icons={
}
[application]

View File

@@ -108,7 +108,7 @@ func check_if_mouse_is_inside_canvas():
if mouse_click_start_pos.x > TL_node.global_position.x:
if mouse_click_start_pos.y > TL_node.global_position.y:
# Make sure the current mouse position is inside the canvas.
if is_mouse_in_drawing_area == true:
if is_mouse_in_drawing_area:
return true
return false

View File

@@ -10,7 +10,6 @@ config_version=4
_global_script_classes=[ ]
_global_script_class_icons={
}
[application]

View File

@@ -10,7 +10,6 @@ config_version=4
_global_script_classes=[ ]
_global_script_class_icons={
}
[application]

View File

@@ -10,7 +10,6 @@ config_version=4
_global_script_classes=[ ]
_global_script_class_icons={
}
[application]

View File

@@ -10,7 +10,6 @@ config_version=4
_global_script_classes=[ ]
_global_script_class_icons={
}
[application]

View File

@@ -10,7 +10,6 @@ config_version=4
_global_script_classes=[ ]
_global_script_class_icons={
}
[application]

View File

@@ -10,7 +10,6 @@ config_version=4
_global_script_classes=[ ]
_global_script_class_icons={
}
[application]

View File

@@ -10,7 +10,6 @@ config_version=4
_global_script_classes=[ ]
_global_script_class_icons={
}
[application]

View File

@@ -10,7 +10,6 @@ config_version=4
_global_script_classes=[ ]
_global_script_class_icons={
}
[application]

View File

@@ -10,7 +10,6 @@ config_version=4
_global_script_classes=[ ]
_global_script_class_icons={
}
[application]

View File

@@ -10,7 +10,6 @@ config_version=4
_global_script_classes=[ ]
_global_script_class_icons={
}
[application]

View File

@@ -10,7 +10,6 @@ config_version=4
_global_script_classes=[ ]
_global_script_class_icons={
}
[application]

View File

@@ -10,7 +10,6 @@ config_version=4
_global_script_classes=[ ]
_global_script_class_icons={
}
[application]

View File

@@ -1,5 +1,5 @@
{
"dialog_1" : {"name": "Unknown", "text": "Hey, it's a good time to have a JRPG fight, right?"},
"dialog_2" : {"name": "Unknown", "text": "Let me introduce myself, I'm the OPPONENT"},
"dialog_3" : {"name": "Opponent", "text": "Enough talking. Let's fight!"},
"dialog_1": { "name": "Unknown", "text": "Hey, it's a good time to have a JRPG fight, right?" },
"dialog_2": { "name": "Unknown", "text": "Let me introduce myself, I'm the OPPONENT" },
"dialog_3": { "name": "Opponent", "text": "Enough talking. Let's fight!" }
}

View File

@@ -1,3 +1,3 @@
{
"dialog_1" : {"name":"Player", "text":"Just some object..." }
"dialog_1": { "name": "Player", "text": "Just some object..." }
}

View File

@@ -1,3 +1,3 @@
{
"dialog_1" : {"name": "Opponent", "text": "Aha! I won, maybe you can try again next time"}
"dialog_1": { "name": "Opponent", "text": "Aha! I won, maybe you can try again next time" }
}

View File

@@ -1,3 +1,3 @@
{
"dialog_1" : {"name": "Opponent", "text": "Congratulations, you won!"}
"dialog_1": { "name": "Opponent", "text": "Congratulations, you won!" }
}

View File

@@ -10,7 +10,6 @@ config_version=4
_global_script_classes=[ ]
_global_script_class_icons={
}
[application]

View File

@@ -10,7 +10,6 @@ config_version=4
_global_script_classes=[ ]
_global_script_class_icons={
}
[application]

View File

@@ -10,7 +10,6 @@ config_version=4
_global_script_classes=[ ]
_global_script_class_icons={
}
[application]

View File

@@ -10,7 +10,6 @@ config_version=4
_global_script_classes=[ ]
_global_script_class_icons={
}
[application]

View File

@@ -53,7 +53,7 @@ func _ready():
target = Spatial.new()
add_child(target)
if Engine.editor_hint == true:
if Engine.editor_hint:
if get_tree() != null:
if get_tree().edited_scene_root != null:
target.set_owner(get_tree().edited_scene_root)
@@ -63,7 +63,7 @@ func _ready():
target = get_node("target")
# If we are in the editor, we want to make a sphere at this node
if Engine.editor_hint == true:
if Engine.editor_hint:
_make_editor_sphere_at_node(target, Color(1, 0, 1, 1))
if middle_joint_target == null:
@@ -71,7 +71,7 @@ func _ready():
middle_joint_target = Spatial.new()
add_child(middle_joint_target)
if Engine.editor_hint == true:
if Engine.editor_hint:
if get_tree() != null:
if get_tree().edited_scene_root != null:
middle_joint_target.set_owner(get_tree().edited_scene_root)
@@ -81,7 +81,7 @@ func _ready():
middle_joint_target = get_node("middle_joint_target")
# If we are in the editor, we want to make a sphere at this node
if Engine.editor_hint == true:
if Engine.editor_hint:
_make_editor_sphere_at_node(middle_joint_target, Color(1, 0.24, 1, 1))
# Make all of the bone nodes for each bone in the IK chain
@@ -93,20 +93,20 @@ func _ready():
# Various upate methods
func _process(_delta):
if reset_iterations_on_update == true:
if reset_iterations_on_update:
chain_iterations = 0
update_skeleton()
func _physics_process(_delta):
if reset_iterations_on_update == true:
if reset_iterations_on_update:
chain_iterations = 0
update_skeleton()
func _notification(what):
if what == NOTIFICATION_TRANSFORM_CHANGED:
if reset_iterations_on_update == true:
if reset_iterations_on_update:
chain_iterations = 0
update_skeleton()
@@ -115,7 +115,7 @@ func _notification(what):
func update_skeleton():
#### ERROR CHECKING conditions
if first_call == true:
if first_call:
_set_skeleton_path(skeleton_path)
first_call = false
@@ -125,16 +125,16 @@ func update_skeleton():
return
if bones_in_chain == null:
if debug_messages == true:
if debug_messages:
printerr(name, " - IK_FABRIK: No Bones in IK chain defined!")
return
if bones_in_chain_lengths == null:
if debug_messages == true:
if debug_messages:
printerr(name, " - IK_FABRIK: No Bone lengths in IK chain defined!")
return
if bones_in_chain.size() != bones_in_chain_lengths.size():
if debug_messages == true:
if debug_messages:
printerr(name, " - IK_FABRIK: bones_in_chain and bones_in_chain_lengths!")
return
@@ -167,7 +167,7 @@ func update_skeleton():
func solve_chain():
# If we have reached our max chain iteration, and we are limiting ourselves, then return.
# Otherwise set chain_iterations to zero (so we constantly update)
if chain_iterations >= CHAIN_MAX_ITER and limit_chain_iterations == true:
if chain_iterations >= CHAIN_MAX_ITER and limit_chain_iterations:
return
else:
chain_iterations = 0
@@ -187,7 +187,7 @@ func solve_chain():
var target_pos = target.global_transform.origin + (dir * bones_in_chain_lengths[bone_nodes.size()-1])
# If we are using middle joint target (and have more than 2 bones), move our middle joint towards it!
if use_middle_joint_target == true:
if use_middle_joint_target:
if bone_nodes.size() > 2:
var middle_point_pos = middle_joint_target.global_transform
bone_nodes[bone_nodes.size()/2].global_transform.origin = middle_point_pos.origin
@@ -339,7 +339,7 @@ func get_bone_transform(bone, convert_to_world_space = true):
# If we need to convert the bone position from bone/skeleton space to world space, we
# use the Xform of the skeleton (because bone/skeleton space is relative to the position of the skeleton node).
if convert_to_world_space == true:
if convert_to_world_space:
ret.origin = skeleton.global_transform.xform(ret.origin)
return ret
@@ -393,43 +393,43 @@ func _set_update_mode(new_value):
elif update_mode == 2:
set_notify_transform(true)
else:
if debug_messages == true:
if debug_messages:
printerr(name, " - IK_FABRIK: Unknown update mode. NOT updating skeleton")
return
func _set_skeleton_path(new_value):
# Because get_node doesn't work in the first call, we just want to assign instead
if first_call == true:
if first_call:
skeleton_path = new_value
return
skeleton_path = new_value
if skeleton_path == null:
if debug_messages == true:
if debug_messages:
printerr(name, " - IK_FABRIK: No Nodepath selected for skeleton_path!")
return
var temp = get_node(skeleton_path)
if temp != null:
# If it has the method "get_bone_global_pose" it is likely a Skeleton
if temp.has_method("get_bone_global_pose") == true:
if temp.has_method("get_bone_global_pose"):
skeleton = temp
bone_IDs = {}
# (Delete all of the old bone nodes and) Make all of the bone nodes for each bone in the IK chain
_make_bone_nodes()
if debug_messages == true:
if debug_messages:
printerr(name, " - IK_FABRIK: Attached to a new skeleton")
# If not, then it's (likely) not a Skeleton node
else:
skeleton = null
if debug_messages == true:
if debug_messages:
printerr(name, " - IK_FABRIK: skeleton_path does not point to a skeleton!")
else:
if debug_messages == true:
if debug_messages:
printerr(name, " - IK_FABRIK: No Nodepath selected for skeleton_path!")
@@ -447,7 +447,7 @@ func _make_bone_nodes():
bone_nodes[bone] = new_node
add_child(bone_nodes[bone])
if Engine.editor_hint == true:
if Engine.editor_hint:
if get_tree() != null:
if get_tree().edited_scene_root != null:
bone_nodes[bone].set_owner(get_tree().edited_scene_root)
@@ -458,7 +458,7 @@ func _make_bone_nodes():
bone_nodes[bone] = get_node(bone_name)
# If we are in the editor, we want to make a sphere at this node
if Engine.editor_hint == true:
if Engine.editor_hint:
_make_editor_sphere_at_node(bone_nodes[bone], Color(0.65, 0, 1, 1))

View File

@@ -28,10 +28,10 @@ func _ready():
elif update_mode == 2:
set_notify_transform(true)
else:
if debug_messages == true:
if debug_messages:
print (name, " - IK_LookAt: Unknown update mode. NOT updating skeleton")
if Engine.editor_hint == true:
if Engine.editor_hint:
_setup_for_editor()
@@ -51,7 +51,7 @@ func _notification(what):
func update_skeleton():
# NOTE: Because get_node doesn't work in _ready, we need to skip
# a call before doing anything.
if first_call == true:
if first_call:
first_call = false
if skeleton_to_use == null:
_set_skeleton_path(skeleton_path)
@@ -68,7 +68,7 @@ func update_skeleton():
# If no bone is found (-1), then return (and optionally print an error)
if bone == -1:
if debug_messages == true:
if debug_messages:
print (name, " - IK_LookAt: No bone in skeleton found with name [", bone_name, "]!")
return
@@ -87,7 +87,7 @@ func update_skeleton():
rest = rest.looking_at(target_pos, Vector3(0, 0, 1))
else:
rest = rest.looking_at(target_pos, Vector3(0, 1, 0))
if debug_messages == true:
if debug_messages:
print (name, " - IK_LookAt: Unknown look_at_axis value!")
# Get our rotation euler, and the bone's rotation euler
@@ -95,15 +95,15 @@ func update_skeleton():
var self_euler = global_transform.basis.orthonormalized().get_euler()
# If we using negative rotation, we flip our rotation euler
if use_negative_our_rot == true:
if use_negative_our_rot:
self_euler = -self_euler
# Apply our rotation euler, if wanted/required
if use_our_rotation_x == true:
if use_our_rotation_x:
rest_euler.x = self_euler.x
if use_our_rotation_y == true:
if use_our_rotation_y:
rest_euler.y = self_euler.y
if use_our_rotation_z == true:
if use_our_rotation_z:
rest_euler.z = self_euler.z
# Rotate the bone by the (potentially) changed euler angle(s)
@@ -155,25 +155,25 @@ func _set_update(new_value):
# Based on the value of upate, change how we handle updating the skeleton
if update_mode == 0:
set_process(true)
if debug_messages == true:
if debug_messages:
print (name, " - IK_LookAt: updating skeleton using _process...")
elif update_mode == 1:
set_physics_process(true)
if debug_messages == true:
if debug_messages:
print (name, " - IK_LookAt: updating skeleton using _physics_process...")
elif update_mode == 2:
set_notify_transform(true)
if debug_messages == true:
if debug_messages:
print (name, " - IK_LookAt: updating skeleton using _notification...")
else:
if debug_messages == true:
if debug_messages:
print (name, " - IK_LookAt: NOT updating skeleton due to unknown update method...")
func _set_skeleton_path(new_value):
# Because get_node doesn't work in the first call, we just want to assign instead
# This is to get around a issue with NodePaths exposed to the editor
if first_call == true:
if first_call:
skeleton_path = new_value
return
@@ -181,7 +181,7 @@ func _set_skeleton_path(new_value):
skeleton_path = new_value
if skeleton_path == null:
if debug_messages == true:
if debug_messages:
print (name, " - IK_LookAt: No Nodepath selected for skeleton_path!")
return
@@ -189,15 +189,15 @@ func _set_skeleton_path(new_value):
var temp = get_node(skeleton_path)
if temp != null:
# If the node has the method "find_bone" then we can assume it is (likely) a skeleton
if temp.has_method("find_bone") == true:
if temp.has_method("find_bone"):
skeleton_to_use = temp
if debug_messages == true:
if debug_messages:
print (name, " - IK_LookAt: attached to (new) skeleton")
# If not, then it's (likely) not a skeleton
else:
skeleton_to_use = null
if debug_messages == true:
if debug_messages:
print (name, " - IK_LookAt: skeleton_path does not point to a skeleton!")
else:
if debug_messages == true:
if debug_messages:
print (name, " - IK_LookAt: No Nodepath selected for skeleton_path!")

View File

@@ -103,7 +103,7 @@ func process_input(delta):
if right_mouse_down == false:
right_mouse_down = true
if anim_done == true:
if anim_done:
if current_anim != "Aiming":
anim_player.play("Aiming")
current_anim = "Aiming"

View File

@@ -10,7 +10,6 @@ config_version=4
_global_script_classes=[ ]
_global_script_class_icons={
}
[application]

View File

@@ -10,7 +10,6 @@ config_version=4
_global_script_classes=[ ]
_global_script_class_icons={
}
[application]

View File

@@ -10,7 +10,6 @@ config_version=4
_global_script_classes=[ ]
_global_script_class_icons={
}
[application]

View File

@@ -10,7 +10,6 @@ config_version=4
_global_script_classes=[ ]
_global_script_class_icons={
}
[application]

View File

@@ -10,7 +10,6 @@ config_version=4
_global_script_classes=[ ]
_global_script_class_icons={
}
[application]

View File

@@ -10,7 +10,6 @@ config_version=4
_global_script_classes=[ ]
_global_script_class_icons={
}
[application]

View File

@@ -8,23 +8,10 @@ be used with [Godot Engine](https://godotengine.org), the open source
- The [`master`](https://github.com/godotengine/godot-demo-projects) branch is compatible with Godot's `master` development branch (next 4.x release).
- The [`3.x`](https://github.com/godotengine/godot-demo-projects/tree/3.x) branch is compatible with Godot's `3.x` development branch (next 3.x release).
- The other branches are compatible with the matching stable versions of Godot:
- [`4.0`](https://github.com/godotengine/godot-demo-projects/tree/4.0)
branch for Godot 4.0.x.
- [`3.5`](https://github.com/godotengine/godot-demo-projects/tree/3.5)
branch for Godot 3.5.x.
- [`3.4`](https://github.com/godotengine/godot-demo-projects/tree/3.4)
branch for Godot 3.4.x.
- [`3.3`](https://github.com/godotengine/godot-demo-projects/tree/3.3)
branch for Godot 3.3.x.
- [`3.2`](https://github.com/godotengine/godot-demo-projects/tree/3.2)
branch for Godot 3.2.x.
- [***`3.1`***](https://github.com/godotengine/godot-demo-projects/tree/3.1)
branch for Godot 3.1.x.
- [`3.0`](https://github.com/godotengine/godot-demo-projects/tree/3.0)
branch for Godot 3.0.x.
- [`2.1`](https://github.com/godotengine/godot-demo-projects/tree/2.1)
branch for Godot 2.1.x.
- The other branches are compatible with the matching stable versions of Godot.
- [Click here](https://github.com/godotengine/godot-demo-projects/branches) to see all branches.
- For example, the [`2.1`](https://github.com/godotengine/godot-demo-projects/tree/2.1)
branch is for demos compatible with Godot 2.1.x.
## Importing all demos

View File

@@ -10,7 +10,6 @@ config_version=4
_global_script_classes=[ ]
_global_script_class_icons={
}
[application]

View File

@@ -10,7 +10,6 @@ config_version=4
_global_script_classes=[ ]
_global_script_class_icons={
}
[application]

View File

@@ -10,7 +10,6 @@ config_version=4
_global_script_classes=[ ]
_global_script_class_icons={
}
[application]

View File

@@ -10,7 +10,6 @@ config_version=4
_global_script_classes=[ ]
_global_script_class_icons={
}
[application]

55
file_format.sh Normal file
View File

@@ -0,0 +1,55 @@
#!/usr/bin/env bash
# This script ensures proper POSIX text file formatting and a few other things.
set -uo pipefail
IFS=$'\n\t'
# Loops through all text files tracked by Git.
git grep -zIl '' |
while IFS= read -rd '' f; do
# Exclude some types of files.
if [[ "$f" == *"csproj" ]]; then
continue
elif [[ "$f" == *"hdr" ]]; then
continue
fi
# Ensure that files are UTF-8 formatted.
recode UTF-8 "$f" 2> /dev/null
# Ensure that files have LF line endings and do not contain a BOM.
dos2unix "$f" 2> /dev/null
# Remove trailing space characters and ensures that files end
# with newline characters. -l option handles newlines conveniently.
perl -i -ple 's/\s*$//g' "$f"
# Remove the character sequence "== true" if it has a leading space.
perl -i -pe 's/\x20== true//g' "$f"
# We don't want to change lines around braces in godot/tscn files.
if [[ "$f" == *"godot" ]]; then
continue
elif [[ "$f" == *"tscn" ]]; then
continue
fi
# Disallow empty lines after the opening brace.
sed -z -i 's/\x7B\x0A\x0A/\x7B\x0A/g' "$f"
# Disallow some empty lines before the closing brace.
sed -z -i 's/\x0A\x0A\x7D/\x0A\x7D/g' "$f"
done
git diff > patch.patch
FILESIZE="$(stat -c%s patch.patch)"
MAXSIZE=5
# If no patch has been generated all is OK, clean up, and exit.
if (( FILESIZE < MAXSIZE )); then
printf "Files in this commit comply with the formatting rules.\n"
rm -f patch.patch
exit 0
fi
# A patch has been created, notify the user, clean up, and exit.
printf "\n*** The following differences were found between the code "
printf "and the formatting rules:\n\n"
cat patch.patch
printf "\n*** Aborting, please fix your commit(s) with 'git commit --amend' or 'git rebase -i <hash>'\n"
rm -f patch.patch
exit 1

View File

@@ -10,7 +10,6 @@ config_version=4
_global_script_classes=[ ]
_global_script_class_icons={
}
[application]

View File

@@ -10,7 +10,6 @@ config_version=4
_global_script_classes=[ ]
_global_script_class_icons={
}
[application]

View File

@@ -10,7 +10,6 @@ config_version=4
_global_script_classes=[ ]
_global_script_class_icons={
}
[application]

View File

@@ -10,7 +10,6 @@ config_version=4
_global_script_classes=[ ]
_global_script_class_icons={
}
[application]

View File

@@ -10,7 +10,6 @@ config_version=4
_global_script_classes=[ ]
_global_script_class_icons={
}
[application]

View File

@@ -10,7 +10,6 @@ config_version=4
_global_script_classes=[ ]
_global_script_class_icons={
}
[application]

View File

@@ -10,7 +10,6 @@ config_version=4
_global_script_classes=[ ]
_global_script_class_icons={
}
[application]

View File

@@ -10,7 +10,6 @@ config_version=4
_global_script_classes=[ ]
_global_script_class_icons={
}
[application]

View File

@@ -10,7 +10,6 @@ config_version=4
_global_script_classes=[ ]
_global_script_class_icons={
}
[android]

View File

@@ -10,7 +10,6 @@ config_version=4
_global_script_classes=[ ]
_global_script_class_icons={
}
[application]

View File

@@ -10,7 +10,6 @@ config_version=4
_global_script_classes=[ ]
_global_script_class_icons={
}
[application]

View File

@@ -10,7 +10,6 @@ config_version=4
_global_script_classes=[ ]
_global_script_class_icons={
}
[application]

View File

@@ -10,7 +10,6 @@ config_version=4
_global_script_classes=[ ]
_global_script_class_icons={
}
[application]

View File

@@ -10,7 +10,6 @@ config_version=4
_global_script_classes=[ ]
_global_script_class_icons={
}
[application]

View File

@@ -10,7 +10,6 @@ config_version=4
_global_script_classes=[ ]
_global_script_class_icons={
}
[application]

View File

@@ -10,7 +10,6 @@ config_version=4
_global_script_classes=[ ]
_global_script_class_icons={
}
[application]

View File

@@ -10,7 +10,6 @@ config_version=4
_global_script_classes=[ ]
_global_script_class_icons={
}
[application]

View File

@@ -10,7 +10,6 @@ config_version=4
_global_script_classes=[ ]
_global_script_class_icons={
}
[application]

View File

@@ -10,7 +10,6 @@ config_version=4
_global_script_classes=[ ]
_global_script_class_icons={
}
[application]

View File

@@ -10,7 +10,6 @@ config_version=4
_global_script_classes=[ ]
_global_script_class_icons={
}
[application]

View File

@@ -10,7 +10,6 @@ config_version=4
_global_script_classes=[ ]
_global_script_class_icons={
}
[application]

View File

@@ -10,7 +10,6 @@ config_version=4
_global_script_classes=[ ]
_global_script_class_icons={
}
[application]

View File

@@ -10,7 +10,6 @@ config_version=4
_global_script_classes=[ ]
_global_script_class_icons={
}
[application]

View File

@@ -10,7 +10,6 @@ config_version=4
_global_script_classes=[ ]
_global_script_class_icons={
}
[application]

View File

@@ -10,7 +10,6 @@ config_version=4
_global_script_classes=[ ]
_global_script_class_icons={
}
[application]

View File

@@ -23,16 +23,10 @@
"arrow-spacing": "error",
"block-scoped-var": "error",
"block-spacing": "error",
"brace-style": [
"error",
"1tbs"
],
"brace-style": ["error", "1tbs"],
"callback-return": "error",
"camelcase": "error",
"capitalized-comments": [
"error",
"always"
],
"capitalized-comments": ["error", "always"],
"class-methods-use-this": "error",
"comma-dangle": "error",
"comma-spacing": [
@@ -44,10 +38,7 @@
],
"comma-style": "error",
"complexity": "error",
"computed-property-spacing": [
"error",
"never"
],
"computed-property-spacing": ["error", "never"],
"consistent-return": "error",
"consistent-this": "error",
"curly": "off",
@@ -59,10 +50,7 @@
"func-call-spacing": "error",
"func-name-matching": "error",
"func-names": "error",
"func-style": [
"error",
"declaration"
],
"func-style": ["error", "declaration"],
"function-paren-newline": "error",
"generator-star-spacing": "error",
"global-require": "error",
@@ -72,10 +60,7 @@
"id-length": "off",
"id-match": "error",
"implicit-arrow-linebreak": "error",
"indent": [
"error",
"tab"
],
"indent": ["error", "tab"],
"indent-legacy": "off",
"init-declarations": "error",
"jsx-quotes": "error",
@@ -88,16 +73,10 @@
}
],
"line-comment-position": "off",
"linebreak-style": [
"error",
"unix"
],
"linebreak-style": ["error", "unix"],
"lines-around-comment": "error",
"lines-around-directive": "error",
"lines-between-class-members": [
"error",
"never"
],
"lines-between-class-members": ["error", "never"],
"max-classes-per-file": "off",
"max-depth": "error",
"max-len": [
@@ -113,10 +92,7 @@
"max-params": "error",
"max-statements": "off",
"max-statements-per-line": "error",
"multiline-comment-style": [
"error",
"separate-lines"
],
"multiline-comment-style": ["error", "separate-lines"],
"new-cap": "error",
"new-parens": "error",
"newline-after-var": "off",
@@ -148,10 +124,7 @@
"no-implicit-globals": "error",
"no-implied-eval": "error",
"no-inline-comments": "off",
"no-inner-declarations": [
"error",
"functions"
],
"no-inner-declarations": ["error", "functions"],
"no-invalid-this": "error",
"no-iterator": "error",
"no-label-var": "error",
@@ -229,18 +202,12 @@
"no-with": "error",
"nonblock-statement-body-position": "error",
"object-curly-newline": "error",
"object-curly-spacing": [
"error",
"always"
],
"object-curly-spacing": ["error", "always"],
"object-property-newline": "error",
"object-shorthand": "error",
"one-var": "off",
"one-var-declaration-per-line": "error",
"operator-assignment": [
"error",
"always"
],
"operator-assignment": ["error", "always"],
"operator-linebreak": "error",
"padded-blocks": "off",
"padding-line-between-statements": "error",
@@ -257,10 +224,7 @@
"prefer-template": "off",
"quote-props": "off",
"quotes": "error",
"radix": [
"error",
"as-needed"
],
"radix": ["error", "as-needed"],
"require-atomic-updates": "error",
"require-await": "error",
"require-jsdoc": "off",
@@ -274,10 +238,7 @@
"before": false
}
],
"semi-style": [
"error",
"last"
],
"semi-style": ["error", "last"],
"sort-imports": "error",
"sort-keys": "error",
"sort-vars": "error",
@@ -286,33 +247,18 @@
"space-in-parens": "error",
"space-infix-ops": "error",
"space-unary-ops": "error",
"spaced-comment": [
"error",
"always"
],
"strict": [
"error",
"never"
],
"spaced-comment": ["error", "always"],
"strict": ["error", "never"],
"switch-colon-spacing": "error",
"symbol-description": "error",
"template-curly-spacing": [
"error",
"never"
],
"template-curly-spacing": ["error", "never"],
"template-tag-spacing": "error",
"unicode-bom": [
"error",
"never"
],
"unicode-bom": ["error", "never"],
"valid-jsdoc": "error",
"vars-on-top": "error",
"wrap-iife": "error",
"wrap-regex": "error",
"yield-star-spacing": "error",
"yoda": [
"error",
"never"
]
"yoda": ["error", "never"]
}
}

View File

@@ -15,21 +15,18 @@ __meta__ = {
anchor_right = 1.0
anchor_bottom = 1.0
__meta__ = {
}
[node name="VBoxContainer" type="VBoxContainer" parent="Panel"]
anchor_right = 1.0
anchor_bottom = 1.0
__meta__ = {
}
[node name="Connect" type="HBoxContainer" parent="Panel/VBoxContainer"]
margin_right = 1024.0
margin_bottom = 24.0
__meta__ = {
}
[node name="Host" type="LineEdit" parent="Panel/VBoxContainer/Connect"]
@@ -39,7 +36,6 @@ size_flags_horizontal = 3
text = "ws://localhost:8000/test/"
placeholder_text = "ws://my.server/path/"
__meta__ = {
}
[node name="Connect" type="Button" parent="Panel/VBoxContainer/Connect"]
@@ -49,7 +45,6 @@ margin_bottom = 24.0
toggle_mode = true
text = "Connect"
__meta__ = {
}
[node name="Settings" type="HBoxContainer" parent="Panel/VBoxContainer"]
@@ -57,14 +52,12 @@ margin_top = 28.0
margin_right = 1024.0
margin_bottom = 52.0
__meta__ = {
}
[node name="Mode" type="OptionButton" parent="Panel/VBoxContainer/Settings"]
margin_right = 41.0
margin_bottom = 24.0
__meta__ = {
}
[node name="Multiplayer" type="CheckBox" parent="Panel/VBoxContainer/Settings"]
@@ -74,7 +67,6 @@ margin_bottom = 24.0
pressed = true
text = "Multiplayer API"
__meta__ = {
}
[node name="Destination" type="OptionButton" parent="Panel/VBoxContainer/Settings"]
@@ -82,7 +74,6 @@ margin_left = 175.0
margin_right = 216.0
margin_bottom = 24.0
__meta__ = {
}
[node name="Send" type="HBoxContainer" parent="Panel/VBoxContainer"]
@@ -90,7 +81,6 @@ margin_top = 56.0
margin_right = 1024.0
margin_bottom = 80.0
__meta__ = {
}
[node name="LineEdit" type="LineEdit" parent="Panel/VBoxContainer/Send"]
@@ -99,7 +89,6 @@ margin_bottom = 24.0
size_flags_horizontal = 3
placeholder_text = "Enter some text to send..."
__meta__ = {
}
[node name="Send" type="Button" parent="Panel/VBoxContainer/Send"]
@@ -108,7 +97,6 @@ margin_right = 1024.0
margin_bottom = 24.0
text = "Send"
__meta__ = {
}
[node name="RichTextLabel" type="RichTextLabel" parent="Panel/VBoxContainer"]
@@ -117,13 +105,11 @@ margin_right = 1024.0
margin_bottom = 600.0
size_flags_vertical = 3
__meta__ = {
}
[node name="Client" type="Node" parent="."]
script = ExtResource( 2 )
__meta__ = {
}
[connection signal="toggled" from="Panel/VBoxContainer/Connect/Connect" to="." method="_on_Connect_toggled"]
[connection signal="item_selected" from="Panel/VBoxContainer/Settings/Mode" to="." method="_on_Mode_item_selected"]

View File

@@ -8,7 +8,6 @@ anchor_right = 1.0
anchor_bottom = 1.0
mouse_filter = 1
__meta__ = {
}
[node name="Box" type="HBoxContainer" parent="."]
@@ -16,7 +15,6 @@ anchor_right = 1.0
anchor_bottom = 1.0
custom_constants/separation = 20
__meta__ = {
}
[node name="ServerControl" parent="Box" instance=ExtResource( 1 )]
@@ -32,7 +30,6 @@ margin_right = 1024.0
margin_bottom = 600.0
size_flags_horizontal = 3
__meta__ = {
}
[node name="Client" parent="Box/VBoxContainer" instance=ExtResource( 2 )]

View File

@@ -10,7 +10,6 @@ config_version=4
_global_script_classes=[ ]
_global_script_class_icons={
}
[application]

View File

@@ -8,34 +8,29 @@ anchor_right = 1.0
anchor_bottom = 1.0
script = ExtResource( 1 )
__meta__ = {
}
[node name="Server" type="Node" parent="."]
script = ExtResource( 2 )
__meta__ = {
}
[node name="Panel" type="Panel" parent="."]
anchor_right = 1.0
anchor_bottom = 1.0
__meta__ = {
}
[node name="VBoxContainer" type="VBoxContainer" parent="Panel"]
anchor_right = 1.0
anchor_bottom = 1.0
__meta__ = {
}
[node name="HBoxContainer" type="HBoxContainer" parent="Panel/VBoxContainer"]
margin_right = 1024.0
margin_bottom = 24.0
__meta__ = {
}
[node name="Port" type="SpinBox" parent="Panel/VBoxContainer/HBoxContainer"]
@@ -45,7 +40,6 @@ min_value = 1.0
max_value = 65535.0
value = 8000.0
__meta__ = {
}
[node name="Listen" type="Button" parent="Panel/VBoxContainer/HBoxContainer"]
@@ -55,7 +49,6 @@ margin_bottom = 24.0
toggle_mode = true
text = "Listen"
__meta__ = {
}
[node name="HBoxContainer2" type="HBoxContainer" parent="Panel/VBoxContainer"]
@@ -63,14 +56,12 @@ margin_top = 28.0
margin_right = 1024.0
margin_bottom = 52.0
__meta__ = {
}
[node name="WriteMode" type="OptionButton" parent="Panel/VBoxContainer/HBoxContainer2"]
margin_right = 41.0
margin_bottom = 24.0
__meta__ = {
}
[node name="MPAPI" type="CheckBox" parent="Panel/VBoxContainer/HBoxContainer2"]
@@ -80,7 +71,6 @@ margin_bottom = 24.0
pressed = true
text = "Multiplayer API"
__meta__ = {
}
[node name="Destination" type="OptionButton" parent="Panel/VBoxContainer/HBoxContainer2"]
@@ -88,7 +78,6 @@ margin_left = 175.0
margin_right = 216.0
margin_bottom = 24.0
__meta__ = {
}
[node name="HBoxContainer3" type="HBoxContainer" parent="Panel/VBoxContainer"]
@@ -96,7 +85,6 @@ margin_top = 56.0
margin_right = 1024.0
margin_bottom = 80.0
__meta__ = {
}
[node name="LineEdit" type="LineEdit" parent="Panel/VBoxContainer/HBoxContainer3"]
@@ -104,7 +92,6 @@ margin_right = 977.0
margin_bottom = 24.0
size_flags_horizontal = 3
__meta__ = {
}
[node name="Send" type="Button" parent="Panel/VBoxContainer/HBoxContainer3"]
@@ -113,7 +100,6 @@ margin_right = 1024.0
margin_bottom = 24.0
text = "Send"
__meta__ = {
}
[node name="RichTextLabel" type="RichTextLabel" parent="Panel/VBoxContainer"]
@@ -122,7 +108,6 @@ margin_right = 1024.0
margin_bottom = 600.0
size_flags_vertical = 3
__meta__ = {
}
[connection signal="toggled" from="Panel/VBoxContainer/HBoxContainer/Listen" to="." method="_on_Listen_toggled"]
[connection signal="item_selected" from="Panel/VBoxContainer/HBoxContainer2/WriteMode" to="." method="_on_WriteMode_item_selected"]

View File

@@ -5,17 +5,14 @@
[node name="Main" type="Node"]
__meta__ = {
}
[node name="Server" type="Node" parent="."]
script = ExtResource( 1 )
__meta__ = {
}
[node name="Client" type="Node" parent="."]
script = ExtResource( 2 )
__meta__ = {
}

View File

@@ -10,7 +10,6 @@ config_version=4
_global_script_classes=[ ]
_global_script_class_icons={
}
[application]

View File

@@ -9,12 +9,10 @@ ground_horizon_color = Color( 0.482353, 0.788235, 0.952941, 1 )
ground_curve = 0.01
sun_energy = 16.0
__meta__ = {
}
[resource]
background_mode = 2
background_sky = SubResource( 1 )
__meta__ = {
}

View File

@@ -10,7 +10,6 @@ config_version=4
_global_script_classes=[ ]
_global_script_class_icons={
}
[application]

View File

@@ -17,7 +17,6 @@ __meta__ = {
anchor_right = 1.0
anchor_bottom = 1.0
__meta__ = {
}
[node name="RichTextLabel" type="RichTextLabel" parent="HBoxContainer"]
@@ -25,7 +24,6 @@ margin_right = 510.0
margin_bottom = 600.0
size_flags_horizontal = 3
__meta__ = {
}
[node name="VBoxContainer" type="VBoxContainer" parent="HBoxContainer"]
@@ -34,7 +32,6 @@ margin_right = 1024.0
margin_bottom = 600.0
size_flags_horizontal = 3
__meta__ = {
}
[node name="Label" type="Label" parent="HBoxContainer/VBoxContainer"]
@@ -42,7 +39,6 @@ margin_right = 510.0
margin_bottom = 14.0
text = "Players:"
__meta__ = {
}
[node name="ItemList" type="ItemList" parent="HBoxContainer/VBoxContainer"]
@@ -53,7 +49,6 @@ size_flags_horizontal = 3
size_flags_vertical = 3
same_column_width = true
__meta__ = {
}
[node name="Action" type="Button" parent="HBoxContainer/VBoxContainer"]
@@ -63,6 +58,5 @@ margin_bottom = 600.0
disabled = true
text = "Do Action!"
__meta__ = {
}
[connection signal="pressed" from="HBoxContainer/VBoxContainer/Action" to="." method="_on_Action_pressed"]

View File

@@ -8,14 +8,12 @@ anchor_right = 1.0
anchor_bottom = 1.0
script = ExtResource( 1 )
__meta__ = {
}
[node name="Panel" type="Panel" parent="."]
anchor_right = 1.0
anchor_bottom = 1.0
__meta__ = {
}
[node name="VBoxContainer" type="VBoxContainer" parent="Panel"]
@@ -26,14 +24,12 @@ margin_top = 20.0
margin_right = -20.0
margin_bottom = -20.0
__meta__ = {
}
[node name="HBoxContainer" type="HBoxContainer" parent="Panel/VBoxContainer"]
margin_right = 984.0
margin_bottom = 24.0
__meta__ = {
}
[node name="Label" type="Label" parent="Panel/VBoxContainer/HBoxContainer"]
@@ -43,7 +39,6 @@ margin_bottom = 19.0
size_flags_horizontal = 3
text = "Name"
__meta__ = {
}
[node name="NameEdit" type="LineEdit" parent="Panel/VBoxContainer/HBoxContainer"]
@@ -54,7 +49,6 @@ size_flags_horizontal = 3
size_flags_stretch_ratio = 2.0
text = "A Godot User"
__meta__ = {
}
[node name="HBoxContainer2" type="HBoxContainer" parent="Panel/VBoxContainer"]
@@ -62,7 +56,6 @@ margin_top = 28.0
margin_right = 984.0
margin_bottom = 52.0
__meta__ = {
}
[node name="HBoxContainer" type="HBoxContainer" parent="Panel/VBoxContainer/HBoxContainer2"]
@@ -70,7 +63,6 @@ margin_right = 326.0
margin_bottom = 24.0
size_flags_horizontal = 3
__meta__ = {
}
[node name="Host" type="Button" parent="Panel/VBoxContainer/HBoxContainer2/HBoxContainer"]
@@ -78,7 +70,6 @@ margin_right = 42.0
margin_bottom = 24.0
text = "Host"
__meta__ = {
}
[node name="Control" type="Control" parent="Panel/VBoxContainer/HBoxContainer2/HBoxContainer"]
@@ -87,7 +78,6 @@ margin_right = 241.0
margin_bottom = 24.0
size_flags_horizontal = 3
__meta__ = {
}
[node name="Connect" type="Button" parent="Panel/VBoxContainer/HBoxContainer2/HBoxContainer"]
@@ -96,7 +86,6 @@ margin_right = 326.0
margin_bottom = 24.0
text = "Connect to"
__meta__ = {
}
[node name="Disconnect" type="Button" parent="Panel/VBoxContainer/HBoxContainer2/HBoxContainer"]
@@ -106,7 +95,6 @@ margin_right = 152.0
margin_bottom = 24.0
text = "Disconnect"
__meta__ = {
}
[node name="Hostname" type="LineEdit" parent="Panel/VBoxContainer/HBoxContainer2"]
@@ -118,7 +106,6 @@ size_flags_stretch_ratio = 2.0
text = "localhost"
placeholder_text = "localhost"
__meta__ = {
}
[node name="Control" type="Control" parent="Panel/VBoxContainer"]
@@ -127,7 +114,6 @@ margin_right = 984.0
margin_bottom = 76.0
rect_min_size = Vector2( 0, 20 )
__meta__ = {
}
[node name="Game" parent="Panel/VBoxContainer" instance=ExtResource( 2 )]
@@ -148,7 +134,6 @@ margin_right = 200.0
margin_bottom = 100.0
dialog_text = "Connection closed"
__meta__ = {
}
[connection signal="pressed" from="Panel/VBoxContainer/HBoxContainer2/HBoxContainer/Host" to="." method="_on_Host_pressed"]
[connection signal="pressed" from="Panel/VBoxContainer/HBoxContainer2/HBoxContainer/Connect" to="." method="_on_Connect_pressed"]

View File

@@ -10,7 +10,6 @@ config_version=4
_global_script_classes=[ ]
_global_script_class_icons={
}
[application]

View File

@@ -10,7 +10,6 @@ config_version=4
_global_script_classes=[ ]
_global_script_class_icons={
}
[application]

View File

@@ -10,7 +10,6 @@ config_version=4
_global_script_classes=[ ]
_global_script_class_icons={
}
[application]

View File

@@ -10,7 +10,6 @@ config_version=4
_global_script_classes=[ ]
_global_script_class_icons={
}
[application]

View File

@@ -10,7 +10,6 @@ config_version=4
_global_script_classes=[ ]
_global_script_class_icons={
}
[application]

View File

@@ -10,7 +10,6 @@ config_version=4
_global_script_classes=[ ]
_global_script_class_icons={
}
[application]

View File

@@ -10,7 +10,6 @@ config_version=4
_global_script_classes=[ ]
_global_script_class_icons={
}
[application]

View File

@@ -10,7 +10,6 @@ config_version=4
_global_script_classes=[ ]
_global_script_class_icons={
}
[application]