[Major] Trinity-Site test layout implementation

Implemented Trinity-Site monochrome layout testing polygon.
This commit is contained in:
Alan Alexander Cerna 2021-10-31 21:58:04 +03:00
parent b285adce0d
commit bb85b853be
42 changed files with 92 additions and 36 deletions

View File

@ -1,3 +1,3 @@
source_md5="327e2579f2e2d7e1514423052141fb23"
dest_md5="9da776790b21eac5a9c9f1aa35d2eec3"
source_md5="ee736e8cb75d9dfe41adef17281035dd"
dest_md5="4d3cd1357dda6d09781b1aca7a1066fa"

View File

@ -1,3 +1,3 @@
source_md5="25fe3e0b66e4398fb1ebe0b447a3802e"
dest_md5="721f375cb51b4ce749b4a6c335061d8d"
source_md5="d2d14dd2827d433219da68bf1d732525"
dest_md5="6366e153f340c9fcc8cb85f0f4e4db83"

View File

@ -1,3 +1,3 @@
source_md5="f7a53fb619ffad0a7e7ecf6312c9e739"
dest_md5="63ffe9aad00516e7136b39abbfab9f00"
source_md5="7acaabad43e900209fd4bc9f76078b82"
dest_md5="798352ef7076ae69637dc7cecd2a61dc"

View File

@ -1,3 +1,3 @@
source_md5="959fa846cde5697f0bb4f49adde2ea70"
dest_md5="78ceef8d39730761ea11b374ad8c22cb"
source_md5="ba0318ba0d0429593bfd89917ab00f68"
dest_md5="79d7b19a26fdcbe0dd78506fa5fbe3ad"

View File

@ -1,3 +1,3 @@
source_md5="e99cab31be0706a16b055e6bc5ecd5f4"
dest_md5="52531bf92bdf3644f5f00d0249aab58a"
source_md5="daef6c327a8127496dea0a03d1981c4e"
dest_md5="044f73e6caff3a5ba06354307e524d6a"

View File

@ -1,3 +1,3 @@
source_md5="5868541ebde2d9bcf1c8b9c10e4726c0"
dest_md5="da530500ea8a81564151a14a9bfe9035"
source_md5="c0df0851cca9b22060b18ab55bf0a368"
dest_md5="b6c4ea96332c338b40014bdfaff192b1"

View File

@ -1,3 +1,3 @@
source_md5="d3faf502d4c79155daeef2ed9c0a279e"
dest_md5="49e0de52ddada937736daa6f01567e35"
source_md5="14ea473daf486a2718436e2fa7c65d46"
dest_md5="9293211ae4686089493c9c29486437e6"

View File

@ -1,3 +1,3 @@
source_md5="2af8eea624e626b42e73a7a31f38e757"
dest_md5="86f04b58fd01a23aa8d3484b81ac1f56"
source_md5="dbdd1531f29d8a051ab295de2d9e67ad"
dest_md5="add72d10966206801da12b31f841eb2c"

View File

@ -1,3 +1,3 @@
source_md5="f882cba80550542ee43b09f3407b5aad"
dest_md5="4dd6aa589d689e46efc4d4a3b56cea0e"
source_md5="f52118696811fc40be9fe4dcf5979d86"
dest_md5="d2154fc1464815f62a7b51e6568e8592"

View File

@ -1,3 +1,3 @@
source_md5="348a9cea849ff5390c5ff3d86f6af85b"
dest_md5="82832218d539e75fe61c7ed557c94670"
source_md5="d3a18faa670ee4736ff9160fe8228f46"
dest_md5="43349545b312ce819812f5cb41ed1dc8"

View File

@ -1,3 +1,3 @@
source_md5="2737374e8ec129b6d8a5ccaa59542ec3"
dest_md5="41be8734e464365b0872eb02aca5ed93"
source_md5="fd3cdc54154a38a49be1857c0368917e"
dest_md5="f3440c9d3144681e0d1a50cca62ddfe5"

View File

@ -1,3 +1,3 @@
source_md5="30ee151189bdf12169780644a851ada6"
dest_md5="318d269f0e3e43e993b9b49aa9cdacf0"
source_md5="cb27f9aef7fa9e4374aee98e6f295c81"
dest_md5="315d382db44d60ea5b218326b7d46886"

View File

