-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from ben-kahl/ben-kahl-hitbox
Hitbox system implemented
- Loading branch information
Showing
28 changed files
with
1,995 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2016-2023 The Godot Engine community | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
1,349 changes: 1,349 additions & 0 deletions
1,349
CS361/CS361 Term Project/addons/godot-git-plugin/THIRDPARTY.md
Large diffs are not rendered by default.
Oops, something went wrong.
12 changes: 12 additions & 0 deletions
12
CS361/CS361 Term Project/addons/godot-git-plugin/git_plugin.gdextension
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
[configuration] | ||
|
||
entry_symbol = "git_plugin_init" | ||
compatibility_minimum = "4.1.0" | ||
|
||
[libraries] | ||
|
||
macos.editor = "macos/libgit_plugin.macos.editor.universal.dylib" | ||
windows.editor.x86_64 = "win64/libgit_plugin.windows.editor.x86_64.dll" | ||
linux.editor.x86_64 = "linux/libgit_plugin.linux.editor.x86_64.so" | ||
linux.editor.arm64 = "linux/libgit_plugin.linux.editor.arm64.so" | ||
linux.editor.rv64 = "" |
Binary file added
BIN
+11.4 MB
CS361/CS361 Term Project/addons/godot-git-plugin/linux/libgit_plugin.linux.editor.x86_64.so
Binary file not shown.
Binary file added
BIN
+16 MB
...361 Term Project/addons/godot-git-plugin/macos/libgit_plugin.macos.editor.universal.dylib
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[plugin] | ||
|
||
name="Godot Git Plugin" | ||
description="This plugin lets you interact with Git without leaving the Godot editor. More information can be found at https://github.com/godotengine/godot-git-plugin/wiki" | ||
author="twaritwaikar" | ||
version="v3.1.0" | ||
script="godot-git-plugin.gd" |
Binary file added
BIN
+1.86 MB
.../CS361 Term Project/addons/godot-git-plugin/win64/libgit_plugin.windows.editor.x86_64.dll
Binary file not shown.
Binary file added
BIN
+118 KB
.../CS361 Term Project/addons/godot-git-plugin/win64/libgit_plugin.windows.editor.x86_64.exp
Binary file not shown.
Binary file added
BIN
+218 KB
.../CS361 Term Project/addons/godot-git-plugin/win64/libgit_plugin.windows.editor.x86_64.lib
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
[gd_scene load_steps=3 format=3 uid="uid://dhjw00cpa1bg4"] | ||
|
||
[ext_resource type="Script" path="res://scripts/hitbox.gd" id="1_ojlg6"] | ||
|
||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_qoj7x"] | ||
|
||
[node name="Hitbox" type="Area2D"] | ||
script = ExtResource("1_ojlg6") | ||
|
||
[node name="HitboxShape" type="CollisionShape2D" parent="."] | ||
position = Vector2(75, 51) | ||
shape = SubResource("RectangleShape2D_qoj7x") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
[gd_scene load_steps=2 format=3 uid="uid://7hltlpg3n5t4"] | ||
|
||
[ext_resource type="Script" path="res://scripts/input_buffer.gd" id="1_kxenh"] | ||
|
||
[node name="input_buffer" type="Node"] | ||
script = ExtResource("1_kxenh") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
[gd_scene load_steps=10 format=3 uid="uid://nlvhjymubrgp"] | ||
|
||
[ext_resource type="Script" path="res://scripts/training.gd" id="1_alt73"] | ||
[ext_resource type="Texture2D" uid="uid://dmnmpgg22xinx" path="res://art/stage1Background.png" id="2_8qltu"] | ||
[ext_resource type="PackedScene" uid="uid://du6oabv526v8a" path="res://scenes/character1.tscn" id="3_rirq4"] | ||
[ext_resource type="Script" path="res://scripts/stage_cam.gd" id="4_0cw3g"] | ||
[ext_resource type="Script" path="res://scripts/health_bar_p1.gd" id="5_sgoq4"] | ||
[ext_resource type="Script" path="res://scripts/health_bar_p2.gd" id="6_yqfwc"] | ||
[ext_resource type="PackedScene" uid="uid://d0vit3ssobmxx" path="res://scenes/pause_menu.tscn" id="7_am2xm"] | ||
|
||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_ogvlw"] | ||
size = Vector2(3097, 8) | ||
|
||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_evgoj"] | ||
size = Vector2(60, 1094) | ||
|
||
[node name="Node" type="Node"] | ||
script = ExtResource("1_alt73") | ||
|
||
[node name="HealthReset" type="Timer" parent="."] | ||
wait_time = 2.0 | ||
one_shot = true | ||
|
||
[node name="RoundTimer" type="Timer" parent="."] | ||
|
||
[node name="ParallaxBackground" type="ParallaxBackground" parent="."] | ||
follow_viewport_enabled = true | ||
|
||
[node name="stage" type="Sprite2D" parent="ParallaxBackground"] | ||
position = Vector2(960, 540) | ||
texture = ExtResource("2_8qltu") | ||
metadata/_edit_group_ = true | ||
|
||
[node name="Bounds" type="StaticBody2D" parent="ParallaxBackground"] | ||
position = Vector2(-608, 540) | ||
collision_layer = 3 | ||
metadata/_edit_group_ = true | ||
|
||
[node name="Floor" type="CollisionShape2D" parent="ParallaxBackground/Bounds"] | ||
position = Vector2(1575, 540) | ||
shape = SubResource("RectangleShape2D_ogvlw") | ||
|
||
[node name="LeftWall" type="CollisionShape2D" parent="ParallaxBackground/Bounds"] | ||
position = Vector2(0, -4) | ||
shape = SubResource("RectangleShape2D_evgoj") | ||
|
||
[node name="RightWall" type="CollisionShape2D" parent="ParallaxBackground/Bounds"] | ||
position = Vector2(3125, -4) | ||
shape = SubResource("RectangleShape2D_evgoj") | ||
|
||
[node name="Player1StartPos" type="Marker2D" parent="."] | ||
position = Vector2(576, 831) | ||
|
||
[node name="Player2StartPos" type="Marker2D" parent="."] | ||
position = Vector2(1300, 831) | ||
|
||
[node name="Character1" parent="." instance=ExtResource("3_rirq4")] | ||
|
||
[node name="Character2" parent="." instance=ExtResource("3_rirq4")] | ||
|
||
[node name="Camera2D" type="Camera2D" parent="."] | ||
position = Vector2(960, 536) | ||
limit_left = -580 | ||
limit_top = 0 | ||
limit_right = 2500 | ||
limit_bottom = 540 | ||
drag_left_margin = 0.0 | ||
drag_right_margin = 0.0 | ||
script = ExtResource("4_0cw3g") | ||
metadata/_edit_group_ = true | ||
|
||
[node name="HUD" type="CanvasLayer" parent="."] | ||
|
||
[node name="HealthBarP1" type="ProgressBar" parent="HUD" node_paths=PackedStringArray("player1")] | ||
offset_left = 91.0 | ||
offset_right = 855.0 | ||
offset_bottom = 65.0 | ||
show_percentage = false | ||
script = ExtResource("5_sgoq4") | ||
player1 = NodePath("../../Character1") | ||
metadata/_edit_group_ = true | ||
|
||
[node name="HealthBarP2" type="ProgressBar" parent="HUD" node_paths=PackedStringArray("player2")] | ||
offset_left = 1062.0 | ||
offset_right = 1826.0 | ||
offset_bottom = 65.0 | ||
show_percentage = false | ||
script = ExtResource("6_yqfwc") | ||
player2 = NodePath("../../Character2") | ||
metadata/_edit_group_ = true | ||
|
||
[node name="RoundTime" type="Label" parent="HUD"] | ||
offset_left = 896.0 | ||
offset_top = -1.0 | ||
offset_right = 1023.0 | ||
offset_bottom = 55.0 | ||
theme_override_font_sizes/font_size = 50 | ||
text = "0" | ||
horizontal_alignment = 1 | ||
vertical_alignment = 1 | ||
metadata/_edit_group_ = true | ||
|
||
[node name="PauseMenu" parent="." instance=ExtResource("7_am2xm")] | ||
visible = false | ||
|
||
[connection signal="timeout" from="HealthReset" to="." method="_on_health_reset_timeout"] | ||
[connection signal="health_changed" from="Character1" to="." method="_on_character_1_health_changed"] | ||
[connection signal="health_changed" from="Character2" to="HUD/HealthBarP2" method="_on_character_2_health_changed"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.