started reimplementing navigation, turns
|
Before Width: | Height: | Size: 618 B After Width: | Height: | Size: 618 B |
@ -3,15 +3,15 @@
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://7lxq1t8by05c"
|
||||
path="res://.godot/imported/black_big.png-bc0785a175a569ea521a1d5917f8d1a0.ctex"
|
||||
path="res://.godot/imported/black_big.png-2ec8e9865bdff1ba236e38d3298a8a30.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/players/black_big.png"
|
||||
dest_files=["res://.godot/imported/black_big.png-bc0785a175a569ea521a1d5917f8d1a0.ctex"]
|
||||
source_file="res://assets/players/board-game/black_big.png"
|
||||
dest_files=["res://.godot/imported/black_big.png-2ec8e9865bdff1ba236e38d3298a8a30.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
|
Before Width: | Height: | Size: 557 B After Width: | Height: | Size: 557 B |
@ -3,15 +3,15 @@
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://bbf8h76a5x7gf"
|
||||
path="res://.godot/imported/black_guard.png-2b88a92123dd96bc74a7170d096623f7.ctex"
|
||||
path="res://.godot/imported/black_guard.png-ec5683238bc6e378a2f0b9422ef68467.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/players/black_guard.png"
|
||||
dest_files=["res://.godot/imported/black_guard.png-2b88a92123dd96bc74a7170d096623f7.ctex"]
|
||||
source_file="res://assets/players/board-game/black_guard.png"
|
||||
dest_files=["res://.godot/imported/black_guard.png-ec5683238bc6e378a2f0b9422ef68467.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
|
Before Width: | Height: | Size: 694 B After Width: | Height: | Size: 694 B |
@ -3,15 +3,15 @@
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://b4y4pyxkutl0b"
|
||||
path="res://.godot/imported/black_wing.png-92e0eea42bb64faaaea22d6eddb0f43b.ctex"
|
||||
path="res://.godot/imported/black_wing.png-fde76488f5accd6c851c3c1110a822c7.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/players/black_wing.png"
|
||||
dest_files=["res://.godot/imported/black_wing.png-92e0eea42bb64faaaea22d6eddb0f43b.ctex"]
|
||||
source_file="res://assets/players/board-game/black_wing.png"
|
||||
dest_files=["res://.godot/imported/black_wing.png-fde76488f5accd6c851c3c1110a822c7.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
|
Before Width: | Height: | Size: 617 B After Width: | Height: | Size: 617 B |
@ -3,15 +3,15 @@
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://df7cknvvngtij"
|
||||
path="res://.godot/imported/blue_big.png-1a99892b0c0694bf7751d65bdafc6751.ctex"
|
||||
path="res://.godot/imported/blue_big.png-f64f41fb0e6fd9c395dcda818c91783a.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/players/blue_big.png"
|
||||
dest_files=["res://.godot/imported/blue_big.png-1a99892b0c0694bf7751d65bdafc6751.ctex"]
|
||||
source_file="res://assets/players/board-game/blue_big.png"
|
||||
dest_files=["res://.godot/imported/blue_big.png-f64f41fb0e6fd9c395dcda818c91783a.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
|
Before Width: | Height: | Size: 546 B After Width: | Height: | Size: 546 B |
@ -3,15 +3,15 @@
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://46vgqxp2imyw"
|
||||
path="res://.godot/imported/blue_guard.png-fe4d15d954f5aaeee4c3a6df594e6c24.ctex"
|
||||
path="res://.godot/imported/blue_guard.png-6519286b037e596058663ee4e6794e95.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/players/blue_guard.png"
|
||||
dest_files=["res://.godot/imported/blue_guard.png-fe4d15d954f5aaeee4c3a6df594e6c24.ctex"]
|
||||
source_file="res://assets/players/board-game/blue_guard.png"
|
||||
dest_files=["res://.godot/imported/blue_guard.png-6519286b037e596058663ee4e6794e95.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
|
Before Width: | Height: | Size: 687 B After Width: | Height: | Size: 687 B |
@ -3,15 +3,15 @@
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://dl54l4wvub6ro"
|
||||
path="res://.godot/imported/blue_wing.png-5b73293b9711f5422e2758b1992d1ca4.ctex"
|
||||
path="res://.godot/imported/blue_wing.png-2ce5162aa4913774a9bf3df611adf671.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/players/blue_wing.png"
|
||||
dest_files=["res://.godot/imported/blue_wing.png-5b73293b9711f5422e2758b1992d1ca4.ctex"]
|
||||
source_file="res://assets/players/board-game/blue_wing.png"
|
||||
dest_files=["res://.godot/imported/blue_wing.png-2ce5162aa4913774a9bf3df611adf671.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
|
Before Width: | Height: | Size: 694 B After Width: | Height: | Size: 694 B |
@ -3,15 +3,15 @@
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://omnjvnfglrfl"
|
||||
path="res://.godot/imported/green_wing.png-896b20d265cee6b310c52b4e882fe2a9.ctex"
|
||||
path="res://.godot/imported/green_wing.png-bc575ba5dd0ec558d97210e98f69df16.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/players/green_wing.png"
|
||||
dest_files=["res://.godot/imported/green_wing.png-896b20d265cee6b310c52b4e882fe2a9.ctex"]
|
||||
source_file="res://assets/players/board-game/green_wing.png"
|
||||
dest_files=["res://.godot/imported/green_wing.png-bc575ba5dd0ec558d97210e98f69df16.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
|
Before Width: | Height: | Size: 694 B After Width: | Height: | Size: 694 B |
@ -3,15 +3,15 @@
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://budcnhftwtkjc"
|
||||
path="res://.godot/imported/purple_wing.png-a710d4c2d590a30e952b468d4aa8400e.ctex"
|
||||
path="res://.godot/imported/purple_wing.png-90ed75705c02e402de2fafdf4ab401a1.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/players/purple_wing.png"
|
||||
dest_files=["res://.godot/imported/purple_wing.png-a710d4c2d590a30e952b468d4aa8400e.ctex"]
|
||||
source_file="res://assets/players/board-game/purple_wing.png"
|
||||
dest_files=["res://.godot/imported/purple_wing.png-90ed75705c02e402de2fafdf4ab401a1.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
|
Before Width: | Height: | Size: 632 B After Width: | Height: | Size: 632 B |
@ -3,15 +3,15 @@
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://w10nqq5ng8n5"
|
||||
path="res://.godot/imported/red_big.png-14b67fd2781cab4f920bbaff9afeafde.ctex"
|
||||
path="res://.godot/imported/red_big.png-337019d163100733bf3ed5fa1bc055a2.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/players/red_big.png"
|
||||
dest_files=["res://.godot/imported/red_big.png-14b67fd2781cab4f920bbaff9afeafde.ctex"]
|
||||
source_file="res://assets/players/board-game/red_big.png"
|
||||
dest_files=["res://.godot/imported/red_big.png-337019d163100733bf3ed5fa1bc055a2.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
|
Before Width: | Height: | Size: 550 B After Width: | Height: | Size: 550 B |
@ -3,15 +3,15 @@
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://cn2xfwvejclvo"
|
||||
path="res://.godot/imported/red_guard.png-7c53a2c883f8413f0110cd68e3b728ba.ctex"
|
||||
path="res://.godot/imported/red_guard.png-54f93fba8efb1ce20d08148ec7db6fc7.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/players/red_guard.png"
|
||||
dest_files=["res://.godot/imported/red_guard.png-7c53a2c883f8413f0110cd68e3b728ba.ctex"]
|
||||
source_file="res://assets/players/board-game/red_guard.png"
|
||||
dest_files=["res://.godot/imported/red_guard.png-54f93fba8efb1ce20d08148ec7db6fc7.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
|
Before Width: | Height: | Size: 690 B After Width: | Height: | Size: 690 B |
@ -3,15 +3,15 @@
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://cdisx65vqrn21"
|
||||
path="res://.godot/imported/red_wing.png-0fd782160f7dc9ea011841399432ef89.ctex"
|
||||
path="res://.godot/imported/red_wing.png-3be253b3c24e43ceb2fe19912874a147.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/players/red_wing.png"
|
||||
dest_files=["res://.godot/imported/red_wing.png-0fd782160f7dc9ea011841399432ef89.ctex"]
|
||||
source_file="res://assets/players/board-game/red_wing.png"
|
||||
dest_files=["res://.godot/imported/red_wing.png-3be253b3c24e43ceb2fe19912874a147.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
|
Before Width: | Height: | Size: 675 B After Width: | Height: | Size: 675 B |
@ -3,15 +3,15 @@
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://du15wln6cn6l7"
|
||||
path="res://.godot/imported/white_wing.png-884a227b7d94f526b9ce30cf9901b9fb.ctex"
|
||||
path="res://.godot/imported/white_wing.png-e4eb4bd7d36e86d452ab6f2ff216c80d.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/players/white_wing.png"
|
||||
dest_files=["res://.godot/imported/white_wing.png-884a227b7d94f526b9ce30cf9901b9fb.ctex"]
|
||||
source_file="res://assets/players/board-game/white_wing.png"
|
||||
dest_files=["res://.godot/imported/white_wing.png-e4eb4bd7d36e86d452ab6f2ff216c80d.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
|
Before Width: | Height: | Size: 694 B After Width: | Height: | Size: 694 B |
@ -3,15 +3,15 @@
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://70xbku4n7tn"
|
||||
path="res://.godot/imported/yellow_wing.png-92a70e191e61e810fb2fefe674d8a904.ctex"
|
||||
path="res://.godot/imported/yellow_wing.png-e7fc106d035637b79c82ea903ac01bbf.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/players/yellow_wing.png"
|
||||
dest_files=["res://.godot/imported/yellow_wing.png-92a70e191e61e810fb2fefe674d8a904.ctex"]
|
||||
source_file="res://assets/players/board-game/yellow_wing.png"
|
||||
dest_files=["res://.godot/imported/yellow_wing.png-e7fc106d035637b79c82ea903ac01bbf.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
BIN
assets/players/top-down/blue-45.png
Normal file
|
After Width: | Height: | Size: 2.2 KiB |
40
assets/players/top-down/blue-45.png.import
Normal file
@ -0,0 +1,40 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://btwb84mew7whb"
|
||||
path="res://.godot/imported/blue-45.png-65ee3e8fae4d2bd0b45247471e278858.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/players/top-down/blue-45.png"
|
||||
dest_files=["res://.godot/imported/blue-45.png-65ee3e8fae4d2bd0b45247471e278858.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/uastc_level=0
|
||||
compress/rdo_quality_loss=0.0
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/channel_remap/red=0
|
||||
process/channel_remap/green=1
|
||||
process/channel_remap/blue=2
|
||||
process/channel_remap/alpha=3
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=1
|
||||
BIN
assets/players/top-down/blue-50.png
Normal file
|
After Width: | Height: | Size: 2.5 KiB |
40
assets/players/top-down/blue-50.png.import
Normal file
@ -0,0 +1,40 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://cf8i6dbhws3ig"
|
||||
path="res://.godot/imported/blue-50.png-f5a249425b255007108923d2bf8a5dd6.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/players/top-down/blue-50.png"
|
||||
dest_files=["res://.godot/imported/blue-50.png-f5a249425b255007108923d2bf8a5dd6.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/uastc_level=0
|
||||
compress/rdo_quality_loss=0.0
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/channel_remap/red=0
|
||||
process/channel_remap/green=1
|
||||
process/channel_remap/blue=2
|
||||
process/channel_remap/alpha=3
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=1
|
||||
BIN
assets/players/top-down/blue-55.png
Normal file
|
After Width: | Height: | Size: 2.8 KiB |
40
assets/players/top-down/blue-55.png.import
Normal file
@ -0,0 +1,40 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://b8tyjo85davp4"
|
||||
path="res://.godot/imported/blue-55.png-9d1aee3d3412dc1971fc26f83b51432f.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/players/top-down/blue-55.png"
|
||||
dest_files=["res://.godot/imported/blue-55.png-9d1aee3d3412dc1971fc26f83b51432f.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/uastc_level=0
|
||||
compress/rdo_quality_loss=0.0
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/channel_remap/red=0
|
||||
process/channel_remap/green=1
|
||||
process/channel_remap/blue=2
|
||||
process/channel_remap/alpha=3
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=1
|
||||
BIN
assets/players/top-down/green-45.png
Normal file
|
After Width: | Height: | Size: 2.3 KiB |
40
assets/players/top-down/green-45.png.import
Normal file
@ -0,0 +1,40 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://d2kdwnb14lfvr"
|
||||
path="res://.godot/imported/green-45.png-fc343369049cbd41595057255b295abe.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/players/top-down/green-45.png"
|
||||
dest_files=["res://.godot/imported/green-45.png-fc343369049cbd41595057255b295abe.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/uastc_level=0
|
||||
compress/rdo_quality_loss=0.0
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/channel_remap/red=0
|
||||
process/channel_remap/green=1
|
||||
process/channel_remap/blue=2
|
||||
process/channel_remap/alpha=3
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=1
|
||||
BIN
assets/players/top-down/green-50-2.png
Normal file
|
After Width: | Height: | Size: 2.5 KiB |
40
assets/players/top-down/green-50-2.png.import
Normal file
@ -0,0 +1,40 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://ggtmt7nq08yc"
|
||||
path="res://.godot/imported/green-50-2.png-64141041970d7e895d1641b3200803b0.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/players/top-down/green-50-2.png"
|
||||
dest_files=["res://.godot/imported/green-50-2.png-64141041970d7e895d1641b3200803b0.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/uastc_level=0
|
||||
compress/rdo_quality_loss=0.0
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/channel_remap/red=0
|
||||
process/channel_remap/green=1
|
||||
process/channel_remap/blue=2
|
||||
process/channel_remap/alpha=3
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=1
|
||||
BIN
assets/players/top-down/green-50.png
Normal file
|
After Width: | Height: | Size: 2.5 KiB |
40
assets/players/top-down/green-50.png.import
Normal file
@ -0,0 +1,40 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://c8gy0wpvq827a"
|
||||
path="res://.godot/imported/green-50.png-cf97f8c8542b653e1f5b5f8a2bd8a155.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/players/top-down/green-50.png"
|
||||
dest_files=["res://.godot/imported/green-50.png-cf97f8c8542b653e1f5b5f8a2bd8a155.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/uastc_level=0
|
||||
compress/rdo_quality_loss=0.0
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/channel_remap/red=0
|
||||
process/channel_remap/green=1
|
||||
process/channel_remap/blue=2
|
||||
process/channel_remap/alpha=3
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=1
|
||||
BIN
assets/players/top-down/orange-50.png
Normal file
|
After Width: | Height: | Size: 2.5 KiB |
40
assets/players/top-down/orange-50.png.import
Normal file
@ -0,0 +1,40 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://nwm6exs2vod6"
|
||||
path="res://.godot/imported/orange-50.png-9af52334f339f07dbf481a8fb1691849.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/players/top-down/orange-50.png"
|
||||
dest_files=["res://.godot/imported/orange-50.png-9af52334f339f07dbf481a8fb1691849.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/uastc_level=0
|
||||
compress/rdo_quality_loss=0.0
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/channel_remap/red=0
|
||||
process/channel_remap/green=1
|
||||
process/channel_remap/blue=2
|
||||
process/channel_remap/alpha=3
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=1
|
||||
BIN
assets/players/top-down/orange-55.png
Normal file
|
After Width: | Height: | Size: 2.4 KiB |
40
assets/players/top-down/orange-55.png.import
Normal file
@ -0,0 +1,40 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://qv4wqsspmwy6"
|
||||
path="res://.godot/imported/orange-55.png-63ed239df2a725c8733bcba0a9f0fb99.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/players/top-down/orange-55.png"
|
||||
dest_files=["res://.godot/imported/orange-55.png-63ed239df2a725c8733bcba0a9f0fb99.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/uastc_level=0
|
||||
compress/rdo_quality_loss=0.0
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/channel_remap/red=0
|
||||
process/channel_remap/green=1
|
||||
process/channel_remap/blue=2
|
||||
process/channel_remap/alpha=3
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=1
|
||||
BIN
assets/players/top-down/white-45-2.png
Normal file
|
After Width: | Height: | Size: 2.3 KiB |
40
assets/players/top-down/white-45-2.png.import
Normal file
@ -0,0 +1,40 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://cio18xfkts8oa"
|
||||
path="res://.godot/imported/white-45-2.png-4925a5bc72f479c288ed5cc35c4eead2.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/players/top-down/white-45-2.png"
|
||||
dest_files=["res://.godot/imported/white-45-2.png-4925a5bc72f479c288ed5cc35c4eead2.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/uastc_level=0
|
||||
compress/rdo_quality_loss=0.0
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/channel_remap/red=0
|
||||
process/channel_remap/green=1
|
||||
process/channel_remap/blue=2
|
||||
process/channel_remap/alpha=3
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=1
|
||||
BIN
assets/players/top-down/white-45.png
Normal file
|
After Width: | Height: | Size: 2.2 KiB |
40
assets/players/top-down/white-45.png.import
Normal file
@ -0,0 +1,40 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://tkedilavofw5"
|
||||
path="res://.godot/imported/white-45.png-afbbe7b2070c24de30948b798cd3a5d3.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/players/top-down/white-45.png"
|
||||
dest_files=["res://.godot/imported/white-45.png-afbbe7b2070c24de30948b798cd3a5d3.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/uastc_level=0
|
||||
compress/rdo_quality_loss=0.0
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/channel_remap/red=0
|
||||
process/channel_remap/green=1
|
||||
process/channel_remap/blue=2
|
||||
process/channel_remap/alpha=3
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=1
|
||||
BIN
assets/players/top-down/white-50.png
Normal file
|
After Width: | Height: | Size: 2.5 KiB |
40
assets/players/top-down/white-50.png.import
Normal file
@ -0,0 +1,40 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://u61sdmx4pl35"
|
||||
path="res://.godot/imported/white-50.png-ddcb6e84becb74bec682d96c3421b184.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/players/top-down/white-50.png"
|
||||
dest_files=["res://.godot/imported/white-50.png-ddcb6e84becb74bec682d96c3421b184.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/uastc_level=0
|
||||
compress/rdo_quality_loss=0.0
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/channel_remap/red=0
|
||||
process/channel_remap/green=1
|
||||
process/channel_remap/blue=2
|
||||
process/channel_remap/alpha=3
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=1
|
||||
64
game.tscn
@ -2,28 +2,17 @@
|
||||
|
||||
[ext_resource type="Script" uid="uid://0xvlu81d8a01" path="res://scripts/game_manager.gd" id="1_7jktm"]
|
||||
[ext_resource type="PackedScene" uid="uid://cxbu51aedxg3c" path="res://court.tscn" id="1_e2o6t"]
|
||||
[ext_resource type="PackedScene" uid="uid://boqs7k6ia532h" path="res://player.tscn" id="2_feb5d"]
|
||||
[ext_resource type="PackedScene" uid="uid://i0ijmmchb3s1" path="res://hoop.tscn" id="4_215e1"]
|
||||
[ext_resource type="Script" uid="uid://c7dxj0ifl687s" path="res://scripts/custom resources/team_attributes.gd" id="4_mfdv2"]
|
||||
[ext_resource type="PackedScene" uid="uid://b7js4xq85ajf7" path="res://teams/orange_team.tscn" id="6_eow3j"]
|
||||
[ext_resource type="PackedScene" uid="uid://dndfw477wwjog" path="res://teams/blue_team.tscn" id="6_j5wjh"]
|
||||
[ext_resource type="PackedScene" uid="uid://cbqaj6trvqat0" path="res://ball.tscn" id="6_ryrav"]
|
||||
[ext_resource type="PackedScene" uid="uid://cfq463kejcp2m" path="res://team.tscn" id="11_mfdv2"]
|
||||
|
||||
[sub_resource type="Resource" id="Resource_e8heu"]
|
||||
script = ExtResource("4_mfdv2")
|
||||
team_name = "Royals"
|
||||
team_color = Color(1, 0, 0, 1)
|
||||
metadata/_custom_type_script = "uid://c7dxj0ifl687s"
|
||||
|
||||
[sub_resource type="Resource" id="Resource_lc2xo"]
|
||||
script = ExtResource("4_mfdv2")
|
||||
team_name = "Blue Devils"
|
||||
team_color = Color(0, 0, 1, 1)
|
||||
metadata/_custom_type_script = "uid://c7dxj0ifl687s"
|
||||
|
||||
[node name="Game" type="Node2D" unique_id=980666470 node_paths=PackedStringArray("ball", "court")]
|
||||
[node name="Game" type="Node2D" unique_id=980666470 node_paths=PackedStringArray("ball", "court", "home_team", "away_team")]
|
||||
script = ExtResource("1_7jktm")
|
||||
ball = NodePath("Ball")
|
||||
court = NodePath("Court")
|
||||
home_team = NodePath("OrangeTeam")
|
||||
away_team = NodePath("BlueTeam")
|
||||
|
||||
[node name="Court" parent="." unique_id=1870443472 instance=ExtResource("1_e2o6t")]
|
||||
|
||||
@ -33,26 +22,37 @@ position = Vector2(792, 838)
|
||||
[node name="Hoop" parent="." unique_id=567327541 instance=ExtResource("4_215e1")]
|
||||
position = Vector2(755, 120)
|
||||
|
||||
[node name="RedTeam" parent="." unique_id=1449767365 instance=ExtResource("11_mfdv2")]
|
||||
attributes = SubResource("Resource_e8heu")
|
||||
[node name="OrangeTeam" parent="." unique_id=1449767365 instance=ExtResource("6_eow3j")]
|
||||
|
||||
[node name="Red1" parent="RedTeam" unique_id=1614241571 instance=ExtResource("2_feb5d")]
|
||||
position = Vector2(778, 858)
|
||||
[node name="Orange1" parent="OrangeTeam" index="0" unique_id=1267043713 groups=["players"]]
|
||||
position = Vector2(757, 883)
|
||||
rotation = 0.04253722
|
||||
|
||||
[node name="Red2" parent="RedTeam" unique_id=812999974 instance=ExtResource("2_feb5d")]
|
||||
position = Vector2(164, 571)
|
||||
[node name="Orange2" parent="OrangeTeam" index="1" unique_id=1623179654 groups=["players"]]
|
||||
position = Vector2(209, 686)
|
||||
rotation = 0.9112143
|
||||
|
||||
[node name="Red3" parent="RedTeam" unique_id=142493116 instance=ExtResource("2_feb5d")]
|
||||
position = Vector2(1358, 484)
|
||||
[node name="Orange3" parent="OrangeTeam" index="2" unique_id=964363928 groups=["players"]]
|
||||
position = Vector2(802, 461)
|
||||
rotation = 3.0469995
|
||||
|
||||
[node name="BlueTeam" parent="." unique_id=1689836688 instance=ExtResource("11_mfdv2")]
|
||||
attributes = SubResource("Resource_lc2xo")
|
||||
[node name="BlueTeam" parent="." unique_id=1163500769 instance=ExtResource("6_j5wjh")]
|
||||
|
||||
[node name="Blue1" parent="BlueTeam" unique_id=1267043713 instance=ExtResource("2_feb5d")]
|
||||
position = Vector2(770, 758)
|
||||
[node name="Blue1" parent="BlueTeam" index="0" unique_id=1267043713 groups=["players"]]
|
||||
position = Vector2(715, 741)
|
||||
rotation = 2.8801954
|
||||
|
||||
[node name="Blue2" parent="BlueTeam" unique_id=1850933619 instance=ExtResource("2_feb5d")]
|
||||
position = Vector2(348, 489)
|
||||
[node name="Blue2" parent="BlueTeam" index="1" unique_id=2032874578 groups=["players"]]
|
||||
position = Vector2(402, 571)
|
||||
rotation = -1.8595756
|
||||
|
||||
[node name="Blue3" parent="BlueTeam" unique_id=75794271 instance=ExtResource("2_feb5d")]
|
||||
position = Vector2(1209, 468)
|
||||
[node name="Blue3" parent="BlueTeam" index="2" unique_id=668950051 groups=["players"]]
|
||||
position = Vector2(785, 377)
|
||||
rotation = 2.8848953
|
||||
|
||||
[node name="GameCamera" type="Camera2D" parent="." unique_id=1992083128]
|
||||
position = Vector2(760, 873)
|
||||
zoom = Vector2(1.5, 1.5)
|
||||
|
||||
[editable path="OrangeTeam"]
|
||||
[editable path="BlueTeam"]
|
||||
|
||||
59
player.tscn
@ -2,30 +2,63 @@
|
||||
|
||||
[ext_resource type="Script" uid="uid://bs8r5rqnt33rf" path="res://scripts/player.gd" id="1_onrkg"]
|
||||
[ext_resource type="Texture2D" uid="uid://ctakygdw82fs2" path="res://assets/players/top-down/orange-45.png" id="2_onrkg"]
|
||||
[ext_resource type="PackedScene" uid="uid://nbb3fdh08hbk" path="res://player_label.tscn" id="3_i3pqv"]
|
||||
|
||||
[sub_resource type="Gradient" id="Gradient_i3pqv"]
|
||||
offsets = PackedFloat32Array(0, 0.74882627)
|
||||
colors = PackedColorArray(1, 1, 1, 0.5019608, 0, 0, 0, 0)
|
||||
|
||||
[sub_resource type="GradientTexture2D" id="GradientTexture2D_hqtel"]
|
||||
gradient = SubResource("Gradient_i3pqv")
|
||||
fill = 1
|
||||
fill_from = Vector2(0.5, 0.5)
|
||||
|
||||
[sub_resource type="Shortcut" id="Shortcut_hqtel"]
|
||||
|
||||
[node name="Player" type="Node2D" unique_id=1267043713]
|
||||
script = ExtResource("1_onrkg")
|
||||
|
||||
[node name="PlayerSprite" type="Sprite2D" parent="." unique_id=1692351563]
|
||||
texture_filter = 1
|
||||
rotation = -1.5707964
|
||||
texture = ExtResource("2_onrkg")
|
||||
|
||||
[node name="PlayerCamera" type="Camera2D" parent="." unique_id=1839930911]
|
||||
zoom = Vector2(1.5, 1.5)
|
||||
editor_draw_screen = false
|
||||
|
||||
[node name="PlayerNav" type="NavigationAgent2D" parent="." unique_id=1205813043]
|
||||
avoidance_enabled = true
|
||||
radius = 50.0
|
||||
debug_enabled = true
|
||||
|
||||
[node name="PlayerNameLabel" type="Label" parent="." unique_id=1663612244]
|
||||
anchors_preset = 7
|
||||
anchor_left = 0.5
|
||||
anchor_top = 1.0
|
||||
anchor_right = 0.5
|
||||
[node name="NavTarget" type="Sprite2D" parent="." unique_id=1224616450]
|
||||
z_index = 10
|
||||
texture = SubResource("GradientTexture2D_hqtel")
|
||||
|
||||
[node name="PlayerLabel" parent="." unique_id=1117115485 instance=ExtResource("3_i3pqv")]
|
||||
offset_left = -60.0
|
||||
offset_top = 30.0
|
||||
offset_right = -60.0
|
||||
offset_bottom = 30.0
|
||||
|
||||
[node name="PlayerUI" type="CanvasLayer" parent="." unique_id=742234296]
|
||||
|
||||
[node name="CenterContainer" type="CenterContainer" parent="PlayerUI" unique_id=964838525]
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_left = -48.0
|
||||
offset_top = 16.0
|
||||
offset_right = 47.0
|
||||
offset_bottom = 39.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 0
|
||||
text = "PlayerName"
|
||||
horizontal_alignment = 1
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="PlayerUI/CenterContainer" unique_id=978181265]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="Spacer" type="Control" parent="PlayerUI/CenterContainer/VBoxContainer" unique_id=1958092640]
|
||||
custom_minimum_size = Vector2(0, 300)
|
||||
layout_mode = 2
|
||||
|
||||
[node name="EndTurnButton" type="Button" parent="PlayerUI/CenterContainer/VBoxContainer" unique_id=1003182030]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
shortcut = SubResource("Shortcut_hqtel")
|
||||
text = "End Turn (E)"
|
||||
|
||||
37
player_label.tscn
Normal file
@ -0,0 +1,37 @@
|
||||
[gd_scene format=3 uid="uid://nbb3fdh08hbk"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cc7dbnwkcctci" path="res://scripts/player_label.gd" id="1_lwipk"]
|
||||
|
||||
[node name="PlayerLabel" type="Control" unique_id=1117115485]
|
||||
top_level = true
|
||||
layout_mode = 3
|
||||
anchors_preset = 0
|
||||
offset_right = 40.0
|
||||
offset_bottom = 40.0
|
||||
script = ExtResource("1_lwipk")
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="." unique_id=2096050823]
|
||||
custom_minimum_size = Vector2(120, 60)
|
||||
layout_mode = 0
|
||||
offset_right = 40.0
|
||||
offset_bottom = 40.0
|
||||
|
||||
[node name="NameLabel" type="Label" parent="VBoxContainer" unique_id=1410027998]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 6
|
||||
text = "PlayerName"
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="NumberLabel" type="Label" parent="VBoxContainer" unique_id=2085481976]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 6
|
||||
text = "#00"
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="PositionLabel" type="Label" parent="VBoxContainer" unique_id=1470062843]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
text = "Position"
|
||||
horizontal_alignment = 1
|
||||
@ -15,11 +15,23 @@ run/main_scene="uid://bhn3vm462n1rv"
|
||||
config/features=PackedStringArray("4.6", "Forward Plus")
|
||||
config/icon="uid://eyvap3pllv"
|
||||
|
||||
[autoload]
|
||||
|
||||
Globals="*uid://bjvmd2grgcjl1"
|
||||
|
||||
[display]
|
||||
|
||||
window/size/viewport_width=1920
|
||||
window/size/viewport_height=1080
|
||||
|
||||
[input]
|
||||
|
||||
end_turn={
|
||||
"deadzone": 0.2,
|
||||
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":69,"key_label":0,"unicode":101,"location":0,"echo":false,"script":null)
|
||||
]
|
||||
}
|
||||
|
||||
[physics]
|
||||
|
||||
3d/physics_engine="Jolt Physics"
|
||||
|
||||
7
scripts/autoloads/globals.gd
Normal file
@ -0,0 +1,7 @@
|
||||
extends Node
|
||||
|
||||
enum PlayerPosition {
|
||||
Guard,
|
||||
Wing,
|
||||
Big,
|
||||
}
|
||||
1
scripts/autoloads/globals.gd.uid
Normal file
@ -0,0 +1 @@
|
||||
uid://bjvmd2grgcjl1
|
||||
@ -1,18 +1,12 @@
|
||||
class_name PlayerAttributes
|
||||
extends Resource
|
||||
|
||||
@export_category("Basics")
|
||||
@export_group("Texture")
|
||||
@export var player_texture: Texture2D
|
||||
@export_group("Basics")
|
||||
@export var player_name: String
|
||||
@export_range(0.0, 99.0, 1.0, "prefer_slider") var player_number: int
|
||||
@export var player_position: PlayerPosition
|
||||
@export_category("Texture")
|
||||
@export var player_texture: Texture2D
|
||||
@export_category("Abilities")
|
||||
@export var player_position: Globals.PlayerPosition
|
||||
@export_group("Abilities")
|
||||
@export var speed: float
|
||||
|
||||
## The court positions available
|
||||
enum PlayerPosition {
|
||||
Guard,
|
||||
Wing,
|
||||
Big,
|
||||
}
|
||||
@export var reflexes: float
|
||||
|
||||
@ -4,4 +4,34 @@ extends Node2D
|
||||
|
||||
@export var ball: Ball
|
||||
@export var court: Court
|
||||
@export var players: Array[Player]
|
||||
@export_group("Teams")
|
||||
@export var home_team: Team
|
||||
@export var away_team: Team
|
||||
|
||||
var players: Array
|
||||
var active_player: Player: set = set_active_player
|
||||
|
||||
func _ready() -> void:
|
||||
players = get_tree().get_nodes_in_group("players")
|
||||
for player in players:
|
||||
player.connect("turn_finished", on_player_turn_finished)
|
||||
active_player = players[0] as Player
|
||||
|
||||
|
||||
#func _input(event: InputEvent) -> void:
|
||||
#if event.is_action_pressed("")
|
||||
|
||||
|
||||
## Signal-handlers
|
||||
func on_player_turn_finished() -> void:
|
||||
print_debug("Moving to the next player in the turn order")
|
||||
if players.find(active_player) < players.size() -1:
|
||||
active_player = players.get(players.find(active_player) + 1)
|
||||
else:
|
||||
active_player = players.get(0)
|
||||
|
||||
## Setters
|
||||
func set_active_player(new_active_player) -> void:
|
||||
active_player = new_active_player
|
||||
print_debug("The game is setting the active player to %s" % active_player.attributes.player_name)
|
||||
active_player.is_active = true
|
||||
|
||||
@ -1,19 +1,89 @@
|
||||
@icon("res://assets/icons/player.svg")
|
||||
@tool
|
||||
#@tool
|
||||
class_name Player
|
||||
extends Node2D
|
||||
|
||||
## signals
|
||||
signal turn_finished
|
||||
|
||||
## export variables
|
||||
@export var attributes: PlayerAttributes ## The attributes resource that defines the player's abilities, vitals etc.
|
||||
|
||||
## regular variables
|
||||
var is_active: bool: set = set_active
|
||||
var player_label_offset: Vector2
|
||||
|
||||
## 'onready' variables
|
||||
@onready var player_name_label: Label = $PlayerNameLabel
|
||||
## child nodes
|
||||
@onready var player_camera: Camera2D = $PlayerCamera
|
||||
@onready var player_label: PlayerLabel = $PlayerLabel
|
||||
@onready var player_nav: NavigationAgent2D = $PlayerNav
|
||||
@onready var nav_target: Sprite2D = $NavTarget
|
||||
@onready var player_sprite: Sprite2D = $PlayerSprite
|
||||
@onready var player_ui: CanvasLayer = $PlayerUI
|
||||
@onready var end_turn_button: Button = %EndTurnButton
|
||||
|
||||
func _ready() -> void:
|
||||
## signals
|
||||
end_turn_button.connect("button_down", end_turn)
|
||||
player_nav.connect("velocity_computed", on_velocity_computed)
|
||||
|
||||
is_active = false
|
||||
|
||||
if attributes:
|
||||
if attributes.player_name:
|
||||
player_name_label.text = attributes.player_name
|
||||
if attributes.player_texture:
|
||||
player_sprite.texture = attributes.player_texture
|
||||
player_label.player_name = attributes.player_name
|
||||
player_label.player_number = attributes.player_number
|
||||
player_label.player_position = attributes.player_position
|
||||
player_sprite.texture = attributes.player_texture
|
||||
|
||||
player_label_offset = player_label.position
|
||||
|
||||
func _process(_delta: float) -> void:
|
||||
player_label.global_position = global_position + player_label_offset
|
||||
if is_active:
|
||||
nav_target.global_position = get_global_mouse_position()
|
||||
|
||||
func _physics_process(delta: float) -> void:
|
||||
if player_nav.target_position:
|
||||
player_nav.velocity = global_position.direction_to(player_nav.get_next_path_position())
|
||||
#var movement_direction =
|
||||
#translate(movement_direction)
|
||||
|
||||
func _input(event: InputEvent) -> void:
|
||||
if event.is_action_pressed("end_turn"):
|
||||
end_turn()
|
||||
if event is InputEventMouseButton and event.is_pressed() and event.button_index == 1:
|
||||
var click_position_global = get_global_mouse_position()
|
||||
print_debug("%s wants to navigate to %s" % [attributes.player_name, click_position_global])
|
||||
player_nav.target_position = click_position_global
|
||||
var target_distance = player_nav.distance_to_target()
|
||||
print_debug("That's %s pixels/cm away" % target_distance)
|
||||
look_at(player_nav.target_position)
|
||||
|
||||
|
||||
## Setters
|
||||
func set_active(active: bool) -> void:
|
||||
is_active = active
|
||||
if is_active:
|
||||
print_debug("%s says: 'My turn!'" % attributes.player_name)
|
||||
player_ui.visible = true
|
||||
player_camera.enabled = true
|
||||
player_camera.make_current()
|
||||
nav_target.visible = true
|
||||
set_process_input(true)
|
||||
else:
|
||||
print_debug("%s says: 'It's not my turn'" % attributes.player_name)
|
||||
player_ui.visible = false
|
||||
player_camera.enabled = false
|
||||
nav_target.visible = false
|
||||
set_process_input(false)
|
||||
|
||||
## Helper functions/signal handlers
|
||||
|
||||
func end_turn() -> void:
|
||||
print_debug("%s says: I'd like my turn to end." % attributes.player_name)
|
||||
is_active = false
|
||||
turn_finished.emit()
|
||||
|
||||
func on_velocity_computed(safe_velocity: Vector2) -> void:
|
||||
translate(safe_velocity)
|
||||
|
||||
19
scripts/player_label.gd
Normal file
@ -0,0 +1,19 @@
|
||||
class_name PlayerLabel
|
||||
extends Control
|
||||
|
||||
@export var player_name: String: set = set_player_name
|
||||
@export var player_number: int: set = set_player_number
|
||||
@export var player_position: Globals.PlayerPosition = Globals.PlayerPosition.Guard: set = set_player_position
|
||||
|
||||
@onready var name_label: Label = %NameLabel
|
||||
@onready var number_label: Label = %NumberLabel
|
||||
@onready var position_label: Label = %PositionLabel
|
||||
|
||||
func set_player_name(p_name: String) -> void:
|
||||
name_label.text = p_name
|
||||
|
||||
func set_player_number(number: int) -> void:
|
||||
number_label.text = "#%s" % str(number)
|
||||
|
||||
func set_player_position(p_position: Globals.PlayerPosition) -> void:
|
||||
position_label.text = Globals.PlayerPosition.keys()[p_position]
|
||||
1
scripts/player_label.gd.uid
Normal file
@ -0,0 +1 @@
|
||||
uid://cc7dbnwkcctci
|
||||
56
teams/blue_team.tscn
Normal file
@ -0,0 +1,56 @@
|
||||
[gd_scene format=3 uid="uid://dndfw477wwjog"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://cfq463kejcp2m" path="res://team.tscn" id="1_7xvty"]
|
||||
[ext_resource type="Script" uid="uid://c7dxj0ifl687s" path="res://scripts/custom resources/team_attributes.gd" id="2_rosww"]
|
||||
[ext_resource type="PackedScene" uid="uid://boqs7k6ia532h" path="res://player.tscn" id="3_8v3ba"]
|
||||
[ext_resource type="Texture2D" uid="uid://btwb84mew7whb" path="res://assets/players/top-down/blue-45.png" id="4_21h5f"]
|
||||
[ext_resource type="Script" uid="uid://bbey5ttwv5utd" path="res://scripts/custom resources/player_attributes.gd" id="5_bwj7y"]
|
||||
[ext_resource type="Texture2D" uid="uid://cf8i6dbhws3ig" path="res://assets/players/top-down/blue-50.png" id="6_21h5f"]
|
||||
[ext_resource type="Texture2D" uid="uid://b8tyjo85davp4" path="res://assets/players/top-down/blue-55.png" id="7_bwj7y"]
|
||||
|
||||
[sub_resource type="Resource" id="Resource_xdxxs"]
|
||||
script = ExtResource("2_rosww")
|
||||
team_name = "Blue Devils"
|
||||
team_color = Color(0.25490198, 0.62352943, 0.8666667, 1)
|
||||
metadata/_custom_type_script = "uid://c7dxj0ifl687s"
|
||||
|
||||
[sub_resource type="Resource" id="Resource_gsbnk"]
|
||||
script = ExtResource("5_bwj7y")
|
||||
player_texture = ExtResource("4_21h5f")
|
||||
player_name = "Stevie"
|
||||
player_number = 14
|
||||
speed = 120.0
|
||||
reflexes = 5.0
|
||||
metadata/_custom_type_script = "uid://bbey5ttwv5utd"
|
||||
|
||||
[sub_resource type="Resource" id="Resource_srnfe"]
|
||||
script = ExtResource("5_bwj7y")
|
||||
player_texture = ExtResource("6_21h5f")
|
||||
player_name = "Brendan"
|
||||
player_number = 9
|
||||
player_position = 1
|
||||
speed = 80.0
|
||||
reflexes = 3.0
|
||||
metadata/_custom_type_script = "uid://bbey5ttwv5utd"
|
||||
|
||||
[sub_resource type="Resource" id="Resource_6cfox"]
|
||||
script = ExtResource("5_bwj7y")
|
||||
player_texture = ExtResource("7_bwj7y")
|
||||
player_name = "Big Country"
|
||||
player_number = 50
|
||||
player_position = 2
|
||||
speed = 50.0
|
||||
reflexes = 1.0
|
||||
metadata/_custom_type_script = "uid://bbey5ttwv5utd"
|
||||
|
||||
[node name="BlueTeam" unique_id=1449767365 instance=ExtResource("1_7xvty")]
|
||||
attributes = SubResource("Resource_xdxxs")
|
||||
|
||||
[node name="Blue1" parent="." index="0" unique_id=1267043713 instance=ExtResource("3_8v3ba")]
|
||||
attributes = SubResource("Resource_gsbnk")
|
||||
|
||||
[node name="Blue2" parent="." index="1" unique_id=2032874578 instance=ExtResource("3_8v3ba")]
|
||||
attributes = SubResource("Resource_srnfe")
|
||||
|
||||
[node name="Blue3" parent="." index="2" unique_id=668950051 instance=ExtResource("3_8v3ba")]
|
||||
attributes = SubResource("Resource_6cfox")
|
||||
59
teams/orange_team.tscn
Normal file
@ -0,0 +1,59 @@
|
||||
[gd_scene format=3 uid="uid://b7js4xq85ajf7"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://cfq463kejcp2m" path="res://team.tscn" id="1_m0gtt"]
|
||||
[ext_resource type="Script" uid="uid://c7dxj0ifl687s" path="res://scripts/custom resources/team_attributes.gd" id="2_qxtr2"]
|
||||
[ext_resource type="PackedScene" uid="uid://boqs7k6ia532h" path="res://player.tscn" id="3_oxqyn"]
|
||||
[ext_resource type="Texture2D" uid="uid://ctakygdw82fs2" path="res://assets/players/top-down/orange-45.png" id="4_dbbjc"]
|
||||
[ext_resource type="Script" uid="uid://bbey5ttwv5utd" path="res://scripts/custom resources/player_attributes.gd" id="5_ssmnd"]
|
||||
[ext_resource type="Texture2D" uid="uid://nwm6exs2vod6" path="res://assets/players/top-down/orange-50.png" id="6_dbbjc"]
|
||||
[ext_resource type="Texture2D" uid="uid://qv4wqsspmwy6" path="res://assets/players/top-down/orange-55.png" id="7_ssmnd"]
|
||||
|
||||
[sub_resource type="Resource" id="Resource_hms1j"]
|
||||
script = ExtResource("2_qxtr2")
|
||||
team_name = "Capers"
|
||||
team_color = Color(0.9098039, 0.41568628, 0.09019608, 1)
|
||||
metadata/_custom_type_script = "uid://c7dxj0ifl687s"
|
||||
|
||||
[sub_resource type="Resource" id="Resource_jsul0"]
|
||||
script = ExtResource("5_ssmnd")
|
||||
player_texture = ExtResource("4_dbbjc")
|
||||
player_name = "Dave"
|
||||
player_number = 11
|
||||
speed = 100.0
|
||||
reflexes = 5.0
|
||||
metadata/_custom_type_script = "uid://bbey5ttwv5utd"
|
||||
|
||||
[sub_resource type="Resource" id="Resource_ufsyq"]
|
||||
script = ExtResource("5_ssmnd")
|
||||
player_texture = ExtResource("6_dbbjc")
|
||||
player_name = "Matt"
|
||||
player_number = 13
|
||||
player_position = 1
|
||||
speed = 70.0
|
||||
reflexes = 3.0
|
||||
metadata/_custom_type_script = "uid://bbey5ttwv5utd"
|
||||
|
||||
[sub_resource type="Resource" id="Resource_nbn31"]
|
||||
script = ExtResource("5_ssmnd")
|
||||
player_texture = ExtResource("7_ssmnd")
|
||||
player_name = "Orville"
|
||||
player_number = 33
|
||||
player_position = 2
|
||||
speed = 85.0
|
||||
reflexes = 4.0
|
||||
metadata/_custom_type_script = "uid://bbey5ttwv5utd"
|
||||
|
||||
[node name="OrangeTeam" unique_id=1449767365 instance=ExtResource("1_m0gtt")]
|
||||
attributes = SubResource("Resource_hms1j")
|
||||
|
||||
[node name="Orange1" parent="." index="0" unique_id=1267043713 instance=ExtResource("3_oxqyn")]
|
||||
position = Vector2(6284.951, 0)
|
||||
attributes = SubResource("Resource_jsul0")
|
||||
|
||||
[node name="Orange2" parent="." index="1" unique_id=1623179654 instance=ExtResource("3_oxqyn")]
|
||||
position = Vector2(3503.8748, 0)
|
||||
attributes = SubResource("Resource_ufsyq")
|
||||
|
||||
[node name="Orange3" parent="." index="2" unique_id=964363928 instance=ExtResource("3_oxqyn")]
|
||||
position = Vector2(4278.757, 0)
|
||||
attributes = SubResource("Resource_nbn31")
|
||||