@ -14,6 +14,10 @@ config/name="Movement System 0 . 0 . 4"
run/main_scene="res://source/levels/trinity_site/trinity-site-level.tscn"
config/icon="res://icon.png"
[display]
window/size/resizable=false
[input]
input_right={

View File

@ -19,10 +19,12 @@ var accelerationSpeed = 3.5
var deccelerationSpeed = 4.25
var jumpState = false
var jumpSpeed = 0
var maxJumpSpeed = 500
var maxJumpSpeed = 400
var time = 0
var timeOut = 1
var timedOut = true
var movementRight = false
var movementLeft = true
func _ready():
# Allow update process override.
@ -102,6 +104,14 @@ func _physics_process(delta):
movementVector = Vector2(-1,0)
else:
movementVector = Vector2(0,0)
if movementVector.x == 1 and movementRight == false:
movementRight = true
movementLeft = false
$"player-animated-sprite".flip_h = true
elif movementVector.x == -1 and movementLeft == false:
movementLeft = true
movementRight = false
$"player-animated-sprite".flip_h = false
if movementVector != Vector2(0,0) and jumpState == false:
movementSpeed = move_toward(movementSpeed, maxMovementSpeed, accelerationSpeed)
elif movementVector != Vector2(0,0) and jumpState == true:
@ -114,7 +124,7 @@ func _physics_process(delta):
jumpState = true
time = 0
if jumpState == true and jumpSpeed < maxJumpSpeed:
print(jumpSpeed)
rotation_degrees = move_toward(rotation_degrees, 0, accelerationSpeed/10)
jumpSpeed = move_toward(jumpSpeed, maxJumpSpeed, accelerationSpeed * 10)
else:
jumpState = false

Binary file not shown.

Before

Width:  |  Height:  |  Size: 40 KiB

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 40 KiB

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 40 KiB

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 40 KiB

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 40 KiB

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 40 KiB

After

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 40 KiB

After

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 40 KiB

After

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 40 KiB

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 40 KiB

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 41 KiB

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 41 KiB

After

Width:  |  Height:  |  Size: 40 KiB

View File

@ -16,7 +16,7 @@
[ext_resource path="res://source/assets/scripts/player-handlers/player-collider-handler.gd" type="Script" id=14]
[ext_resource path="res://source/assets/scripts/player-handlers/player-body-handler.gd" type="Script" id=15]
[sub_resource type="CircleShape2D" id=3]
[sub_resource type="CircleShape2D" id=1]
[sub_resource type="SpriteFrames" id=2]
animations = [ {
@ -32,15 +32,15 @@ animations = [ {
script = ExtResource( 15 )
[node name="player-collider" type="CollisionShape2D" parent="player-body"]
shape = SubResource( 3 )
shape = SubResource( 1 )
script = ExtResource( 14 )
[node name="player-animated-sprite" type="AnimatedSprite" parent="player-body"]
scale = Vector2( 0.25, 0.25 )
scale = Vector2( 0.1, 0.1 )
frames = SubResource( 2 )
animation = "idle"
[node name="player-sprite" type="Sprite" parent="player-body"]
visible = false
scale = Vector2( 0.25, 0.25 )
scale = Vector2( 0.1, 0.1 )
texture = ExtResource( 1 )

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/trinity_site_level_layout-monochrome.png-c5b47a5f1d25029803eac9e832c13411.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://source/levels/trinity_site/images/trinity_site_level_layout-monochrome.png"
dest_files=[ "res://.import/trinity_site_level_layout-monochrome.png-c5b47a5f1d25029803eac9e832c13411.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

View File

@ -1,14 +1,22 @@
[gd_scene load_steps=2 format=2]
[gd_scene load_steps=3 format=2]
[ext_resource path="res://source/entities/player/player-node.tscn" type="PackedScene" id=1]
[ext_resource path="res://source/levels/trinity_site/images/trinity_site_level_layout-monochrome.png" type="Texture" id=2]
[node name="trinity-site" type="Node2D"]
[node name="player-node" parent="." instance=ExtResource( 1 )]
position = Vector2( 503, 311 )
position = Vector2( 212.292, 277.24 )
[node name="StaticBody2D" type="StaticBody2D" parent="."]
[node name="trinity-site-body" type="StaticBody2D" parent="."]
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="StaticBody2D"]
position = Vector2( 0, -46 )
polygon = PoolVector2Array( 227, 408, 260, 436, 319, 461, 392, 473, 474, 488, 562, 504, 629, 508, 692, 501, 751, 483, 795, 450, 823, 423, 864.224, 390.509, 903.116, 381.778, 930, 382, 953.912, 392.096, 965.412, 402.193, 980, 415, 994, 445, 1000, 488, 992, 540, 955, 568, 905, 578, 868, 584, 797, 575, 745, 560, 689, 560, 617, 562, 563, 574, 493, 583, 357, 589, 306, 582, 228, 546, 163, 498, 118, 438, 100, 372, 94, 294, 115, 237, 154, 198, 203, 187, 298, 204, 320, 238, 328, 269, 325, 312, 305, 338, 275, 358, 251, 371, 228, 392 )
[node name="trinity_site_level_layout-monochrome" type="Sprite" parent="trinity-site-body"]
position = Vector2( 513.225, 303.316 )
scale = Vector2( 0.798307, 0.798307 )
texture = ExtResource( 2 )
[node name="trinity_site_outer_collider" type="CollisionPolygon2D" parent="trinity-site-body"]
polygon = PoolVector2Array( 508.936, 1.9356, 508.374, 81.3459, 502, 79.9369, 496.101, 77.9311, 489.258, 74.6276, 482.533, 69.3183, 475.336, 62.4752, 467.903, 57.2839, 459.526, 52.6825, 452.748, 49.4016, 445.163, 46.405, 438.233, 43.8766, 430.086, 42.4719, 423.063, 41.5355, 414.635, 40.88, 406.488, 41.4419, 398.434, 42.8465, 391.318, 44.0639, 384.669, 45.7495, 379.237, 47.716, 373.712, 49.7762, 365.753, 53.7093, 359.666, 57.455, 353.017, 62.1372, 347.867, 66.8194, 342.81, 72.2508, 337.847, 77.2139, 334.101, 82.1771, 329.606, 88.3576, 326.516, 93.3207, 321.74, 98.1902, 317.245, 102.123, 311.345, 106.15, 304.977, 108.866, 296.362, 111.3, 288.964, 112.424, 280.536, 112.05, 272.483, 110.364, 264.336, 108.304, 255.627, 106.525, 247.948, 105.401, 238.397, 104.183, 229.875, 103.903, 222.009, 103.528, 214.986, 103.903, 207.4, 104.183, 200.377, 104.933, 193.916, 105.588, 185.675, 106.806, 178.183, 108.304, 168.819, 110.926, 161.983, 112.986, 154.96, 115.421, 146.532, 118.324, 139.696, 121.695, 132.11, 125.628, 126.304, 129.093, 119.937, 132.745, 112.539, 136.491, 106.826, 140.705, 100.833, 145.574, 94.7464, 150.35, 90.8133, 153.815, 85.6629, 158.029, 81.0743, 162.617, 76.5794, 166.925, 73.1146, 170.577, 68.4324, 175.915, 65.1548, 179.754, 61.5061, 185.562, 56.3556, 193.866, 51.4153, 201.329, 46.0546, 208.582, 42.1655, 216.15, 38.8019, 224.349, 35.3332, 232.127, 32.4952, 239.695, 30.498, 246.002, 28.3958, 254.201, 26.9242, 261.348, 25.5578, 268.075, 24.4015, 274.382, 23.2453, 282.265, 23.2453, 288.887, 22.1942, 297.402, 22.2993, 305.705, 22.6146, 313.168, 23.3504, 322.103, 24.4488, 330.903, 25.1043, 337.552, 26.6026, 345.044, 28.1009, 352.254, 29.9738, 357.686, 31.8467, 363.398, 34.5624, 372.388, 37.559, 379.692, 40.0874, 386.435, 42.9903, 391.96, 46.2679, 398.515, 49.3581, 403.571, 53.8531, 410.782, 57.8798, 416.307, 61.3446, 422.488, 65.9332, 427.825, 72.301, 434.942, 77.2641, 440.186, 84.1938, 447.584, 89.7188, 452.922, 96.7421, 458.447, 103.297, 463.317, 110.227, 468.561, 117.344, 473.243, 125.023, 477.925, 132.421, 481.952, 140.193, 485.417, 147.123, 488.039, 156.3, 491.223, 163.042, 493.564, 171.564, 496.186, 180.46, 498.527, 189.918, 499.931, 198.814, 501.43, 207.898, 502.273, 218.199, 502.928, 226.72, 502.928, 234.586, 502.647, 242.452, 501.711, 248.165, 500.962, 255.904, 499.956, 265.225, 497.832, 275.843, 495.354, 283.984, 493.703, 292.715, 494.529, 301.092, 496.652, 308.525, 499.248, 314.778, 503.259, 320.913, 507.861, 325.397, 513.406, 331.178, 521.901, 337.785, 530.16, 343.448, 535.823, 351.707, 542.43, 359.966, 548.565, 369.523, 554.701, 378, 558.75, 387, 561.625, 396, 563.75, 406.125, 564.75, 418.125, 565.625, 429.125, 564.375, 438, 562.125, 446.875, 559.25, 458, 555.125, 466.25, 550.375, 471.875, 546.5, 477.125, 542.5, 483, 537, 488.875, 533.25, 494.25, 529.875, 500.25, 527.875, 507.5, 526.375, 514.375, 526.375, 520.125, 527, 530.125, 528.875, 539.625, 533.25, 544.25, 537.125, 552, 544, 557.625, 547.875, 565.875, 552.875, 573.125, 556.25, 580.5, 559.625, 588.125, 562.25, 595.875, 563.625, 605.125, 564.875, 613.25, 565.5, 622.875, 565.125, 631.875, 563.625, 641.5, 561.5, 647.5, 560.25, 655.375, 556.625, 662.625, 553, 670, 547.75, 678.625, 540.625, 685.625, 534.875, 691.125, 528.875, 696.625, 520, 701.625, 512.375, 707.375, 506.625, 713.75, 502.125, 723.75, 497.375, 735.458, 494.76, 745.863, 495.206, 757.607, 498.327, 772.918, 501.003, 783.472, 502.192, 794.621, 502.936, 809.04, 503.382, 822.567, 502.936, 834.905, 501.895, 849.621, 498.625, 864.486, 495.354, 874.595, 491.341, 886.487, 485.692, 898.23, 479.3, 912.798, 471.719, 923.946, 463.543, 933.163, 456.854, 943.271, 448.232, 951.298, 440.056, 957.839, 432.029, 968.857, 418.87, 978.034, 403.185, 983.874, 391.672, 989.046, 379.492, 992.383, 369.648, 999.224, 351.627, 1002.23, 337.278, 1003.4, 321.927, 1004.56, 307.911, 1004.4, 296.231, 1003.73, 280.714, 1001.06, 265.864, 998.056, 252.682, 994.385, 239.334, 988.546, 224.65, 982.872, 212.637, 975.865, 199.789, 968.69, 187.275, 960.013, 177.764, 951.337, 167.419, 943.828, 158.075, 934.818, 151.067, 925.141, 144.727, 913.127, 134.883, 900.947, 127.374, 887.932, 120.366, 873.582, 114.86, 859.4, 110.522, 847.052, 107.351, 832.369, 105.683, 817.352, 104.181, 801.167, 103.514, 786.484, 104.515, 772.969, 105.683, 761.122, 108.186, 748.942, 111.857, 741.099, 113.358, 729.92, 111.356, 719.075, 106.35, 708.563, 99.1756, 701.722, 90.9997, 695.882, 81.6558, 686.037, 70.3097, 676.526, 62.3006, 661.343, 53.1236, 650.831, 47.6174, 640.152, 44.2803, 626.804, 41.6106, 614.123, 41.2769, 600.607, 41.6106, 588.594, 43.7797, 576.747, 47.7843, 565.067, 52.623, 558.226, 57.1281, 551.385, 61.6332, 544.377, 67.9737, 539.538, 72.6456, 533.198, 76.9839, 522.686, 80.321, 511.173, 81.6558, 511.507, 1.56542, 1023.58, 2.14532, 1024.35, 604.553, 1.37355, 603.941, 2.33868, 1.98115 )
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="trinity-site-body"]
polygon = PoolVector2Array( 411.392, 250.341, 409.273, 253.255, 403.446, 255.638, 394.971, 258.552, 386.76, 263.055, 380.138, 269.146, 374.576, 276.298, 368.484, 285.568, 365.571, 297.222, 365.041, 307.817, 366.1, 318.147, 371.927, 329.536, 376.96, 336.422, 384.111, 343.309, 394.706, 348.341, 403.446, 351.785, 412.187, 356.552, 414.836, 362.379, 417.749, 372.444, 424.371, 382.774, 429.403, 388.866, 438.144, 395.223, 449.798, 398.931, 461.187, 400.785, 474.96, 401.579, 483.171, 398.666, 490.852, 393.898, 497.739, 389.925, 508.598, 385.952, 519.193, 386.217, 527.668, 389.396, 534.025, 392.574, 544.09, 397.606, 554.685, 400.52, 564.485, 402.109, 577.463, 400.785, 586.204, 396.282, 594.415, 391.779, 601.036, 385.952, 606.599, 378.801, 609.247, 370.325, 613.485, 359.995, 618.782, 353.374, 629.112, 350.99, 639.972, 345.428, 647.388, 338.541, 656.128, 328.741, 660.366, 320.001, 663.28, 307.022, 661.691, 296.693, 659.307, 285.038, 653.536, 274.373, 644.209, 264.114, 633.35, 258.817, 622.132, 254.55, 613.891, 248.982, 609.777, 238.952, 606.069, 229.417, 599.859, 219.36, 587.793, 210.611, 572.166, 204.519, 557.598, 203.725, 544.09, 206.373, 537.734, 209.552, 537.734, 209.552, 531.377, 214.319, 522.901, 218.557, 512.306, 220.411, 505.155, 218.557, 491.117, 212.995, 479.728, 207.698, 471.252, 205.314, 459.333, 203.46, 445.295, 206.109, 433.376, 212.995, 426.755, 218.557, 418.544, 227.298, 414.571, 238.157 )