diff --git a/3d_platforma/Level.tscn b/3d_platforma/Level.tscn index 9d1f3d4..2f65bc3 100644 --- a/3d_platforma/Level.tscn +++ b/3d_platforma/Level.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=16 format=2] +[gd_scene load_steps=13 format=2] [ext_resource path="res://3d_platforma/Player.tscn" type="PackedScene" id=1] [ext_resource path="res://scripts/Library/Actions/Snare Admiral 2.wav" type="AudioStream" id=3] @@ -7,6 +7,7 @@ [ext_resource path="res://scripts/Library/Actions/TriggerOnReady.gd" type="Script" id=6] [ext_resource path="res://scripts/Library/Actions/ActionList.gd" type="Script" id=7] [ext_resource path="res://scripts/Library/Actions/SFX BlackTiger.wav" type="AudioStream" id=8] +[ext_resource path="res://Tape/Tape.tscn" type="PackedScene" id=9] [sub_resource type="SpatialMaterial" id=36] resource_name = "CheckerGrid" @@ -220,3 +221,6 @@ script = ExtResource( 1 ) [node name="PlaySound2" type="Node" parent="ActionList"] script = ExtResource( 1 ) + +[node name="Tape" parent="." instance=ExtResource( 9 )] +transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -2.1894 ) diff --git a/BlenderFiles/Level.tscn b/BlenderFiles/Level.tscn new file mode 100644 index 0000000..c89a94d --- /dev/null +++ b/BlenderFiles/Level.tscn @@ -0,0 +1,623 @@ +[gd_scene load_steps=38 format=2] + +[ext_resource path="res://scripts/OnMusicChangedSlowTrigger.gd" type="Script" id=1] +[ext_resource path="res://3d_platforma/golden_bay_512.hdr" type="Texture" id=2] +[ext_resource path="res://Obstacles/SwingingAxe.tscn" type="PackedScene" id=3] +[ext_resource path="res://3d_platforma/sqare_norm.png" type="Texture" id=4] +[ext_resource path="res://3d_platforma/texture_08.png" type="Texture" id=5] + +[sub_resource type="CubeMesh" id=1] + +[sub_resource type="MultiMesh" id=2] +mesh = SubResource( 1 ) + +[sub_resource type="GDScript" id=3] +resource_name = "Player" +script/source = "extends KinematicBody + +export var move_speed := 12.0 +export var jump_force := 30.0 + +export var gravity := 0.98 +export var max_fall_speed := 30 + +export var look_sens_h := 0.2 + +var is_on_floor_prev := false + +onready var anim = $Mesh/AnimationPlayer + +var y_velo = 0 + +func _ready(): + anim.get_animation(\"walk\").set_loop(true) + +func _input(event): + if event is InputEventMouseMotion: + rotation_degrees.y -= event.relative.x * look_sens_h + + if event.is_action_pressed(\"ui_end\"): + global_translation = Vector3.ZERO + +func _physics_process(_delta): + var move_vec = Vector3() + if Input.is_action_pressed(\"move_forward\"): + move_vec.z -= 1 + if Input.is_action_pressed(\"move_backwards\"): + move_vec.z += 1 + if Input.is_action_pressed(\"move_right\"): + move_vec.x += 1 + if Input.is_action_pressed(\"move_left\"): + move_vec.x -= 1 + + move_vec = move_vec.normalized() + move_vec = move_vec.rotated(Vector3(0, 1, 0), rotation.y) + move_vec *= move_speed + move_vec.y = y_velo + + var _vel:Vector3 = move_and_slide(move_vec, Vector3(0, 1, 0)) + + # questionable??? + if is_on_floor_prev and not is_on_floor(): + $CoyoteJump.start() + is_on_floor_prev = is_on_floor() + + var grounded :bool= is_on_floor() or not $CoyoteJump.is_stopped() + + y_velo -= gravity + + var just_jumped := false + + if Input.is_action_just_pressed(\"jump\") and grounded: + just_jumped = true + y_velo = jump_force + + if grounded and y_velo <= 0: + y_velo = -0.1 + + if y_velo < -max_fall_speed: + y_velo = -max_fall_speed + + if just_jumped: + play_anim(\"jump\") + elif grounded: + if move_vec.x == 0 and move_vec.z == 0: + play_anim(\"idle\") + else: + play_anim(\"walk\") + +func play_anim(name): + if anim.current_animation == name: + return + anim.play(name) +" + +[sub_resource type="CapsuleShape" id=4] +radius = 0.202191 +height = 1.09113 + +[sub_resource type="CylinderShape" id=32] +height = 0.224826 +radius = 0.194837 + +[sub_resource type="GDScript" id=11] +resource_name = "Camera" +script/source = "extends Spatial + +export var look_sens_v := 0.5 + +#this will not work +export(float) onready var not_working := 0.1 + +func _ready() -> void: + pass + +func _input(event): + if event is InputEventMouseMotion: + rotation_degrees.x -= event.relative.y * look_sens_v + rotation_degrees.x = clamp(rotation_degrees.x, -90, 90) + + if event is InputEventMouseButton: + Input.set_mouse_mode(Input.MOUSE_MODE_CAPTURED) + + if event.is_action_pressed(\"ui_focus_next\"): + Input.set_mouse_mode(Input.MOUSE_MODE_VISIBLE) +" + +[sub_resource type="CylinderMesh" id=31] +radial_segments = 8 +rings = 0 + +[sub_resource type="SpatialMaterial" id=33] +albedo_color = Color( 0.08, 0.08, 0.08, 1 ) +roughness = 0.73 + +[sub_resource type="QuadMesh" id=34] +size = Vector2( 0.3, 0.5 ) + +[sub_resource type="SpatialMaterial" id=35] +emission_enabled = true +emission = Color( 0.95, 0.95, 0.95, 1 ) +emission_energy = 10.0 +emission_operator = 0 +emission_on_uv2 = false + +[sub_resource type="SpatialMaterial" id=19] +params_cull_mode = 2 +albedo_color = Color( 0.752941, 0, 0, 1 ) + +[sub_resource type="Animation" id=6] +length = 0.001 +tracks/0/type = "value" +tracks/0/path = NodePath("Body:scale") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/keys = { +"times": PoolRealArray( 0 ), +"transitions": PoolRealArray( 1 ), +"update": 0, +"values": [ Vector3( 1, 1, 1 ) ] +} +tracks/1/type = "value" +tracks/1/path = NodePath("Body:translation") +tracks/1/interp = 1 +tracks/1/loop_wrap = true +tracks/1/imported = false +tracks/1/enabled = true +tracks/1/keys = { +"times": PoolRealArray( 0 ), +"transitions": PoolRealArray( 1 ), +"update": 0, +"values": [ Vector3( 0, 0.744519, 0 ) ] +} + +[sub_resource type="Animation" id=7] +resource_name = "idle" +length = 2.0 +loop = true +tracks/0/type = "value" +tracks/0/path = NodePath("Body:scale") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/keys = { +"times": PoolRealArray( 0, 1, 2 ), +"transitions": PoolRealArray( 1, 1, 1 ), +"update": 0, +"values": [ Vector3( 1, 1, 1 ), Vector3( 1.1, 1.1, 1 ), Vector3( 1, 1, 1 ) ] +} + +[sub_resource type="Animation" id=8] +resource_name = "jump" +length = 0.6 +loop = true +tracks/0/type = "value" +tracks/0/path = NodePath("Body:scale") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/keys = { +"times": PoolRealArray( 0, 0.3, 0.6 ), +"transitions": PoolRealArray( 1, 1, 1 ), +"update": 0, +"values": [ Vector3( 1.07, 1.07, 1 ), Vector3( 1.07, 1.07, 1.07262 ), Vector3( 1.07, 1.07, 1 ) ] +} + +[sub_resource type="Animation" id=9] +resource_name = "walk" +length = 0.4 +loop = true +tracks/0/type = "value" +tracks/0/path = NodePath("Body:translation") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/keys = { +"times": PoolRealArray( 0, 0.1, 0.2, 0.3, 0.4 ), +"transitions": PoolRealArray( 1, 1, 1, 1, 1 ), +"update": 0, +"values": [ Vector3( 0, 0.744519, 0 ), Vector3( 0, 0.763796, 0 ), Vector3( 0, 0.744519, 0 ), Vector3( 0, 0.763796, 0 ), Vector3( 0, 0.744519, 0 ) ] +} +tracks/1/type = "value" +tracks/1/path = NodePath("Body:rotation_degrees:z") +tracks/1/interp = 1 +tracks/1/loop_wrap = true +tracks/1/imported = false +tracks/1/enabled = true +tracks/1/keys = { +"times": PoolRealArray( 0, 0.1, 0.3, 0.4 ), +"transitions": PoolRealArray( 1, 1, 1, 1 ), +"update": 0, +"values": [ 0.0, 10.0, -10.0, 0.0 ] +} + +[sub_resource type="PlaneMesh" id=18] +material = SubResource( 19 ) +size = Vector2( 0.16, 1.6 ) +subdivide_depth = 8 + +[sub_resource type="GDScript" id=17] +resource_name = "Shadow" +script/source = "extends Spatial + +export var offset := 0.25 + +func _process(_delta) -> void: + + var collide :bool= $RayCast.is_colliding() + + $Circle.visible = collide + + if collide: + var py:float = $RayCast.get_collision_point().y + + $Circle.global_translation.y = py + offset + +" + +[sub_resource type="Gradient" id=13] +offsets = PoolRealArray( 0.103704, 0.422222, 0.766667 ) +colors = PoolColorArray( 0, 0, 0, 1, 0, 0, 0, 0.447059, 0, 0, 0, 0 ) + +[sub_resource type="GradientTexture2D" id=14] +gradient = SubResource( 13 ) +width = 32 +height = 32 +fill = 1 +fill_from = Vector2( 0.5, 0.5 ) +fill_to = Vector2( 1, 0.5 ) + +[sub_resource type="SpatialMaterial" id=15] +flags_transparent = true +flags_unshaded = true +albedo_texture = SubResource( 14 ) + +[sub_resource type="QuadMesh" id=16] +material = SubResource( 15 ) +size = Vector2( 0.75, 0.75 ) + +[sub_resource type="SpatialMaterial" id=36] +resource_name = "CheckerGrid" +albedo_color = Color( 0.85, 0.85, 0.85, 1 ) +albedo_texture = ExtResource( 5 ) +roughness = 0.85 +uv1_triplanar = true + +[sub_resource type="Animation" id=37] +resource_name = "move" +length = 10.0 +loop = true +tracks/0/type = "value" +tracks/0/path = NodePath(".:translation:z") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/keys = { +"times": PoolRealArray( 0, 4.4, 9.9 ), +"transitions": PoolRealArray( 1, 1.8025, 1 ), +"update": 0, +"values": [ 0.0, -10.0, 0.0 ] +} + +[sub_resource type="Animation" id=38] +length = 0.001 +tracks/0/type = "value" +tracks/0/path = NodePath(".:translation") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/keys = { +"times": PoolRealArray( 0 ), +"transitions": PoolRealArray( 1 ), +"update": 0, +"values": [ Vector3( 4.86647, 0, 5.22355 ) ] +} + +[sub_resource type="Animation" id=39] +resource_name = "move" +length = 10.0 +loop = true +tracks/0/type = "value" +tracks/0/path = NodePath(".:translation") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/keys = { +"times": PoolRealArray( 0, 5.3 ), +"transitions": PoolRealArray( 1, 1 ), +"update": 0, +"values": [ Vector3( 4.86647, 0, 5.22355 ), Vector3( 12.1605, 0, 5.22355 ) ] +} + +[sub_resource type="BoxShape" id=20] + +[sub_resource type="CubeMesh" id=21] + +[sub_resource type="OpenSimplexNoise" id=28] +octaves = 2 +period = 0.8 + +[sub_resource type="NoiseTexture" id=29] +flags = 3 +width = 32 +height = 32 +noise = SubResource( 28 ) + +[sub_resource type="SpatialMaterial" id=22] +albedo_color = Color( 0.603922, 0.0235294, 0.619608, 1 ) +roughness = 0.25 +roughness_texture = SubResource( 29 ) +normal_enabled = true +normal_scale = 1.0 +normal_texture = ExtResource( 4 ) +uv1_scale = Vector3( 3, 3, 3 ) +uv1_triplanar = true + +[sub_resource type="PanoramaSky" id=23] +panorama = ExtResource( 2 ) + +[sub_resource type="Environment" id=24] +resource_name = "black_env" +background_mode = 2 +background_sky = SubResource( 23 ) +background_sky_custom_fov = 50.0 +background_color = Color( 0.137255, 0.137255, 0.137255, 1 ) +background_energy = 2.0 +ambient_light_color = Color( 0.501961, 0.501961, 0.501961, 1 ) +ambient_light_energy = 0.45 +ambient_light_sky_contribution = 0.6 +fog_color = Color( 0.2304, 0.273707, 0.32, 1 ) +fog_sun_amount = 0.25 +fog_depth_begin = 5.0 +fog_depth_end = 20.0 +fog_transmit_enabled = true +fog_height_enabled = true +dof_blur_far_distance = 20.0 +dof_blur_far_quality = 2 +glow_intensity = 2.0 +glow_bloom = 0.05 +glow_blend_mode = 1 +glow_hdr_scale = 4.0 + +[node name="Game" type="Spatial"] + +[node name="MultiMeshInstance" type="MultiMeshInstance" parent="."] +multimesh = SubResource( 2 ) + +[node name="Player" type="KinematicBody" parent="."] +transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 2 ) +collision_layer = 2 +script = SubResource( 3 ) +move_speed = 3.2 +jump_force = 20.0 +gravity = 1.2 + +[node name="CollisionShape" type="CollisionShape" parent="Player"] +transform = Transform( 1, 0, 0, 0, -4.37114e-08, 1, 0, -1, -4.37114e-08, 0, 0.724957, 0 ) +shape = SubResource( 4 ) + +[node name="CollisionShape2" type="CollisionShape" parent="Player"] +transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.884122, 0 ) +shape = SubResource( 32 ) + +[node name="CamRoot" type="Spatial" parent="Player"] +script = SubResource( 11 ) + +[node name="Camera" type="ClippedCamera" parent="Player/CamRoot"] +transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.2, 4 ) +current = true +margin = 0.1 +process_mode = 1 + +[node name="Mesh" type="Spatial" parent="Player"] + +[node name="Body" type="Spatial" parent="Player/Mesh"] +transform = Transform( 0.976315, -0.216353, 9.45709e-09, 0, -4.37114e-08, -1, 0.216353, 0.976315, -4.26761e-08, 0, 0.744519, 0 ) + +[node name="Body" type="MeshInstance" parent="Player/Mesh/Body"] +transform = Transform( 0.195555, 0, 0, 0, -1.04907e-08, 0.135018, 0, -0.24, -5.90182e-09, 0, 0, 0 ) +mesh = SubResource( 31 ) +material/0 = SubResource( 33 ) + +[node name="Body2" type="MeshInstance" parent="Player/Mesh/Body"] +transform = Transform( 0.0876868, 0, 0, 0, -1.1745e-08, -0.0631662, 0, 0.268694, -2.76108e-09, -0.122125, 0.049392, 0.057337 ) +mesh = SubResource( 31 ) +material/0 = SubResource( 33 ) + +[node name="Body3" type="MeshInstance" parent="Player/Mesh/Body"] +transform = Transform( 0.0876868, 0, 0, 0, -1.1745e-08, -0.0631662, 0, 0.268694, -2.76108e-09, 0.123573, 0.0493927, 0.0573372 ) +mesh = SubResource( 31 ) +material/0 = SubResource( 33 ) + +[node name="head" type="MeshInstance" parent="Player/Mesh/Body"] +transform = Transform( 0.088, 0, 0, 0, -4.19629e-09, 0.08, 0, -0.096, -3.49691e-09, 0, 0, -0.339126 ) +mesh = SubResource( 31 ) +material/0 = SubResource( 33 ) + +[node name="eye_left" type="MeshInstance" parent="Player/Mesh/Body/head"] +transform = Transform( 1, 0, 0, 0, -1, 8.74228e-08, 0, -8.74228e-08, -1, 0.568194, 0.255432, -1.05656 ) +mesh = SubResource( 34 ) +material/0 = SubResource( 35 ) + +[node name="eye_right" type="MeshInstance" parent="Player/Mesh/Body/head"] +transform = Transform( 1, 0, 0, 0, -1, 8.74228e-08, 0, -8.74228e-08, -1, -0.365176, 0.255432, -1.05656 ) +mesh = SubResource( 34 ) +material/0 = SubResource( 35 ) + +[node name="OmniLight" type="SpotLight" parent="Player/Mesh/Body/head"] +transform = Transform( 11.3636, 0, 0, 0, 10.4167, -2.21659e-13, 0, 2.1684e-19, 12.5, 0, 0.257117, -0.572075 ) +light_energy = 0.75 +spot_range = 4.51976 +spot_attenuation = 1.31951 +spot_angle = 66.4019 + +[node name="hat_top" type="MeshInstance" parent="Player/Mesh/Body"] +transform = Transform( 0.1056, 0, 0, 0, -5.03555e-09, 0.096, 0, -0.1152, -4.19629e-09, 0, 0, -0.578262 ) +mesh = SubResource( 31 ) +material/0 = SubResource( 33 ) + +[node name="hat_bottom" type="MeshInstance" parent="Player/Mesh/Body"] +transform = Transform( 0.2024, 0, 0, 0, -1.25889e-09, 0.184, 0, -0.0288, -8.0429e-09, 0, 0, -0.464094 ) +mesh = SubResource( 31 ) +material/0 = SubResource( 33 ) + +[node name="scarf" type="MeshInstance" parent="Player/Mesh/Body"] +transform = Transform( 0.17204, 0, 0, 0, -1.39107e-09, 0.1564, 0, -0.031824, -6.83646e-09, 0, 0, -0.271663 ) +mesh = SubResource( 31 ) +material/0 = SubResource( 19 ) + +[node name="LegR" type="CSGCylinder" parent="Player/Mesh/Body"] +transform = Transform( 0.99863, -0.0659433, 1.81562e-09, 0, -5.50763e-08, -0.793651, 0.052336, 1.25827, -3.4644e-08, 0.0637822, 0, 0.548993 ) +radius = 0.1 +height = 0.5 +cone = true +material = SubResource( 33 ) + +[node name="LegL" type="CSGCylinder" parent="Player/Mesh/Body"] +transform = Transform( 0.99863, 0.0659433, -1.81562e-09, 0, -5.50763e-08, -0.793651, -0.052336, 1.25827, -3.4644e-08, -0.0650757, 0, 0.548993 ) +radius = 0.1 +height = 0.5 +cone = true +material = SubResource( 33 ) + +[node name="AnimationPlayer" type="AnimationPlayer" parent="Player/Mesh"] +anims/RESET = SubResource( 6 ) +anims/idle = SubResource( 7 ) +anims/jump = SubResource( 8 ) +anims/walk = SubResource( 9 ) + +[node name="SoftBody" type="SoftBody" parent="Player"] +transform = Transform( -1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 0, 1.04064, 0.928791 ) +mesh = SubResource( 18 ) +collision_layer = 2 +collision_mask = 3 +damping_coefficient = 0.1 +drag_coefficient = 0.1 +ray_pickable = false +pinned_points = [ 0, 1 ] +attachments/0/point_index = 0 +attachments/0/spatial_attachment_path = NodePath("..") +attachments/0/offset = Vector3( -0.0800001, 1.04064, 0.128791 ) +attachments/1/point_index = 1 +attachments/1/spatial_attachment_path = NodePath("..") +attachments/1/offset = Vector3( 0.0799999, 1.04064, 0.128791 ) + +[node name="Shadow" type="Spatial" parent="Player"] +transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.02, 0 ) +script = SubResource( 17 ) +offset = 0.02 + +[node name="Circle" type="MeshInstance" parent="Player/Shadow"] +transform = Transform( 1, 0, 0, 0, -4.37114e-08, 1, 0, -1, -4.37114e-08, 0, 0, 0 ) +mesh = SubResource( 16 ) +skeleton = NodePath("../..") + +[node name="RayCast" type="RayCast" parent="Player/Shadow"] +enabled = true +cast_to = Vector3( 0, -50, 0 ) + +[node name="CoyoteJump" type="Timer" parent="Player"] +wait_time = 0.16 +one_shot = true + +[node name="Platforms" type="Spatial" parent="."] +transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.1, 0 ) + +[node name="start" type="CSGBox" parent="Platforms"] +transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -1, 0 ) +use_collision = true +width = 1.65541 +height = 0.2 +depth = 10.0 +material = SubResource( 36 ) + +[node name="thin" type="CSGBox" parent="Platforms"] +transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -1, -12 ) +use_collision = true +width = 4.0 +height = 0.2 +depth = 10.0 +material = SubResource( 36 ) + +[node name="ramp" type="CSGBox" parent="Platforms"] +transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.4, -22 ) +use_collision = true +width = 4.0 +height = 1.0 +depth = 10.0 +material = SubResource( 36 ) + +[node name="lift" type="Spatial" parent="Platforms"] +transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.4, -30 ) + +[node name="platform" type="CSGBox" parent="Platforms/lift"] +use_collision = true +width = 4.0 +height = 1.0 +depth = 4.0 +material = SubResource( 36 ) + +[node name="AnimationPlayer" type="AnimationPlayer" parent="Platforms/lift/platform"] +autoplay = "move" +anims/move = SubResource( 37 ) + +[node name="platform2" type="CSGBox" parent="Platforms/lift"] +transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 4.86647, 0, 5.22355 ) +use_collision = true +width = 4.0 +height = 1.0 +depth = 4.0 +material = SubResource( 36 ) + +[node name="AnimationPlayer" type="AnimationPlayer" parent="Platforms/lift/platform2"] +autoplay = "move" +anims/RESET = SubResource( 38 ) +anims/move = SubResource( 39 ) + +[node name="lego" type="StaticBody" parent="Platforms"] +transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -5, -1.9, -8 ) +__meta__ = { +"_edit_group_": true +} + +[node name="CollisionShape" type="CollisionShape" parent="Platforms/lego"] +shape = SubResource( 20 ) + +[node name="MeshInstance" type="MeshInstance" parent="Platforms/lego"] +mesh = SubResource( 21 ) +material/0 = SubResource( 22 ) + +[node name="CSGPolygon" type="CSGPolygon" parent="Platforms"] +transform = Transform( 1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, 0, 1, -12 ) +use_collision = true +polygon = PoolVector2Array( 3, -4, 3, 1, 4, 1, 4, -4 ) +mode = 1 +spin_degrees = 360.0 +spin_sides = 16 +material = SubResource( 36 ) + +[node name="DirectionalLight" type="DirectionalLight" parent="."] +transform = Transform( 0.707107, -0.5, 0.5, 0, 0.707107, 0.707107, -0.707107, -0.5, 0.5, 0, 5, 0 ) +light_energy = 0.65 + +[node name="WorldEnvironment" type="WorldEnvironment" parent="."] +environment = SubResource( 24 ) + +[node name="MusicChangedSlowAction" type="Node" parent="."] +script = ExtResource( 1 ) + +[node name="Obstacles" type="Spatial" parent="."] + +[node name="SwingingAxe" parent="Obstacles" instance=ExtResource( 3 )] +transform = Transform( 0.50747, -0.861669, 0, 0.861669, 0.50747, 0, 0, 0, 1, 0, 6.26892, -2.22879 ) + +[node name="SwingingAxe2" parent="Obstacles" instance=ExtResource( 3 )] +transform = Transform( 0.50747, -0.861669, 0, 0.861669, 0.50747, 0, 0, 0, 1, 0, 6.26892, -0.83494 ) diff --git a/BlenderFiles/SwingingAxe/swinging_axe.blend b/BlenderFiles/SwingingAxe/swinging_axe.blend new file mode 100644 index 0000000..5d1deb9 Binary files /dev/null and b/BlenderFiles/SwingingAxe/swinging_axe.blend differ diff --git a/Obstacles/SwingingAxe.gd b/Obstacles/SwingingAxe.gd new file mode 100644 index 0000000..d8d9a2e --- /dev/null +++ b/Obstacles/SwingingAxe.gd @@ -0,0 +1,16 @@ +extends Spatial + + +# Declare member variables here. Examples: +# var a = 2 +# var b = "text" + + +# Called when the node enters the scene tree for the first time. +func _ready(): + pass # Replace with function body. + + +# Called every frame. 'delta' is the elapsed time since the previous frame. +#func _process(delta): +# pass diff --git a/Obstacles/SwingingAxe.tscn b/Obstacles/SwingingAxe.tscn new file mode 100644 index 0000000..bb1a007 --- /dev/null +++ b/Obstacles/SwingingAxe.tscn @@ -0,0 +1,43 @@ +[gd_scene load_steps=5 format=2] + +[ext_resource path="res://Obstacles/swinging_axe.obj" type="ArrayMesh" id=1] + +[sub_resource type="SpatialMaterial" id=1] +metallic = 1.0 + +[sub_resource type="BoxShape" id=2] +extents = Vector3( 3, 1.27738, 1 ) + +[sub_resource type="Animation" id=3] +resource_name = "swing" +length = 3.0 +loop = true +tracks/0/type = "value" +tracks/0/path = NodePath(".:rotation_degrees") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/keys = { +"times": PoolRealArray( 0, 1.5, 3 ), +"transitions": PoolRealArray( 2.63902, 2.63902, 2.54912 ), +"update": 0, +"values": [ Vector3( 0, 0, 80 ), Vector3( 0, 0, -80 ), Vector3( 0, 0, 80 ) ] +} + +[node name="SwingingAxe" type="Spatial"] +transform = Transform( 0.50747, -0.861669, 0, 0.861669, 0.50747, 0, 0, 0, 1, 0, 0, 0 ) + +[node name="MeshInstance" type="MeshInstance" parent="."] +mesh = ExtResource( 1 ) +material/0 = SubResource( 1 ) + +[node name="StaticBody" type="StaticBody" parent="MeshInstance"] + +[node name="CollisionShape" type="CollisionShape" parent="MeshInstance/StaticBody"] +transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -5.6317, 0 ) +shape = SubResource( 2 ) + +[node name="AnimationPlayer" type="AnimationPlayer" parent="."] +autoplay = "swing" +anims/swing = SubResource( 3 ) diff --git a/Obstacles/swinging_axe.mtl b/Obstacles/swinging_axe.mtl new file mode 100644 index 0000000..68e176a --- /dev/null +++ b/Obstacles/swinging_axe.mtl @@ -0,0 +1,12 @@ +# Blender MTL File: 'swinging_axe.blend' +# Material Count: 1 + +newmtl Material +Ns 96.078431 +Ka 1.000000 1.000000 1.000000 +Kd 0.640000 0.640000 0.640000 +Ks 0.500000 0.500000 0.500000 +Ke 0.000000 0.000000 0.000000 +Ni 1.000000 +d 1.000000 +illum 2 diff --git a/Obstacles/swinging_axe.obj b/Obstacles/swinging_axe.obj new file mode 100644 index 0000000..8c78a0b --- /dev/null +++ b/Obstacles/swinging_axe.obj @@ -0,0 +1,1233 @@ +# Blender v2.79 (sub 0) OBJ File: 'swinging_axe.blend' +# www.blender.org +mtllib swinging_axe.mtl +o Cube +v 0.087166 -6.787706 0.122706 +v 0.043583 -6.369874 0.158246 +v 0.087166 -1.644853 0.000000 +v 0.043583 -1.644853 0.158246 +v 0.043583 0.247255 0.122706 +v 0.087165 -1.644853 0.122706 +v 0.043583 -6.839935 0.122706 +v 0.526036 -6.662556 0.062090 +v 1.377917 -6.265369 0.037014 +v 0.535321 -6.703069 0.000000 +v 0.451750 -6.338454 -0.062090 +v 0.442464 -6.297941 0.000000 +v 1.927868 -5.627644 -0.195410 +v 1.401120 -6.289759 0.000000 +v 1.169087 -6.045859 0.000000 +v 1.192291 -6.070249 -0.037013 +v 0.043583 -1.644853 -0.087166 +v 0.043583 -6.787706 -0.087166 +v 0.087166 -6.369874 0.122706 +v 0.043583 0.247255 0.000000 +v 0.043583 -6.839935 0.000000 +v 0.087166 -6.683248 0.122706 +v 0.087166 -6.578790 0.122706 +v 0.087166 -6.474332 0.122706 +v 0.043583 -6.369874 -0.087166 +v 0.043583 -6.474332 -0.087166 +v 0.043583 -6.578790 -0.087166 +v 0.043583 -6.683248 -0.087166 +v 1.377917 -6.265369 -0.037013 +v 1.331510 -6.216589 -0.037013 +v 1.285104 -6.167809 -0.037013 +v 1.238697 -6.119029 -0.037013 +v 1.646431 -5.425593 0.124323 +v 1.735258 -5.953365 0.000000 +v 1.899407 -5.607212 -0.219373 +v 1.623917 -5.873430 0.000000 +v 0.526036 -6.662556 -0.062090 +v 0.507464 -6.581530 -0.062090 +v 0.488893 -6.500505 -0.062090 +v 0.470321 -6.419479 -0.062090 +v 1.192290 -6.070249 0.037014 +v 1.238697 -6.119029 0.037014 +v 1.285104 -6.167809 0.037014 +v 1.331510 -6.216589 0.037014 +v 0.451750 -6.338454 0.062090 +v 0.470321 -6.419479 0.062090 +v 0.488893 -6.500504 0.062090 +v 0.507464 -6.581530 0.062090 +v 0.043583 -6.787706 0.158246 +v 0.043583 -6.683248 0.158246 +v 0.043583 -6.578790 0.158246 +v 0.043583 -6.474332 0.158246 +v 1.724616 -5.017723 0.296571 +v 2.513837 -5.584327 0.296572 +v 2.119227 -5.301025 -0.390820 +v 1.899407 -5.607212 -0.171447 +v 1.646431 -5.425593 0.172249 +v 1.870947 -5.586779 -0.195410 +v 2.152382 -5.788830 0.124323 +v 2.152382 -5.788830 0.172249 +v 1.617971 -5.405161 0.148286 +v 1.674892 -5.446026 0.148286 +v 2.180843 -5.809262 0.148286 +v 2.123922 -5.768397 0.148286 +v -0.087166 -6.787706 0.122706 +v -0.043583 -6.369874 0.158246 +v -0.087166 -1.644853 0.000000 +v -0.043583 -1.644853 0.158246 +v 0.000000 -1.644853 0.122706 +v -0.043583 0.247255 0.122706 +v 0.000000 -6.787706 0.000000 +v -0.087165 -1.644853 0.122706 +v -0.043583 -6.839935 0.122706 +v -0.526036 -6.662556 0.062090 +v -1.377917 -6.265369 0.037014 +v -0.535321 -6.703069 0.000000 +v -0.451750 -6.338454 -0.062090 +v -0.442464 -6.297941 0.000000 +v -1.927867 -5.627644 -0.195410 +v -1.401120 -6.289759 0.000000 +v -1.169087 -6.045859 0.000000 +v -1.192290 -6.070249 -0.037013 +v 0.000000 -6.787706 0.122706 +v -0.043583 -1.644853 -0.087166 +v -0.043583 -6.787706 -0.087166 +v -0.087166 -6.369874 0.122706 +v -0.043583 0.247255 0.000000 +v -0.043583 -6.839935 0.000000 +v -0.087166 -6.683248 0.122706 +v -0.087166 -6.578790 0.122706 +v -0.087166 -6.474332 0.122706 +v -0.043583 -6.369874 -0.087166 +v -0.043583 -6.474332 -0.087166 +v -0.043583 -6.578790 -0.087166 +v -0.043583 -6.683248 -0.087166 +v 0.000000 -6.369874 0.122706 +v 0.000000 -6.474332 0.122706 +v 0.000000 -6.578790 0.122706 +v 0.000000 -6.683248 0.122706 +v -1.377917 -6.265369 -0.037013 +v -1.331510 -6.216589 -0.037013 +v -1.285104 -6.167809 -0.037013 +v -1.238697 -6.119029 -0.037013 +v -1.646431 -5.425593 0.124323 +v -1.735258 -5.953365 0.000000 +v -1.899407 -5.607212 -0.219373 +v -1.623917 -5.873431 0.000000 +v -0.526036 -6.662556 -0.062090 +v -0.507464 -6.581531 -0.062090 +v -0.488893 -6.500505 -0.062090 +v -0.470321 -6.419479 -0.062090 +v -1.192290 -6.070249 0.037014 +v -1.238697 -6.119029 0.037014 +v -1.285104 -6.167809 0.037014 +v -1.331510 -6.216589 0.037014 +v -0.451750 -6.338454 0.062090 +v -0.470321 -6.419479 0.062090 +v -0.488893 -6.500505 0.062090 +v -0.507464 -6.581531 0.062090 +v 0.000000 -2.310375 0.000000 +v 0.000000 -6.474332 0.000000 +v 0.000000 -6.578790 0.000000 +v 0.000000 -6.683248 0.000000 +v -0.043583 -6.787706 0.158246 +v -0.043583 -6.683248 0.158246 +v -0.043583 -6.578790 0.158246 +v -0.043583 -6.474332 0.158246 +v -1.724616 -5.017723 0.296571 +v -2.513837 -5.584327 0.296572 +v -2.119227 -5.301025 -0.390820 +v -1.899407 -5.607212 -0.171447 +v -1.646431 -5.425593 0.172249 +v -1.870947 -5.586779 -0.195410 +v -2.152382 -5.788830 0.124323 +v -2.152382 -5.788830 0.172249 +v -1.617971 -5.405161 0.148286 +v -1.674892 -5.446026 0.148286 +v -2.180843 -5.809262 0.148286 +v -2.123922 -5.768397 0.148286 +v 0.087166 -6.839935 0.000000 +v 0.000000 -6.317645 0.122706 +v 0.087166 -1.644853 -0.087166 +v 0.000000 -6.369874 0.158246 +v 0.087166 -1.644853 0.087166 +v 0.087165 0.247255 0.122706 +v 0.087166 -6.839935 0.122706 +v 0.043583 -6.317645 0.158246 +v 0.087166 0.247255 0.000000 +v 0.043583 0.247255 0.158247 +v 0.000000 -1.644853 0.158246 +v 0.000000 -6.787706 0.158246 +v 0.087166 -6.369874 -0.087166 +v 0.087166 -6.369874 0.087166 +v 0.000000 0.247255 0.122706 +v 0.000000 -6.839935 0.122706 +v 0.087165 -1.644853 0.158246 +v 0.043583 -6.839935 0.158246 +v 0.087166 -6.369874 0.158246 +v 0.087166 -6.317645 0.000000 +v 0.983477 -6.566202 0.000000 +v 0.816334 -6.307034 -0.037013 +v 0.816334 -6.307034 0.037014 +v 0.797763 -6.278237 0.000000 +v 0.535321 -6.703069 0.062090 +v 0.442464 -6.297941 0.062090 +v 0.535321 -6.703069 -0.062090 +v 0.442464 -6.297941 -0.062090 +v 1.818763 -6.013316 0.000000 +v 1.568247 -5.833464 -0.037013 +v 1.568247 -5.833464 0.037014 +v 1.540412 -5.813480 0.000000 +v 1.401120 -6.289759 0.037014 +v 1.169087 -6.045859 0.037014 +v 1.401120 -6.289759 -0.037013 +v 1.169087 -6.045859 -0.037013 +v 0.043583 -6.839935 -0.087166 +v 0.043583 -6.839935 0.087166 +v 0.043583 0.247255 -0.087165 +v 0.043583 0.247255 0.087166 +v 0.043583 -6.317645 -0.087166 +v 0.087166 -6.317645 0.122706 +v 0.000000 -6.787706 0.087166 +v 0.000000 -1.644853 -0.087166 +v 0.000000 -6.369874 -0.087166 +v 0.000000 -1.644853 0.087166 +v 0.000000 0.247255 0.000000 +v 0.000000 -6.839935 0.000000 +v 0.000000 -6.474332 0.158246 +v 0.000000 -6.578790 0.158246 +v 0.000000 -6.683248 0.158246 +v 0.087166 -6.787706 -0.087166 +v 0.087166 -6.683248 -0.087166 +v 0.087166 -6.578790 -0.087166 +v 0.087166 -6.474332 -0.087166 +v 0.087166 -6.787706 0.087166 +v 0.087166 -6.683248 0.087166 +v 0.087166 -6.578790 0.087166 +v 0.087166 -6.474332 0.087166 +v 0.087166 -6.787706 0.158246 +v 0.087166 -6.683248 0.158246 +v 0.087166 -6.578790 0.158246 +v 0.087166 -6.474332 0.158246 +v 0.964906 -6.537406 -0.037013 +v 0.927763 -6.479813 -0.037013 +v 0.890620 -6.422220 -0.037013 +v 0.853477 -6.364627 -0.037013 +v 0.964906 -6.537406 0.037014 +v 0.927763 -6.479813 0.037014 +v 0.890620 -6.422220 0.037014 +v 0.853477 -6.364627 0.037014 +v 1.790928 -5.993332 -0.037013 +v 1.735258 -5.953365 -0.037013 +v 1.679587 -5.913398 -0.037013 +v 1.623917 -5.873431 -0.037013 +v 1.790928 -5.993332 0.037014 +v 1.735258 -5.953365 0.037014 +v 1.679587 -5.913398 0.037014 +v 1.623917 -5.873431 0.037014 +v 0.000000 -6.369874 0.087166 +v 0.000000 -6.474332 0.087166 +v 0.000000 -6.578790 0.087166 +v 0.000000 -6.683248 0.087166 +v 0.000000 -6.787706 -0.087166 +v 0.000000 -6.683248 -0.087166 +v 0.000000 -6.578790 -0.087166 +v 0.000000 -6.474332 -0.087166 +v 0.087166 -6.735476 0.122706 +v 0.087166 -6.631019 0.122706 +v 0.087166 -6.526561 0.122706 +v 0.087166 -6.422103 0.122706 +v 0.043583 -6.422103 -0.087166 +v 0.043583 -6.526561 -0.087166 +v 0.043583 -6.631019 -0.087166 +v 0.043583 -6.735476 -0.087166 +v 0.000000 -6.422103 0.122706 +v 0.000000 -6.526561 0.122706 +v 0.000000 -6.631019 0.122706 +v 0.000000 -6.735477 0.122706 +v 1.354713 -6.240979 -0.037013 +v 1.308307 -6.192199 -0.037013 +v 1.261900 -6.143419 -0.037013 +v 1.215494 -6.094639 -0.037013 +v 1.763093 -5.973349 0.000000 +v 1.707422 -5.933382 0.000000 +v 1.651752 -5.893414 0.000000 +v 1.596082 -5.853447 0.000000 +v 0.516750 -6.622043 -0.062090 +v 0.498178 -6.541018 -0.062090 +v 0.479607 -6.459992 -0.062090 +v 0.461036 -6.378967 -0.062090 +v 1.215494 -6.094639 0.037014 +v 1.261900 -6.143419 0.037014 +v 1.308307 -6.192199 0.037014 +v 1.354713 -6.240979 0.037014 +v 0.461036 -6.378967 0.062090 +v 0.479607 -6.459992 0.062090 +v 0.498178 -6.541018 0.062090 +v 0.516750 -6.622043 0.062090 +v 0.000000 -6.422103 0.000000 +v 0.000000 -6.526561 0.000000 +v 0.000000 -6.631019 0.000000 +v 0.000000 -6.735477 0.000000 +v 0.043583 -6.735477 0.158246 +v 0.043583 -6.631019 0.158246 +v 0.043583 -6.526561 0.158246 +v 0.043583 -6.422103 0.158246 +v 2.542922 -5.605208 0.296572 +v 1.724616 -5.017723 0.285659 +v 1.724616 -5.017723 0.307484 +v 1.695530 -4.996841 0.296571 +v 2.513837 -5.584327 0.285659 +v 2.119227 -5.301025 -0.401732 +v 2.513837 -5.584327 0.307484 +v 2.119227 -5.301025 -0.379907 +v 2.484751 -5.563446 0.296572 +v 2.148313 -5.321907 -0.390820 +v 2.090141 -5.280144 -0.390820 +v 1.753702 -5.038605 0.296571 +v 1.870947 -5.586779 -0.219373 +v 1.927868 -5.627644 -0.219373 +v 1.617971 -5.405161 0.124323 +v 1.674892 -5.446026 0.124323 +v 1.927868 -5.627644 -0.171447 +v 1.870947 -5.586779 -0.171447 +v 1.674892 -5.446026 0.172249 +v 1.617971 -5.405161 0.172249 +v 2.123922 -5.768397 0.124323 +v 2.180843 -5.809262 0.124323 +v 2.180843 -5.809262 0.172249 +v 2.123922 -5.768397 0.172249 +v -0.087166 -6.839935 0.000000 +v -0.087166 -1.644853 -0.087166 +v -0.087166 -1.644853 0.087166 +v -0.087165 0.247255 0.122706 +v -0.087166 -6.839935 0.122706 +v -0.043583 -6.317645 0.158246 +v -0.087166 0.247255 0.000000 +v -0.043583 0.247255 0.158247 +v -0.087166 -6.369874 -0.087166 +v -0.087166 -6.369874 0.087166 +v -0.087165 -1.644853 0.158246 +v -0.043583 -6.839935 0.158246 +v -0.087166 -6.369874 0.158246 +v -0.087166 -6.317645 0.000000 +v -0.983477 -6.566202 0.000000 +v -0.816334 -6.307034 -0.037013 +v -0.816334 -6.307034 0.037014 +v -0.797763 -6.278237 0.000000 +v -0.535321 -6.703069 0.062090 +v -0.442464 -6.297941 0.062090 +v -0.535321 -6.703069 -0.062090 +v -0.442464 -6.297941 -0.062090 +v -1.818763 -6.013316 0.000000 +v -1.568247 -5.833464 -0.037013 +v -1.568247 -5.833464 0.037014 +v -1.540412 -5.813480 0.000000 +v -1.401120 -6.289759 0.037014 +v -1.169087 -6.045859 0.037014 +v -1.401120 -6.289759 -0.037013 +v -1.169087 -6.045859 -0.037013 +v -0.043583 -6.839935 -0.087166 +v -0.043583 -6.839935 0.087166 +v -0.043583 0.247255 -0.087165 +v -0.043583 0.247255 0.087166 +v -0.043583 -6.317645 -0.087166 +v -0.087166 -6.317645 0.122706 +v -0.087166 -6.787706 -0.087166 +v -0.087166 -6.683248 -0.087166 +v -0.087166 -6.578790 -0.087166 +v -0.087166 -6.474332 -0.087166 +v -0.087166 -6.787706 0.087166 +v -0.087166 -6.683248 0.087166 +v -0.087166 -6.578790 0.087166 +v -0.087166 -6.474332 0.087166 +v -0.087166 -6.787706 0.158246 +v -0.087166 -6.683248 0.158246 +v -0.087166 -6.578790 0.158246 +v -0.087166 -6.474332 0.158246 +v -0.964906 -6.537406 -0.037013 +v -0.927763 -6.479813 -0.037013 +v -0.890620 -6.422220 -0.037013 +v -0.853477 -6.364627 -0.037013 +v -0.964906 -6.537406 0.037014 +v -0.927763 -6.479813 0.037014 +v -0.890620 -6.422220 0.037014 +v -0.853477 -6.364627 0.037014 +v -1.790928 -5.993332 -0.037013 +v -1.735258 -5.953365 -0.037013 +v -1.679587 -5.913398 -0.037013 +v -1.623917 -5.873431 -0.037013 +v -1.790928 -5.993332 0.037014 +v -1.735258 -5.953365 0.037014 +v -1.679587 -5.913398 0.037014 +v -1.623917 -5.873431 0.037014 +v -0.087166 -6.735476 0.122706 +v -0.087166 -6.631019 0.122706 +v -0.087166 -6.526561 0.122706 +v -0.087166 -6.422103 0.122706 +v -0.043583 -6.422103 -0.087166 +v -0.043583 -6.526561 -0.087166 +v -0.043583 -6.631019 -0.087166 +v -0.043583 -6.735476 -0.087166 +v -1.354713 -6.240979 -0.037013 +v -1.308307 -6.192199 -0.037013 +v -1.261900 -6.143419 -0.037013 +v -1.215494 -6.094639 -0.037013 +v -1.763093 -5.973349 0.000000 +v -1.707422 -5.933382 0.000000 +v -1.651752 -5.893414 0.000000 +v -1.596082 -5.853447 0.000000 +v -0.516750 -6.622043 -0.062090 +v -0.498178 -6.541018 -0.062090 +v -0.479607 -6.459992 -0.062090 +v -0.461036 -6.378967 -0.062090 +v -1.215494 -6.094639 0.037014 +v -1.261900 -6.143419 0.037014 +v -1.308307 -6.192199 0.037014 +v -1.354713 -6.240979 0.037014 +v -0.461036 -6.378967 0.062090 +v -0.479607 -6.459992 0.062090 +v -0.498178 -6.541018 0.062090 +v -0.516750 -6.622043 0.062090 +v -0.043583 -6.735477 0.158246 +v -0.043583 -6.631019 0.158246 +v -0.043583 -6.526561 0.158246 +v -0.043583 -6.422103 0.158246 +v -2.542922 -5.605208 0.296572 +v -1.724616 -5.017723 0.285659 +v -1.724616 -5.017723 0.307484 +v -1.695530 -4.996841 0.296571 +v -2.513837 -5.584327 0.285659 +v -2.119227 -5.301025 -0.401732 +v -2.513837 -5.584327 0.307484 +v -2.119227 -5.301025 -0.379907 +v -2.484751 -5.563446 0.296572 +v -2.148313 -5.321907 -0.390820 +v -2.090141 -5.280144 -0.390820 +v -1.753702 -5.038605 0.296571 +v -1.870947 -5.586779 -0.219373 +v -1.927868 -5.627644 -0.219373 +v -1.617971 -5.405161 0.124323 +v -1.674892 -5.446026 0.124323 +v -1.927868 -5.627644 -0.171447 +v -1.870947 -5.586779 -0.171447 +v -1.674892 -5.446026 0.172249 +v -1.617971 -5.405161 0.172249 +v -2.123922 -5.768397 0.124323 +v -2.180843 -5.809262 0.124323 +v -2.180843 -5.809262 0.172249 +v -2.123922 -5.768397 0.172249 +v 0.087166 -6.839935 -0.087166 +v 0.087166 -6.839935 0.087166 +v 0.087166 0.247255 -0.087165 +v 0.087165 0.247255 0.087166 +v 0.087166 -6.839935 0.158246 +v 0.087166 -6.317645 -0.087166 +v 0.087166 -6.317645 0.087166 +v 0.087165 0.247255 0.158247 +v 0.087166 -6.317645 0.158246 +v 0.983477 -6.566202 -0.037013 +v 0.983477 -6.566202 0.037014 +v 0.797763 -6.278237 -0.037013 +v 0.797763 -6.278237 0.037014 +v 1.818763 -6.013316 -0.037013 +v 1.818763 -6.013316 0.037014 +v 1.540412 -5.813480 -0.037013 +v 1.540412 -5.813480 0.037014 +v 0.087166 -6.735476 -0.087166 +v 0.087166 -6.631019 -0.087166 +v 0.087166 -6.526561 -0.087166 +v 0.087166 -6.422103 -0.087166 +v 0.087166 -6.735476 0.087166 +v 0.087166 -6.631019 0.087166 +v 0.087166 -6.526561 0.087166 +v 0.087166 -6.422103 0.087166 +v 0.087166 -6.735476 0.158246 +v 0.087166 -6.631019 0.158246 +v 0.087166 -6.526561 0.158246 +v 0.087166 -6.422103 0.158246 +v 0.946334 -6.508610 -0.037013 +v 0.909191 -6.451016 -0.037013 +v 0.872048 -6.393424 -0.037013 +v 0.834906 -6.335831 -0.037013 +v 0.946334 -6.508610 0.037014 +v 0.909191 -6.451016 0.037014 +v 0.872048 -6.393424 0.037014 +v 0.834906 -6.335831 0.037014 +v 1.763093 -5.973349 -0.037013 +v 1.707422 -5.933382 -0.037013 +v 1.651752 -5.893414 -0.037013 +v 1.596082 -5.853447 -0.037013 +v 1.763093 -5.973349 0.037014 +v 1.707422 -5.933382 0.037014 +v 1.651752 -5.893414 0.037014 +v 1.596082 -5.853447 0.037014 +v 2.542922 -5.605208 0.285659 +v 2.542922 -5.605208 0.307484 +v 1.753702 -5.038605 0.285659 +v 1.695530 -4.996841 0.285659 +v 1.753702 -5.038605 0.307484 +v 1.695530 -4.996841 0.307484 +v 2.484751 -5.563446 0.285659 +v 2.148313 -5.321907 -0.401732 +v 2.090141 -5.280144 -0.401732 +v 2.484751 -5.563446 0.307484 +v 2.148313 -5.321907 -0.379907 +v 2.090141 -5.280144 -0.379907 +v -0.087166 -6.839935 -0.087166 +v -0.087166 -6.839935 0.087166 +v 0.000000 -6.317645 0.158246 +v 0.000000 0.247255 0.158246 +v -0.087166 0.247255 -0.087165 +v -0.087165 0.247255 0.087166 +v 0.000000 -6.839935 0.158246 +v -0.087166 -6.839935 0.158246 +v -0.087166 -6.317645 -0.087166 +v -0.087166 -6.317645 0.087166 +v -0.087165 0.247255 0.158247 +v -0.087166 -6.317645 0.158246 +v -0.983477 -6.566202 -0.037013 +v -0.983477 -6.566202 0.037014 +v -0.797763 -6.278237 -0.037013 +v -0.797763 -6.278237 0.037014 +v -1.818763 -6.013316 -0.037013 +v -1.818763 -6.013316 0.037014 +v -1.540412 -5.813480 -0.037013 +v -1.540412 -5.813480 0.037014 +v 0.000000 -6.839935 -0.087166 +v 0.000000 -6.839935 0.087166 +v 0.000000 0.247255 -0.087166 +v 0.000000 0.247255 0.087166 +v 0.000000 -6.317645 -0.087166 +v 0.000000 -6.317645 0.087166 +v 0.000000 -6.422103 0.158246 +v 0.000000 -6.526561 0.158246 +v 0.000000 -6.631019 0.158246 +v 0.000000 -6.735477 0.158246 +v -0.087166 -6.735476 -0.087166 +v -0.087166 -6.631019 -0.087166 +v -0.087166 -6.526561 -0.087166 +v -0.087166 -6.422103 -0.087166 +v -0.087166 -6.735476 0.087166 +v -0.087166 -6.631019 0.087166 +v -0.087166 -6.526561 0.087166 +v -0.087166 -6.422103 0.087166 +v -0.087166 -6.735476 0.158246 +v -0.087166 -6.631019 0.158246 +v -0.087166 -6.526561 0.158246 +v -0.087166 -6.422103 0.158246 +v -0.946334 -6.508610 -0.037013 +v -0.909191 -6.451016 -0.037013 +v -0.872048 -6.393424 -0.037013 +v -0.834906 -6.335831 -0.037013 +v -0.946334 -6.508610 0.037014 +v -0.909191 -6.451016 0.037014 +v -0.872048 -6.393424 0.037014 +v -0.834906 -6.335831 0.037014 +v -1.763093 -5.973349 -0.037013 +v -1.707422 -5.933382 -0.037013 +v -1.651752 -5.893414 -0.037013 +v -1.596082 -5.853447 -0.037013 +v -1.763093 -5.973349 0.037014 +v -1.707422 -5.933382 0.037014 +v -1.651752 -5.893414 0.037014 +v -1.596082 -5.853447 0.037014 +v 0.000000 -6.422103 0.087166 +v 0.000000 -6.526561 0.087166 +v 0.000000 -6.631019 0.087166 +v 0.000000 -6.735477 0.087166 +v 0.000000 -6.735476 -0.087166 +v 0.000000 -6.631019 -0.087166 +v 0.000000 -6.526561 -0.087166 +v 0.000000 -6.422103 -0.087166 +v -2.542922 -5.605208 0.285659 +v -2.542922 -5.605208 0.307484 +v -1.753702 -5.038605 0.285659 +v -1.695530 -4.996841 0.285659 +v -1.753702 -5.038605 0.307484 +v -1.695530 -4.996841 0.307484 +v -2.484751 -5.563446 0.285659 +v -2.148313 -5.321907 -0.401732 +v -2.090141 -5.280144 -0.401732 +v -2.484751 -5.563446 0.307484 +v -2.148313 -5.321907 -0.379907 +v -2.090141 -5.280144 -0.379907 +vn 1.0000 0.0000 0.0000 +vn 0.0000 0.0000 1.0000 +vn 0.0000 1.0000 0.0000 +vn 0.0000 -1.0000 -0.0000 +vn 0.0561 0.0056 0.9984 +vn 0.0548 0.0055 0.9985 +vn 0.0505 0.0203 0.9985 +vn 0.0519 0.0209 0.9984 +vn 0.2921 -0.9564 0.0000 +vn 0.0671 0.0067 -0.9977 +vn 0.0690 0.0069 -0.9976 +vn 0.0676 0.0272 -0.9973 +vn 0.0651 0.0262 -0.9975 +vn -0.0554 0.9985 -0.0000 +vn 0.8111 -0.5849 0.0000 +vn 0.5520 -0.8339 0.0000 +vn -0.5305 0.8477 0.0000 +vn 0.0000 -0.0000 -1.0000 +vn 0.2295 0.3197 -0.9193 +vn 0.5832 0.8123 -0.0000 +vn -0.2540 -0.3538 -0.9002 +vn 0.0548 0.0055 -0.9985 +vn 0.0561 0.0056 -0.9984 +vn 0.0519 0.0209 -0.9984 +vn 0.0505 0.0203 -0.9985 +vn 0.0575 0.0058 -0.9983 +vn 0.0589 0.0059 -0.9982 +vn 0.0551 0.0222 -0.9982 +vn 0.0535 0.0215 -0.9983 +vn 0.0603 0.0060 -0.9982 +vn 0.0619 0.0062 -0.9981 +vn 0.0587 0.0236 -0.9980 +vn 0.0569 0.0229 -0.9981 +vn 0.0635 0.0064 -0.9980 +vn 0.0653 0.0065 -0.9978 +vn 0.0628 0.0253 -0.9977 +vn 0.0607 0.0244 -0.9979 +vn 0.0690 0.0069 0.9976 +vn 0.0671 0.0067 0.9977 +vn 0.0651 0.0262 0.9975 +vn 0.0676 0.0272 0.9973 +vn 0.0653 0.0065 0.9978 +vn 0.0635 0.0064 0.9980 +vn 0.0607 0.0244 0.9979 +vn 0.0628 0.0253 0.9977 +vn 0.0619 0.0062 0.9981 +vn 0.0603 0.0060 0.9982 +vn 0.0569 0.0229 0.9981 +vn 0.0587 0.0236 0.9980 +vn 0.0589 0.0059 0.9982 +vn 0.0575 0.0058 0.9983 +vn 0.0535 0.0215 0.9983 +vn 0.0551 0.0222 0.9982 +vn 0.2823 0.3932 0.8751 +vn 0.2823 0.3931 0.8751 +vn 0.2822 0.3931 0.8751 +vn -0.1970 -0.2743 0.9412 +vn -0.1969 -0.2743 0.9413 +vn -0.1970 -0.2743 0.9413 +vn -0.8135 0.5815 0.0000 +vn -0.9824 0.1866 0.0000 +vn 0.9818 -0.1899 0.0000 +vn 0.4910 -0.8712 0.0000 +vn -0.4939 0.8695 0.0000 +vn -1.0000 0.0000 0.0000 +vn -0.0561 0.0056 0.9984 +vn -0.0519 0.0209 0.9984 +vn -0.0505 0.0203 0.9985 +vn -0.0548 0.0055 0.9985 +vn -0.2921 -0.9564 0.0000 +vn -0.0671 0.0067 -0.9977 +vn -0.0651 0.0262 -0.9975 +vn -0.0676 0.0272 -0.9973 +vn -0.0690 0.0069 -0.9976 +vn 0.0554 0.9985 0.0000 +vn -0.8111 -0.5849 0.0000 +vn -0.5520 -0.8339 0.0000 +vn 0.5305 0.8477 0.0000 +vn -0.2295 0.3197 -0.9193 +vn -0.5832 0.8123 0.0000 +vn 0.2540 -0.3538 -0.9002 +vn -0.0548 0.0055 -0.9985 +vn -0.0505 0.0203 -0.9985 +vn -0.0519 0.0209 -0.9984 +vn -0.0561 0.0056 -0.9984 +vn -0.0575 0.0058 -0.9983 +vn -0.0535 0.0215 -0.9983 +vn -0.0551 0.0222 -0.9982 +vn -0.0589 0.0059 -0.9982 +vn -0.0603 0.0060 -0.9982 +vn -0.0569 0.0229 -0.9981 +vn -0.0587 0.0236 -0.9980 +vn -0.0619 0.0062 -0.9981 +vn -0.0635 0.0064 -0.9980 +vn -0.0607 0.0244 -0.9979 +vn -0.0628 0.0253 -0.9977 +vn -0.0653 0.0065 -0.9978 +vn -0.0690 0.0069 0.9976 +vn -0.0676 0.0272 0.9973 +vn -0.0651 0.0262 0.9975 +vn -0.0671 0.0067 0.9977 +vn -0.0653 0.0065 0.9978 +vn -0.0628 0.0253 0.9977 +vn -0.0607 0.0244 0.9979 +vn -0.0635 0.0064 0.9980 +vn -0.0619 0.0062 0.9981 +vn -0.0587 0.0236 0.9980 +vn -0.0569 0.0229 0.9981 +vn -0.0603 0.0060 0.9982 +vn -0.0589 0.0059 0.9982 +vn -0.0551 0.0222 0.9982 +vn -0.0535 0.0215 0.9983 +vn -0.0575 0.0058 0.9983 +vn -0.2823 0.3932 0.8751 +vn -0.2822 0.3931 0.8751 +vn -0.2823 0.3931 0.8751 +vn 0.1970 -0.2743 0.9412 +vn 0.1970 -0.2743 0.9413 +vn 0.1969 -0.2743 0.9413 +vn 0.8135 0.5815 0.0000 +vn 0.9824 0.1866 0.0000 +vn -0.9818 -0.1899 -0.0000 +vn -0.4910 -0.8712 0.0000 +vn 0.4939 0.8695 0.0000 +usemtl Material +s off +f 1//1 146//1 412//1 195//1 +f 1//1 195//1 432//1 227//1 +f 1//1 227//1 436//1 199//1 +f 1//1 199//1 415//1 146//1 +f 2//2 266//2 439//2 158//2 +f 2//2 158//2 419//2 147//2 +f 2//2 147//2 470//2 143//2 +f 2//2 143//2 494//2 266//2 +f 3//1 159//1 416//1 142//1 +f 3//1 142//1 413//1 148//1 +f 3//1 148//1 414//1 144//1 +f 3//1 144//1 417//1 159//1 +f 4//2 147//2 419//2 156//2 +f 4//2 156//2 418//2 149//2 +f 4//2 149//2 471//2 150//2 +f 4//2 150//2 470//2 147//2 +f 5//3 145//3 414//3 179//3 +f 5//3 179//3 491//3 154//3 +f 5//3 154//3 471//3 149//3 +f 5//3 149//3 418//3 145//3 +f 6//1 181//1 417//1 144//1 +f 6//1 144//1 414//1 145//1 +f 6//1 145//1 418//1 156//1 +f 6//1 156//1 419//1 181//1 +f 7//4 155//4 489//4 177//4 +f 7//4 177//4 412//4 146//4 +f 7//4 146//4 415//4 157//4 +f 7//4 157//4 474//4 155//4 +f 8//5 258//5 432//5 195//5 +f 8//6 195//6 412//6 164//6 +f 8//7 164//7 421//7 207//7 +f 8//8 207//8 444//8 258//8 +f 9//2 254//2 444//2 207//2 +f 9//2 207//2 421//2 172//2 +f 9//2 172//2 425//2 215//2 +f 9//2 215//2 452//2 254//2 +f 10//9 164//9 412//9 140//9 +f 10//9 140//9 411//9 166//9 +f 10//9 166//9 420//9 160//9 +f 10//9 160//9 421//9 164//9 +f 11//10 250//10 431//10 152//10 +f 11//11 152//11 416//11 167//11 +f 11//12 167//12 422//12 161//12 +f 11//13 161//13 443//13 250//13 +f 12//14 167//14 416//14 159//14 +f 12//14 159//14 417//14 165//14 +f 12//14 165//14 423//14 163//14 +f 12//14 163//14 422//14 167//14 +f 13//15 283//15 453//15 244//15 +f 13//15 244//15 449//15 280//15 +f 13//15 280//15 463//15 276//15 +f 13//15 276//15 466//15 283//15 +f 14//16 172//16 421//16 160//16 +f 14//16 160//16 420//16 174//16 +f 14//16 174//16 424//16 168//16 +f 14//16 168//16 425//16 172//16 +f 15//17 175//17 422//17 163//17 +f 15//17 163//17 423//17 173//17 +f 15//17 173//17 427//17 171//17 +f 15//17 171//17 426//17 175//17 +f 16//18 242//18 443//18 161//18 +f 16//18 161//18 422//18 175//18 +f 16//18 175//18 426//18 169//18 +f 16//18 169//18 451//18 242//18 +f 17//18 178//18 413//18 142//18 +f 17//18 142//18 416//18 180//18 +f 17//18 180//18 492//18 183//18 +f 17//18 183//18 490//18 178//18 +f 18//18 234//18 428//18 191//18 +f 18//18 191//18 411//18 176//18 +f 18//18 176//18 488//18 223//18 +f 18//18 223//18 530//18 234//18 +f 19//1 230//1 435//1 153//1 +f 19//1 153//1 417//1 181//1 +f 19//1 181//1 419//1 158//1 +f 19//1 158//1 439//1 230//1 +f 20//3 148//3 413//3 178//3 +f 20//3 178//3 490//3 186//3 +f 20//3 186//3 491//3 179//3 +f 20//3 179//3 414//3 148//3 +f 21//4 176//4 411//4 140//4 +f 21//4 140//4 412//4 177//4 +f 21//4 177//4 489//4 187//4 +f 21//4 187//4 488//4 176//4 +f 22//1 227//1 432//1 196//1 +f 22//1 196//1 433//1 228//1 +f 22//1 228//1 437//1 200//1 +f 22//1 200//1 436//1 227//1 +f 23//1 228//1 433//1 197//1 +f 23//1 197//1 434//1 229//1 +f 23//1 229//1 438//1 201//1 +f 23//1 201//1 437//1 228//1 +f 24//1 229//1 434//1 198//1 +f 24//1 198//1 435//1 230//1 +f 24//1 230//1 439//1 202//1 +f 24//1 202//1 438//1 229//1 +f 25//18 180//18 416//18 152//18 +f 25//18 152//18 431//18 231//18 +f 25//18 231//18 533//18 184//18 +f 25//18 184//18 492//18 180//18 +f 26//18 231//18 431//18 194//18 +f 26//18 194//18 430//18 232//18 +f 26//18 232//18 532//18 226//18 +f 26//18 226//18 533//18 231//18 +f 27//18 232//18 430//18 193//18 +f 27//18 193//18 429//18 233//18 +f 27//18 233//18 531//18 225//18 +f 27//18 225//18 532//18 232//18 +f 28//18 233//18 429//18 192//18 +f 28//18 192//18 428//18 234//18 +f 28//18 234//18 530//18 224//18 +f 28//18 224//18 531//18 233//18 +f 29//18 174//18 420//18 203//18 +f 29//18 203//18 440//18 239//18 +f 29//18 239//18 448//18 211//18 +f 29//18 211//18 424//18 174//18 +f 30//18 239//18 440//18 204//18 +f 30//18 204//18 441//18 240//18 +f 30//18 240//18 449//18 212//18 +f 30//18 212//18 448//18 239//18 +f 31//18 240//18 441//18 205//18 +f 31//18 205//18 442//18 241//18 +f 31//18 241//18 450//18 213//18 +f 31//18 213//18 449//18 240//18 +f 32//18 241//18 442//18 206//18 +f 32//18 206//18 443//18 242//18 +f 32//18 242//18 451//18 214//18 +f 32//18 214//18 450//18 241//18 +f 33//19 282//19 451//19 169//19 +f 33//19 169//19 426//19 281//19 +f 33//19 281//19 459//19 268//19 +f 33//19 268//19 458//19 282//19 +f 34//20 243//20 448//20 212//20 +f 34//20 212//20 449//20 244//20 +f 34//20 244//20 453//20 216//20 +f 34//20 216//20 452//20 243//20 +f 35//21 280//21 449//21 213//21 +f 35//21 213//21 450//21 279//21 +f 35//21 279//21 464//21 272//21 +f 35//21 272//21 463//21 280//21 +f 36//20 245//20 450//20 214//20 +f 36//20 214//20 451//20 246//20 +f 36//20 246//20 455//20 218//20 +f 36//20 218//20 454//20 245//20 +f 37//22 166//22 411//22 191//22 +f 37//23 191//23 428//23 247//23 +f 37//24 247//24 440//24 203//24 +f 37//25 203//25 420//25 166//25 +f 38//26 247//26 428//26 192//26 +f 38//27 192//27 429//27 248//27 +f 38//28 248//28 441//28 204//28 +f 38//29 204//29 440//29 247//29 +f 39//30 248//30 429//30 193//30 +f 39//31 193//31 430//31 249//31 +f 39//32 249//32 442//32 205//32 +f 39//33 205//33 441//33 248//33 +f 40//34 249//34 430//34 194//34 +f 40//35 194//35 431//35 250//35 +f 40//36 250//36 443//36 206//36 +f 40//37 206//37 442//37 249//37 +f 41//2 173//2 423//2 162//2 +f 41//2 162//2 447//2 251//2 +f 41//2 251//2 455//2 170//2 +f 41//2 170//2 427//2 173//2 +f 42//2 251//2 447//2 210//2 +f 42//2 210//2 446//2 252//2 +f 42//2 252//2 454//2 218//2 +f 42//2 218//2 455//2 251//2 +f 43//2 252//2 446//2 209//2 +f 43//2 209//2 445//2 253//2 +f 43//2 253//2 453//2 217//2 +f 43//2 217//2 454//2 252//2 +f 44//2 253//2 445//2 208//2 +f 44//2 208//2 444//2 254//2 +f 44//2 254//2 452//2 216//2 +f 44//2 216//2 453//2 253//2 +f 45//38 165//38 417//38 153//38 +f 45//39 153//39 435//39 255//39 +f 45//40 255//40 447//40 162//40 +f 45//41 162//41 423//41 165//41 +f 46//42 255//42 435//42 198//42 +f 46//43 198//43 434//43 256//43 +f 46//44 256//44 446//44 210//44 +f 46//45 210//45 447//45 255//45 +f 47//46 256//46 434//46 197//46 +f 47//47 197//47 433//47 257//47 +f 47//48 257//48 445//48 209//48 +f 47//49 209//49 446//49 256//49 +f 48//50 257//50 433//50 196//50 +f 48//51 196//51 432//51 258//51 +f 48//52 258//52 444//52 208//52 +f 48//53 208//53 445//53 257//53 +f 49//2 157//2 415//2 199//2 +f 49//2 199//2 436//2 263//2 +f 49//2 263//2 497//2 151//2 +f 49//2 151//2 474//2 157//2 +f 50//2 263//2 436//2 200//2 +f 50//2 200//2 437//2 264//2 +f 50//2 264//2 496//2 190//2 +f 50//2 190//2 497//2 263//2 +f 51//2 264//2 437//2 201//2 +f 51//2 201//2 438//2 265//2 +f 51//2 265//2 495//2 189//2 +f 51//2 189//2 496//2 264//2 +f 52//2 265//2 438//2 202//2 +f 52//2 202//2 439//2 266//2 +f 52//2 266//2 494//2 188//2 +f 52//2 188//2 495//2 265//2 +f 53//20 278//20 458//20 268//20 +f 53//20 268//20 459//20 270//20 +f 53//20 270//20 461//20 269//20 +f 53//20 269//20 460//20 278//20 +f 54//20 267//20 456//20 271//20 +f 54//20 271//20 462//20 275//20 +f 54//20 275//20 465//20 273//20 +f 54//20 273//20 457//20 267//20 +f 55//20 276//20 463//20 272//20 +f 55//20 272//20 464//20 277//20 +f 55//20 277//20 467//20 274//20 +f 55//20 274//20 466//20 276//20 +f 56//54 284//54 454//54 217//54 +f 56//55 217//55 453//55 283//55 +f 56//55 283//55 466//55 274//55 +f 56//56 274//56 467//56 284//56 +f 57//57 286//57 427//57 170//57 +f 57//58 170//58 455//58 285//58 +f 57//59 285//59 460//59 269//59 +f 57//59 269//59 461//59 286//59 +f 58//60 279//60 450//60 245//60 +f 58//60 245//60 454//60 284//60 +f 58//60 284//60 467//60 277//60 +f 58//60 277//60 464//60 279//60 +f 59//19 288//19 424//19 211//19 +f 59//19 211//19 448//19 287//19 +f 59//19 287//19 462//19 271//19 +f 59//19 271//19 456//19 288//19 +f 60//57 290//57 452//57 215//57 +f 60//59 215//59 425//59 289//59 +f 60//57 289//57 457//57 273//57 +f 60//58 273//58 465//58 290//58 +f 61//61 281//61 426//61 171//61 +f 61//61 171//61 427//61 286//61 +f 61//61 286//61 461//61 270//61 +f 61//61 270//61 459//61 281//61 +f 62//62 285//62 455//62 246//62 +f 62//62 246//62 451//62 282//62 +f 62//62 282//62 458//62 278//62 +f 62//62 278//62 460//62 285//62 +f 63//63 289//63 425//63 168//63 +f 63//63 168//63 424//63 288//63 +f 63//63 288//63 456//63 267//63 +f 63//63 267//63 457//63 289//63 +f 64//64 287//64 448//64 243//64 +f 64//64 243//64 452//64 290//64 +f 64//64 290//64 465//64 275//64 +f 64//64 275//64 462//64 287//64 +f 65//65 331//65 469//65 295//65 +f 65//65 295//65 475//65 335//65 +f 65//65 335//65 506//65 355//65 +f 65//65 355//65 502//65 331//65 +f 66//2 303//2 509//2 386//2 +f 66//2 386//2 494//2 143//2 +f 66//2 143//2 470//2 296//2 +f 66//2 296//2 479//2 303//2 +f 67//65 292//65 476//65 304//65 +f 67//65 304//65 477//65 293//65 +f 67//65 293//65 473//65 297//65 +f 67//65 297//65 472//65 292//65 +f 68//2 301//2 479//2 296//2 +f 68//2 296//2 470//2 150//2 +f 68//2 150//2 471//2 298//2 +f 68//2 298//2 478//2 301//2 +f 69//1 185//1 491//1 154//1 +f 69//1 154//1 471//1 150//1 +f 69//1 150//1 470//1 141//1 +f 69//1 141//1 493//1 185//1 +f 70//3 324//3 473//3 294//3 +f 70//3 294//3 478//3 298//3 +f 70//3 298//3 471//3 154//3 +f 70//3 154//3 491//3 324//3 +f 71//1 262//1 529//1 182//1 +f 71//1 182//1 489//1 187//1 +f 71//1 187//1 488//1 223//1 +f 71//1 223//1 530//1 262//1 +f 72//65 293//65 477//65 326//65 +f 72//65 326//65 479//65 301//65 +f 72//65 301//65 478//65 294//65 +f 72//65 294//65 473//65 293//65 +f 73//4 322//4 489//4 155//4 +f 73//4 155//4 474//4 302//4 +f 73//4 302//4 475//4 295//4 +f 73//4 295//4 469//4 322//4 +f 74//66 331//66 502//66 382//66 +f 74//67 382//67 514//67 343//67 +f 74//68 343//68 481//68 309//68 +f 74//69 309//69 469//69 331//69 +f 75//2 343//2 514//2 378//2 +f 75//2 378//2 522//2 351//2 +f 75//2 351//2 485//2 317//2 +f 75//2 317//2 481//2 343//2 +f 76//70 291//70 469//70 309//70 +f 76//70 309//70 481//70 305//70 +f 76//70 305//70 480//70 311//70 +f 76//70 311//70 468//70 291//70 +f 77//71 299//71 501//71 374//71 +f 77//72 374//72 513//72 306//72 +f 77//73 306//73 482//73 312//73 +f 77//74 312//74 476//74 299//74 +f 78//75 304//75 476//75 312//75 +f 78//75 312//75 482//75 308//75 +f 78//75 308//75 483//75 310//75 +f 78//75 310//75 477//75 304//75 +f 79//76 368//76 523//76 403//76 +f 79//76 403//76 544//76 396//76 +f 79//76 396//76 541//76 400//76 +f 79//76 400//76 519//76 368//76 +f 80//77 305//77 481//77 317//77 +f 80//77 317//77 485//77 313//77 +f 80//77 313//77 484//77 319//77 +f 80//77 319//77 480//77 305//77 +f 81//78 308//78 482//78 320//78 +f 81//78 320//78 486//78 316//78 +f 81//78 316//78 487//78 318//78 +f 81//78 318//78 483//78 308//78 +f 82//18 306//18 513//18 366//18 +f 82//18 366//18 521//18 314//18 +f 82//18 314//18 486//18 320//18 +f 82//18 320//18 482//18 306//18 +f 83//1 182//1 529//1 238//1 +f 83//1 238//1 497//1 151//1 +f 83//1 151//1 474//1 155//1 +f 83//1 155//1 489//1 182//1 +f 84//18 292//18 472//18 323//18 +f 84//18 323//18 490//18 183//18 +f 84//18 183//18 492//18 325//18 +f 84//18 325//18 476//18 292//18 +f 85//18 327//18 498//18 362//18 +f 85//18 362//18 530//18 223//18 +f 85//18 223//18 488//18 321//18 +f 85//18 321//18 468//18 327//18 +f 86//65 300//65 505//65 358//65 +f 86//65 358//65 509//65 303//65 +f 86//65 303//65 479//65 326//65 +f 86//65 326//65 477//65 300//65 +f 87//3 323//3 472//3 297//3 +f 87//3 297//3 473//3 324//3 +f 87//3 324//3 491//3 186//3 +f 87//3 186//3 490//3 323//3 +f 88//4 291//4 468//4 321//4 +f 88//4 321//4 488//4 187//4 +f 88//4 187//4 489//4 322//4 +f 88//4 322//4 469//4 291//4 +f 89//65 332//65 502//65 355//65 +f 89//65 355//65 506//65 336//65 +f 89//65 336//65 507//65 356//65 +f 89//65 356//65 503//65 332//65 +f 90//65 333//65 503//65 356//65 +f 90//65 356//65 507//65 337//65 +f 90//65 337//65 508//65 357//65 +f 90//65 357//65 504//65 333//65 +f 91//65 334//65 504//65 357//65 +f 91//65 357//65 508//65 338//65 +f 91//65 338//65 509//65 358//65 +f 91//65 358//65 505//65 334//65 +f 92//18 299//18 476//18 325//18 +f 92//18 325//18 492//18 184//18 +f 92//18 184//18 533//18 359//18 +f 92//18 359//18 501//18 299//18 +f 93//18 330//18 501//18 359//18 +f 93//18 359//18 533//18 226//18 +f 93//18 226//18 532//18 360//18 +f 93//18 360//18 500//18 330//18 +f 94//18 329//18 500//18 360//18 +f 94//18 360//18 532//18 225//18 +f 94//18 225//18 531//18 361//18 +f 94//18 361//18 499//18 329//18 +f 95//18 328//18 499//18 361//18 +f 95//18 361//18 531//18 224//18 +f 95//18 224//18 530//18 362//18 +f 95//18 362//18 498//18 328//18 +f 96//1 219//1 493//1 141//1 +f 96//1 141//1 470//1 143//1 +f 96//1 143//1 494//1 235//1 +f 96//1 235//1 526//1 219//1 +f 97//1 220//1 526//1 235//1 +f 97//1 235//1 494//1 188//1 +f 97//1 188//1 495//1 236//1 +f 97//1 236//1 527//1 220//1 +f 98//1 221//1 527//1 236//1 +f 98//1 236//1 495//1 189//1 +f 98//1 189//1 496//1 237//1 +f 98//1 237//1 528//1 221//1 +f 99//1 222//1 528//1 237//1 +f 99//1 237//1 496//1 190//1 +f 99//1 190//1 497//1 238//1 +f 99//1 238//1 529//1 222//1 +f 100//18 339//18 480//18 319//18 +f 100//18 319//18 484//18 347//18 +f 100//18 347//18 518//18 363//18 +f 100//18 363//18 510//18 339//18 +f 101//18 340//18 510//18 363//18 +f 101//18 363//18 518//18 348//18 +f 101//18 348//18 519//18 364//18 +f 101//18 364//18 511//18 340//18 +f 102//18 341//18 511//18 364//18 +f 102//18 364//18 519//18 349//18 +f 102//18 349//18 520//18 365//18 +f 102//18 365//18 512//18 341//18 +f 103//18 342//18 512//18 365//18 +f 103//18 365//18 520//18 350//18 +f 103//18 350//18 521//18 366//18 +f 103//18 366//18 513//18 342//18 +f 104//79 314//79 521//79 402//79 +f 104//79 402//79 536//79 388//79 +f 104//79 388//79 537//79 401//79 +f 104//79 401//79 486//79 314//79 +f 105//80 348//80 518//80 367//80 +f 105//80 367//80 522//80 352//80 +f 105//80 352//80 523//80 368//80 +f 105//80 368//80 519//80 348//80 +f 106//81 349//81 519//81 400//81 +f 106//81 400//81 541//81 392//81 +f 106//81 392//81 542//81 399//81 +f 106//81 399//81 520//81 349//81 +f 107//80 350//80 520//80 369//80 +f 107//80 369//80 524//80 354//80 +f 107//80 354//80 525//80 370//80 +f 107//80 370//80 521//80 350//80 +f 108//82 327//82 468//82 311//82 +f 108//83 311//83 480//83 339//83 +f 108//84 339//84 510//84 371//84 +f 108//85 371//85 498//85 327//85 +f 109//86 328//86 498//86 371//86 +f 109//87 371//87 510//87 340//87 +f 109//88 340//88 511//88 372//88 +f 109//89 372//89 499//89 328//89 +f 110//90 329//90 499//90 372//90 +f 110//91 372//91 511//91 341//91 +f 110//92 341//92 512//92 373//92 +f 110//93 373//93 500//93 329//93 +f 111//94 330//94 500//94 373//94 +f 111//95 373//95 512//95 342//95 +f 111//96 342//96 513//96 374//96 +f 111//97 374//97 501//97 330//97 +f 112//2 307//2 483//2 318//2 +f 112//2 318//2 487//2 315//2 +f 112//2 315//2 525//2 375//2 +f 112//2 375//2 517//2 307//2 +f 113//2 346//2 517//2 375//2 +f 113//2 375//2 525//2 354//2 +f 113//2 354//2 524//2 376//2 +f 113//2 376//2 516//2 346//2 +f 114//2 345//2 516//2 376//2 +f 114//2 376//2 524//2 353//2 +f 114//2 353//2 523//2 377//2 +f 114//2 377//2 515//2 345//2 +f 115//2 344//2 515//2 377//2 +f 115//2 377//2 523//2 352//2 +f 115//2 352//2 522//2 378//2 +f 115//2 378//2 514//2 344//2 +f 116//98 300//98 477//98 310//98 +f 116//99 310//99 483//99 307//99 +f 116//100 307//100 517//100 379//100 +f 116//101 379//101 505//101 300//101 +f 117//102 334//102 505//102 379//102 +f 117//103 379//103 517//103 346//103 +f 117//104 346//104 516//104 380//104 +f 117//105 380//105 504//105 334//105 +f 118//106 333//106 504//106 380//106 +f 118//107 380//107 516//107 345//107 +f 118//108 345//108 515//108 381//108 +f 118//109 381//109 503//109 333//109 +f 119//110 332//110 503//110 381//110 +f 119//111 381//111 515//111 344//111 +f 119//112 344//112 514//112 382//112 +f 119//113 382//113 502//113 332//113 +f 120//1 185//1 493//1 219//1 +f 120//1 219//1 526//1 259//1 +f 120//1 259//1 533//1 184//1 +f 120//1 184//1 492//1 183//1 +f 120//1 183//1 490//1 186//1 +f 120//1 186//1 491//1 185//1 +f 121//1 259//1 526//1 220//1 +f 121//1 220//1 527//1 260//1 +f 121//1 260//1 532//1 226//1 +f 121//1 226//1 533//1 259//1 +f 122//1 260//1 527//1 221//1 +f 122//1 221//1 528//1 261//1 +f 122//1 261//1 531//1 225//1 +f 122//1 225//1 532//1 260//1 +f 123//1 261//1 528//1 222//1 +f 123//1 222//1 529//1 262//1 +f 123//1 262//1 530//1 224//1 +f 123//1 224//1 531//1 261//1 +f 124//2 335//2 475//2 302//2 +f 124//2 302//2 474//2 151//2 +f 124//2 151//2 497//2 383//2 +f 124//2 383//2 506//2 335//2 +f 125//2 336//2 506//2 383//2 +f 125//2 383//2 497//2 190//2 +f 125//2 190//2 496//2 384//2 +f 125//2 384//2 507//2 336//2 +f 126//2 337//2 507//2 384//2 +f 126//2 384//2 496//2 189//2 +f 126//2 189//2 495//2 385//2 +f 126//2 385//2 508//2 337//2 +f 127//2 338//2 508//2 385//2 +f 127//2 385//2 495//2 188//2 +f 127//2 188//2 494//2 386//2 +f 127//2 386//2 509//2 338//2 +f 128//80 388//80 536//80 398//80 +f 128//80 398//80 538//80 389//80 +f 128//80 389//80 539//80 390//80 +f 128//80 390//80 537//80 388//80 +f 129//80 391//80 534//80 387//80 +f 129//80 387//80 535//80 393//80 +f 129//80 393//80 543//80 395//80 +f 129//80 395//80 540//80 391//80 +f 130//80 392//80 541//80 396//80 +f 130//80 396//80 544//80 394//80 +f 130//80 394//80 545//80 397//80 +f 130//80 397//80 542//80 392//80 +f 131//114 353//114 524//114 404//114 +f 131//115 404//115 545//115 394//115 +f 131//116 394//116 544//116 403//116 +f 131//116 403//116 523//116 353//116 +f 132//117 315//117 487//117 406//117 +f 132//118 406//118 539//118 389//118 +f 132//117 389//117 538//117 405//117 +f 132//119 405//119 525//119 315//119 +f 133//120 369//120 520//120 399//120 +f 133//120 399//120 542//120 397//120 +f 133//120 397//120 545//120 404//120 +f 133//120 404//120 524//120 369//120 +f 134//79 347//79 484//79 408//79 +f 134//79 408//79 534//79 391//79 +f 134//79 391//79 540//79 407//79 +f 134//79 407//79 518//79 347//79 +f 135//117 351//117 522//117 410//117 +f 135//119 410//119 543//119 393//119 +f 135//117 393//117 535//117 409//117 +f 135//118 409//118 485//118 351//118 +f 136//121 316//121 486//121 401//121 +f 136//121 401//121 537//121 390//121 +f 136//121 390//121 539//121 406//121 +f 136//121 406//121 487//121 316//121 +f 137//122 370//122 525//122 405//122 +f 137//122 405//122 538//122 398//122 +f 137//122 398//122 536//122 402//122 +f 137//122 402//122 521//122 370//122 +f 138//123 313//123 485//123 409//123 +f 138//123 409//123 535//123 387//123 +f 138//123 387//123 534//123 408//123 +f 138//123 408//123 484//123 313//123 +f 139//124 367//124 518//124 407//124 +f 139//124 407//124 540//124 395//124 +f 139//124 395//124 543//124 410//124 +f 139//124 410//124 522//124 367//124 diff --git a/Tape/Tape.gd b/Tape/Tape.gd new file mode 100644 index 0000000..00bfac2 --- /dev/null +++ b/Tape/Tape.gd @@ -0,0 +1,17 @@ +extends Spatial + + +# Declare member variables here. Examples: +# var a = 2 +# var b = "text" + + +# Called when the node enters the scene tree for the first time. +func _ready(): + pass # Replace with function body. + + +# Called every frame. 'delta' is the elapsed time since the previous frame. +func _process(delta): + $MeshInstance.scale = 0.3 + $MeshInstance.rotate_y(delta) diff --git a/Tape/Tape.tscn b/Tape/Tape.tscn index 19bd56d..3513b02 100644 --- a/Tape/Tape.tscn +++ b/Tape/Tape.tscn @@ -1,3 +1,26 @@ -[gd_scene format=2] +[gd_scene load_steps=5 format=2] -[node name="Spatial" type="Spatial"] +[ext_resource path="res://Tape/tape.obj" type="ArrayMesh" id=1] +[ext_resource path="res://scripts/Library/Actions/TriggerOnCollision.gd" type="Script" id=2] +[ext_resource path="res://scripts/Library/Actions/PlaySound.gd" type="Script" id=3] + +[sub_resource type="BoxShape" id=1] + +[node name="Tape" type="Spatial"] + +[node name="MeshInstance" type="MeshInstance" parent="."] +mesh = ExtResource( 1 ) + +[node name="Area" type="Area" parent="."] + +[node name="CollisionShape" type="CollisionShape" parent="Area"] +transform = Transform( 0.240864, 0, 0, 0, 1, 0, 0, 0, 1.66505, 0, 0, 0 ) +shape = SubResource( 1 ) + +[node name="TriggerOnCollision" type="Node" parent="Area"] +script = ExtResource( 2 ) +collision_area = NodePath("..") +action = NodePath("../PlaySound") + +[node name="PlaySound" type="Node" parent="Area"] +script = ExtResource( 3 ) diff --git a/project.godot b/project.godot index ac2876b..d787765 100644 --- a/project.godot +++ b/project.godot @@ -19,22 +19,37 @@ _global_script_classes=[ { "language": "GDScript", "path": "res://scripts/Library/Actions/ActionList.gd" }, { -"base": "Node", -"class": "MusicChangedSlowAction", -"language": "GDScript", -"path": "res://scripts/OnMusicChangedSlowTrigger.gd" -}, { "base": "Action", "class": "PlaySound", "language": "GDScript", "path": "res://scripts/Library/Actions/PlaySound.gd" }, { +"base": "Action", +"class": "SetFastMusic", +"language": "GDScript", +"path": "res://scripts/SetFastMusic.gd" +}, { +"base": "Action", +"class": "SetNormalMusic", +"language": "GDScript", +"path": "res://scripts/SetNormalMusic.gd" +}, { +"base": "Action", +"class": "SetSlowMusic", +"language": "GDScript", +"path": "res://scripts/SetSlowMusic.gd" +}, { "base": "Node", "class": "TriggerBase", "language": "GDScript", "path": "res://scripts/Library/Actions/TriggerBase.gd" }, { "base": "TriggerBase", +"class": "TriggerOnCollision", +"language": "GDScript", +"path": "res://scripts/Library/Actions/TriggerOnCollision.gd" +}, { +"base": "TriggerBase", "class": "TriggerOnReady", "language": "GDScript", "path": "res://scripts/Library/Actions/TriggerOnReady.gd" @@ -42,9 +57,12 @@ _global_script_classes=[ { _global_script_class_icons={ "Action": "", "ActionList": "", -"MusicChangedSlowAction": "", "PlaySound": "", +"SetFastMusic": "", +"SetNormalMusic": "", +"SetSlowMusic": "", "TriggerBase": "", +"TriggerOnCollision": "", "TriggerOnReady": "" } @@ -54,6 +72,10 @@ config/name="first_anniversary_godot_jam" run/main_scene="res://3d_platforma/Level.tscn" config/icon="res://icon.png" +[autoload] + +MusicSingleton="*res://scripts/MusicSingleton.gd" + [display] window/size/width=480 diff --git a/scripts/Library/Actions/PlaySound.gd b/scripts/Library/Actions/PlaySound.gd index 38077d1..0e95e9f 100644 --- a/scripts/Library/Actions/PlaySound.gd +++ b/scripts/Library/Actions/PlaySound.gd @@ -8,5 +8,6 @@ func _ready(): func onTrigger(): - get_node( audioStreamPlayer ).play() + print("OnTrigger PlaySound") +# get_node( audioStreamPlayer ).play() diff --git a/scripts/Library/Actions/TriggerOnCollision.gd b/scripts/Library/Actions/TriggerOnCollision.gd index 9f14dd2..bf602f4 100644 --- a/scripts/Library/Actions/TriggerOnCollision.gd +++ b/scripts/Library/Actions/TriggerOnCollision.gd @@ -1,6 +1,11 @@ -extends TriggerBase +class_name TriggerOnCollision extends TriggerBase -export var collision_area +export(NodePath) var collision_area +export(NodePath) var action func _ready(): - pass # Replace with function body. + get_node(collision_area).connect("body_entered", self, "_on_body_entered") + +func _on_body_entered(_body: Node): + print("Collision action triggered") + triggerNodePath(action) diff --git a/scripts/MusicSingleton.gd b/scripts/MusicSingleton.gd index 1afdb3f..f153759 100644 --- a/scripts/MusicSingleton.gd +++ b/scripts/MusicSingleton.gd @@ -4,6 +4,29 @@ func _ready() -> void: print("Loaded Music singleton") var change_slow_actions : Array = [] +var gameSpeed : float = 1; +var musicType: int = 0; + +func setSlowMusic(): + setMusicType( -1 ) + +func setFastMusic(): + setMusicType( 1 ) + +func setNormalMusic(): + setMusicType( 0 ) + +func setMusicType( type:int ): + musicType = type; + + gameSpeed = 0 + + if type == 1: + gameSpeed = 2 + + if type == -1: + gameSpeed = 0.5 + func register_change_action(change_action : Node) -> void: print("Registered change action") diff --git a/scripts/OnMusicChangedSlowTrigger.gd b/scripts/OnMusicChangedSlowTrigger.gd deleted file mode 100644 index 1d57758..0000000 --- a/scripts/OnMusicChangedSlowTrigger.gd +++ /dev/null @@ -1,11 +0,0 @@ -class_name MusicChangedSlowAction extends Node - -func _ready(): - MusicSingleton.register_change_action(self) - MusicSingleton.change_music() - -func _exit_tree(): - MusicSingleton.unregister_change_action(self) - -func execute() -> void: - print("Executed OnMusicChangedSlowAction") diff --git a/scripts/SetFastMusic.gd b/scripts/SetFastMusic.gd new file mode 100644 index 0000000..c6b0800 --- /dev/null +++ b/scripts/SetFastMusic.gd @@ -0,0 +1,4 @@ +class_name SetFastMusic extends Action + +func onTrigger(): + MusicSingleton.setFastMusic() diff --git a/scripts/SetNormalMusic.gd b/scripts/SetNormalMusic.gd new file mode 100644 index 0000000..e9fe6df --- /dev/null +++ b/scripts/SetNormalMusic.gd @@ -0,0 +1,4 @@ +class_name SetNormalMusic extends Action + +func onTrigger(): + MusicSingleton.setNormalMusic() diff --git a/scripts/SetSlowMusic.gd b/scripts/SetSlowMusic.gd new file mode 100644 index 0000000..bcd68a4 --- /dev/null +++ b/scripts/SetSlowMusic.gd @@ -0,0 +1,4 @@ +class_name SetSlowMusic extends Action + +func onTrigger(): + MusicSingleton.setSlowMusic()