Leche arreglada
369
.tmp
Normal file
|
|
@ -0,0 +1,369 @@
|
|||
[gd_resource type="TileSet" load_steps=23 format=2]
|
||||
|
||||
[ext_resource type="Texture" path="res://tile full.tex" id=0]
|
||||
|
||||
|
||||
[sub_resource type="ConvexPolygonShape2D" id=1]
|
||||
|
||||
custom_solver_bias=0.0
|
||||
points=PoolVector2Array( -32, -32, 32, -32, 32, 32, -32, 32, -32, -32 )
|
||||
|
||||
[sub_resource type="ConvexPolygonShape2D" id=2]
|
||||
|
||||
custom_solver_bias=0.0
|
||||
points=PoolVector2Array( 32, -32, 32, 32, -32, 32 )
|
||||
|
||||
[sub_resource type="ConvexPolygonShape2D" id=11]
|
||||
|
||||
custom_solver_bias=0.0
|
||||
points=PoolVector2Array( 32, -32, 32, 28, -32, 28, -32, -32 )
|
||||
|
||||
[sub_resource type="ConvexPolygonShape2D" id=12]
|
||||
|
||||
custom_solver_bias=0.0
|
||||
points=PoolVector2Array( 27, -32, 27, 15, 25, 21, 21.115, 25.3147, 11.2565, 26.8224, -32, 28, -32, -32 )
|
||||
|
||||
[sub_resource type="ConvexPolygonShape2D" id=35]
|
||||
|
||||
custom_solver_bias=0.0
|
||||
points=PoolVector2Array( 32, -32, 32, 32, -32, 32, -31.8891, -27.3414, -29, -30 )
|
||||
|
||||
[sub_resource type="ConvexPolygonShape2D" id=36]
|
||||
|
||||
custom_solver_bias=0.0
|
||||
points=PoolVector2Array( -27, -32, 32, -32, -29, -30 )
|
||||
|
||||
[sub_resource type="ConvexPolygonShape2D" id=37]
|
||||
|
||||
custom_solver_bias=0.0
|
||||
points=PoolVector2Array( -31, -32, 33, -32, 33, 32, -27, 32, -29, 30, -31, 28 )
|
||||
|
||||
[sub_resource type="ConvexPolygonShape2D" id=38]
|
||||
|
||||
custom_solver_bias=0.0
|
||||
points=PoolVector2Array( -32, -32, 32, -32, 32, 28, 30, 30, 28, 32, -32, 32 )
|
||||
|
||||
[sub_resource type="ConvexPolygonShape2D" id=30]
|
||||
|
||||
custom_solver_bias=0.0
|
||||
points=PoolVector2Array( -32, -32, 27.4498, -32.0095, 31.9963, -27.7854, 32.0174, 32.0416, -32, 32 )
|
||||
|
||||
[sub_resource type="ConvexPolygonShape2D" id=20]
|
||||
|
||||
custom_solver_bias=0.0
|
||||
points=PoolVector2Array( -13, -27, 13, -27, 20.1871, -23.398, 26, -16, 26, 18, 22, 24, 12, 27, -11.8241, 27.0544, -22.7264, 24.6188, -27, 19, -26.9018, -15.1633, -21.7986, -22.5862, -18, -25 )
|
||||
|
||||
[sub_resource type="ConvexPolygonShape2D" id=41]
|
||||
|
||||
custom_solver_bias=0.0
|
||||
points=PoolVector2Array( -27, 32, 32, -28, 32.0174, 31.9257 )
|
||||
|
||||
[sub_resource type="ConvexPolygonShape2D" id=40]
|
||||
|
||||
custom_solver_bias=0.0
|
||||
points=PoolVector2Array( -32, -27, -30.1058, -27.0105, 28, 32, -32, 32 )
|
||||
|
||||
[sub_resource type="ConvexPolygonShape2D" id=23]
|
||||
|
||||
custom_solver_bias=0.0
|
||||
points=PoolVector2Array( -32, -32, 27, -32, -32, 28 )
|
||||
|
||||
[sub_resource type="ConvexPolygonShape2D" id=3]
|
||||
|
||||
custom_solver_bias=0.0
|
||||
points=PoolVector2Array( -32, -32, 32, 32, -32, 32 )
|
||||
|
||||
[sub_resource type="ConvexPolygonShape2D" id=24]
|
||||
|
||||
custom_solver_bias=0.0
|
||||
points=PoolVector2Array( 32, -32, 32, 28, -28, -32 )
|
||||
|
||||
[sub_resource type="ConvexPolygonShape2D" id=4]
|
||||
|
||||
custom_solver_bias=0.0
|
||||
points=PoolVector2Array( -21.2298, -23.8952, -16.2848, -26.453, -9.37893, -26.9645, 32, -28, 32, 32, -27, 32, -26.601, -15.7957, -24.4696, -20.3144 )
|
||||
|
||||
[sub_resource type="ConvexPolygonShape2D" id=5]
|
||||
|
||||
custom_solver_bias=0.0
|
||||
points=PoolVector2Array( -32, -28, 32, -28, 32, 32, -32, 32 )
|
||||
|
||||
[sub_resource type="ConvexPolygonShape2D" id=6]
|
||||
|
||||
custom_solver_bias=0.0
|
||||
points=PoolVector2Array( -32, -28, 13.8965, -27.135, 19.9498, -24.2363, 24.2127, -19.4618, 25.4063, -15.7105, 26, 32, -32, 32 )
|
||||
|
||||
[sub_resource type="ConvexPolygonShape2D" id=7]
|
||||
|
||||
custom_solver_bias=0.0
|
||||
points=PoolVector2Array( 32, -32, 32, 32, -28, 32, -27.4817, -32.0967 )
|
||||
|
||||
[sub_resource type="ConvexPolygonShape2D" id=8]
|
||||
|
||||
custom_solver_bias=0.0
|
||||
points=PoolVector2Array( 32, -32, 32, 32, -32, 32, -32, -32 )
|
||||
|
||||
[sub_resource type="ConvexPolygonShape2D" id=9]
|
||||
|
||||
custom_solver_bias=0.0
|
||||
points=PoolVector2Array( 27, -32, 27, 32, -32, 32, -32, -32 )
|
||||
|
||||
[sub_resource type="ConvexPolygonShape2D" id=10]
|
||||
|
||||
custom_solver_bias=0.0
|
||||
points=PoolVector2Array( 32.0174, -32.3287, 32.2493, 27.9823, -9.96833, 27.1704, -21.5666, 24.9667, -24.4662, 22.763, -27, 17, -26.9018, -31.7488 )
|
||||
|
||||
[resource]
|
||||
|
||||
0/name="Suelo"
|
||||
0/texture=null
|
||||
0/tex_offset=Vector2( 0, 0 )
|
||||
0/material=null
|
||||
0/modulate=Color( 1, 1, 1, 1 )
|
||||
0/region=Rect2( 0, 0, 320, 320 )
|
||||
0/occluder_offset=Vector2( 160, 160 )
|
||||
0/occluder=null
|
||||
0/navigation_offset=Vector2( 160, 160 )
|
||||
0/navigation=null
|
||||
0/shape_offset=Vector2( 160, 160 )
|
||||
0/shapes=[ ]
|
||||
1/name="Rampa_LR"
|
||||
1/texture=null
|
||||
1/tex_offset=Vector2( 0, 0 )
|
||||
1/material=null
|
||||
1/modulate=Color( 1, 1, 1, 1 )
|
||||
1/region=Rect2( 320, 256, 64, 64 )
|
||||
1/occluder_offset=Vector2( 32, 32 )
|
||||
1/occluder=null
|
||||
1/navigation_offset=Vector2( 32, 32 )
|
||||
1/navigation=null
|
||||
1/shape_offset=Vector2( 32, 32 )
|
||||
1/shapes=[ ]
|
||||
2/name="Rampa_RL"
|
||||
2/texture=null
|
||||
2/tex_offset=Vector2( 0, 0 )
|
||||
2/material=null
|
||||
2/modulate=Color( 1, 1, 1, 1 )
|
||||
2/region=Rect2( 512, 256, 64, 64 )
|
||||
2/occluder_offset=Vector2( 32, 32 )
|
||||
2/occluder=null
|
||||
2/navigation_offset=Vector2( 32, 32 )
|
||||
2/navigation=null
|
||||
2/shape_offset=Vector2( 32, 32 )
|
||||
2/shapes=[ ]
|
||||
3/name="Arriba_Izquierda"
|
||||
3/texture=null
|
||||
3/tex_offset=Vector2( 0, 0 )
|
||||
3/material=null
|
||||
3/modulate=Color( 1, 1, 1, 1 )
|
||||
3/region=Rect2( 0, 0, 64, 64 )
|
||||
3/occluder_offset=Vector2( 32, 32 )
|
||||
3/occluder=null
|
||||
3/navigation_offset=Vector2( 32, 32 )
|
||||
3/navigation=null
|
||||
3/shape_offset=Vector2( 32, 32 )
|
||||
3/shapes=[ ]
|
||||
4/name="Arriba"
|
||||
4/texture=null
|
||||
4/tex_offset=Vector2( 0, 0 )
|
||||
4/material=null
|
||||
4/modulate=Color( 1, 1, 1, 1 )
|
||||
4/region=Rect2( 64, 0, 64, 64 )
|
||||
4/occluder_offset=Vector2( 32, 32 )
|
||||
4/occluder=null
|
||||
4/navigation_offset=Vector2( 32, 32 )
|
||||
4/navigation=null
|
||||
4/shape_offset=Vector2( 32, 32 )
|
||||
4/shapes=[ ]
|
||||
5/name="Arriba_Derecha"
|
||||
5/texture=null
|
||||
5/tex_offset=Vector2( 0, 0 )
|
||||
5/material=null
|
||||
5/modulate=Color( 1, 1, 1, 1 )
|
||||
5/region=Rect2( 128, 0, 64, 64 )
|
||||
5/occluder_offset=Vector2( 32, 32 )
|
||||
5/occluder=null
|
||||
5/navigation_offset=Vector2( 32, 32 )
|
||||
5/navigation=null
|
||||
5/shape_offset=Vector2( 32, 32 )
|
||||
5/shapes=[ ]
|
||||
6/name="Izquierda"
|
||||
6/texture=null
|
||||
6/tex_offset=Vector2( 0, 0 )
|
||||
6/material=null
|
||||
6/modulate=Color( 1, 1, 1, 1 )
|
||||
6/region=Rect2( 0, 64, 64, 64 )
|
||||
6/occluder_offset=Vector2( 32, 32 )
|
||||
6/occluder=null
|
||||
6/navigation_offset=Vector2( 32, 32 )
|
||||
6/navigation=null
|
||||
6/shape_offset=Vector2( 32, 32 )
|
||||
6/shapes=[ ]
|
||||
7/name="Centro"
|
||||
7/texture=null
|
||||
7/tex_offset=Vector2( 0, 0 )
|
||||
7/material=null
|
||||
7/modulate=Color( 1, 1, 1, 1 )
|
||||
7/region=Rect2( 64, 64, 64, 64 )
|
||||
7/occluder_offset=Vector2( 32, 32 )
|
||||
7/occluder=null
|
||||
7/navigation_offset=Vector2( 32, 32 )
|
||||
7/navigation=null
|
||||
7/shape_offset=Vector2( 32, 32 )
|
||||
7/shapes=[ ]
|
||||
8/name="Derecha"
|
||||
8/texture=null
|
||||
8/tex_offset=Vector2( 0, 0 )
|
||||
8/material=null
|
||||
8/modulate=Color( 1, 1, 1, 1 )
|
||||
8/region=Rect2( 128, 64, 64, 64 )
|
||||
8/occluder_offset=Vector2( 32, 32 )
|
||||
8/occluder=null
|
||||
8/navigation_offset=Vector2( 32, 32 )
|
||||
8/navigation=null
|
||||
8/shape_offset=Vector2( 32, 32 )
|
||||
8/shapes=[ ]
|
||||
9/name="Abajo_Izquierda"
|
||||
9/texture=null
|
||||
9/tex_offset=Vector2( 0, 0 )
|
||||
9/material=null
|
||||
9/modulate=Color( 1, 1, 1, 1 )
|
||||
9/region=Rect2( 0, 128, 64, 64 )
|
||||
9/occluder_offset=Vector2( 32, 32 )
|
||||
9/occluder=null
|
||||
9/navigation_offset=Vector2( 32, 32 )
|
||||
9/navigation=null
|
||||
9/shape_offset=Vector2( 32, 32 )
|
||||
9/shapes=[ ]
|
||||
10/name="Abajo"
|
||||
10/texture=null
|
||||
10/tex_offset=Vector2( 0, 0 )
|
||||
10/material=null
|
||||
10/modulate=Color( 1, 1, 1, 1 )
|
||||
10/region=Rect2( 64, 128, 64, 64 )
|
||||
10/occluder_offset=Vector2( 32, 32 )
|
||||
10/occluder=null
|
||||
10/navigation_offset=Vector2( 32, 32 )
|
||||
10/navigation=null
|
||||
10/shape_offset=Vector2( 32, 32 )
|
||||
10/shapes=[ ]
|
||||
11/name="Abajo_Derecha"
|
||||
11/texture=null
|
||||
11/tex_offset=Vector2( 0, 0 )
|
||||
11/material=null
|
||||
11/modulate=Color( 1, 1, 1, 1 )
|
||||
11/region=Rect2( 128, 128, 64, 64 )
|
||||
11/occluder_offset=Vector2( 32, 32 )
|
||||
11/occluder=null
|
||||
11/navigation_offset=Vector2( 32, 32 )
|
||||
11/navigation=null
|
||||
11/shape_offset=Vector2( 32, 32 )
|
||||
11/shapes=[ ]
|
||||
12/name="Inner_Derecha_Abajo"
|
||||
12/texture=null
|
||||
12/tex_offset=Vector2( 0, 0 )
|
||||
12/material=null
|
||||
12/modulate=Color( 1, 1, 1, 1 )
|
||||
12/region=Rect2( 256, 256, 64, 64 )
|
||||
12/occluder_offset=Vector2( 32, 32 )
|
||||
12/occluder=null
|
||||
12/navigation_offset=Vector2( 32, 32 )
|
||||
12/navigation=null
|
||||
12/shape_offset=Vector2( 32, 32 )
|
||||
12/shapes=[ , ]
|
||||
13/name="Inner_Derecha_Arriba"
|
||||
13/texture=null
|
||||
13/tex_offset=Vector2( 0, 0 )
|
||||
13/material=null
|
||||
13/modulate=Color( 1, 1, 1, 1 )
|
||||
13/region=Rect2( 256, 192, 64, 64 )
|
||||
13/occluder_offset=Vector2( 32, 32 )
|
||||
13/occluder=null
|
||||
13/navigation_offset=Vector2( 32, 32 )
|
||||
13/navigation=null
|
||||
13/shape_offset=Vector2( 32, 32 )
|
||||
13/shapes=[ ]
|
||||
14/name="Inner_Izquierda_Arriba"
|
||||
14/texture=null
|
||||
14/tex_offset=Vector2( 0, 0 )
|
||||
14/material=null
|
||||
14/modulate=Color( 1, 1, 1, 1 )
|
||||
14/region=Rect2( 192, 192, 64, 64 )
|
||||
14/occluder_offset=Vector2( 32, 32 )
|
||||
14/occluder=null
|
||||
14/navigation_offset=Vector2( 32, 32 )
|
||||
14/navigation=null
|
||||
14/shape_offset=Vector2( 32, 32 )
|
||||
14/shapes=[ ]
|
||||
15/name="Inner_Izquierda_Abajo"
|
||||
15/texture=null
|
||||
15/tex_offset=Vector2( 0, 0 )
|
||||
15/material=null
|
||||
15/modulate=Color( 1, 1, 1, 1 )
|
||||
15/region=Rect2( 192, 256, 64, 64 )
|
||||
15/occluder_offset=Vector2( 32, 32 )
|
||||
15/occluder=null
|
||||
15/navigation_offset=Vector2( 32, 32 )
|
||||
15/navigation=null
|
||||
15/shape_offset=Vector2( 32, 32 )
|
||||
15/shapes=[ ]
|
||||
16/name="Unico"
|
||||
16/texture=null
|
||||
16/tex_offset=Vector2( 0, 0 )
|
||||
16/material=null
|
||||
16/modulate=Color( 1, 1, 1, 1 )
|
||||
16/region=Rect2( 192, 64, 64, 64 )
|
||||
16/occluder_offset=Vector2( 32, 32 )
|
||||
16/occluder=null
|
||||
16/navigation_offset=Vector2( 32, 32 )
|
||||
16/navigation=null
|
||||
16/shape_offset=Vector2( 32, 32 )
|
||||
16/shapes=[ ]
|
||||
17/name="Rampa1"
|
||||
17/texture=null
|
||||
17/tex_offset=Vector2( 0, 0 )
|
||||
17/material=null
|
||||
17/modulate=Color( 1, 1, 1, 1 )
|
||||
17/region=Rect2( 0, 192, 64, 64 )
|
||||
17/occluder_offset=Vector2( 32, 32 )
|
||||
17/occluder=null
|
||||
17/navigation_offset=Vector2( 32, 32 )
|
||||
17/navigation=null
|
||||
17/shape_offset=Vector2( 32, 32 )
|
||||
17/shapes=[ ]
|
||||
18/name="Rampa2"
|
||||
18/texture=null
|
||||
18/tex_offset=Vector2( 0, 0 )
|
||||
18/material=null
|
||||
18/modulate=Color( 1, 1, 1, 1 )
|
||||
18/region=Rect2( 64, 192, 64, 64 )
|
||||
18/occluder_offset=Vector2( 32, 32 )
|
||||
18/occluder=null
|
||||
18/navigation_offset=Vector2( 32, 32 )
|
||||
18/navigation=null
|
||||
18/shape_offset=Vector2( 32, 32 )
|
||||
18/shapes=[ ]
|
||||
19/name="Rampa3"
|
||||
19/texture=null
|
||||
19/tex_offset=Vector2( 0, 0 )
|
||||
19/material=null
|
||||
19/modulate=Color( 1, 1, 1, 1 )
|
||||
19/region=Rect2( 64, 256, 64, 64 )
|
||||
19/occluder_offset=Vector2( 32, 32 )
|
||||
19/occluder=null
|
||||
19/navigation_offset=Vector2( 32, 32 )
|
||||
19/navigation=null
|
||||
19/shape_offset=Vector2( 32, 32 )
|
||||
19/shapes=[ ]
|
||||
20/name="Rampa4"
|
||||
20/texture=null
|
||||
20/tex_offset=Vector2( 0, 0 )
|
||||
20/material=null
|
||||
20/modulate=Color( 1, 1, 1, 1 )
|
||||
20/region=Rect2( 0, 256, 64, 64 )
|
||||
20/occluder_offset=Vector2( 32, 32 )
|
||||
20/occluder=null
|
||||
20/navigation_offset=Vector2( 32, 32 )
|
||||
20/navigation=null
|
||||
20/shape_offset=Vector2( 32, 32 )
|
||||
20/shapes=[ ]
|
||||
53
All.tscn
|
|
@ -1,11 +1,12 @@
|
|||
[gd_scene load_steps=7 format=1]
|
||||
[gd_scene load_steps=8 format=1]
|
||||
|
||||
[ext_resource path="res://Controles.gd" type="Script" id=1]
|
||||
[ext_resource path="res://top.tscn" type="PackedScene" id=2]
|
||||
[ext_resource path="res://corazon.png" type="Texture" id=3]
|
||||
[ext_resource path="res://corazon2.tex" type="Texture" id=3]
|
||||
[ext_resource path="res://flexa.png" type="Texture" id=4]
|
||||
[ext_resource path="res://icon.png" type="Texture" id=5]
|
||||
[ext_resource path="res://tile.png" type="Texture" id=6]
|
||||
[ext_resource path="res://btn_jump.png" type="Texture" id=5]
|
||||
[ext_resource path="res://icon.png" type="Texture" id=6]
|
||||
[ext_resource path="res://btn_shoot.png" type="Texture" id=7]
|
||||
|
||||
[node name="Node2D" type="Node2D" groups=[
|
||||
"control",
|
||||
|
|
@ -30,19 +31,19 @@ margin/bottom = 768.0
|
|||
[node name="Viewport" type="Viewport" parent="Control"]
|
||||
|
||||
rect = Rect2( 0, 0, 1280, 768 )
|
||||
own_world = true
|
||||
own_world = false
|
||||
world = null
|
||||
transparent_bg = true
|
||||
transparent_bg = false
|
||||
render_target/enabled = false
|
||||
render_target/v_flip = false
|
||||
render_target/clear_on_new_frame = true
|
||||
render_target/clear_on_new_frame = false
|
||||
render_target/filter = false
|
||||
render_target/gen_mipmaps = false
|
||||
render_target/update_mode = 1
|
||||
render_target/update_mode = 2
|
||||
audio_listener/enable_2d = true
|
||||
audio_listener/enable_3d = false
|
||||
physics/object_picking = false
|
||||
gui/disable_input = false
|
||||
gui/disable_input = true
|
||||
|
||||
[node name="Node2D" parent="Control/Viewport" instance=ExtResource( 2 )]
|
||||
|
||||
|
|
@ -52,26 +53,23 @@ transform/pos = Vector2( 64, 64 )
|
|||
|
||||
[node name="life1" type="Sprite" parent="Control/Life"]
|
||||
|
||||
transform/pos = Vector2( 63.7793, 32 )
|
||||
transform/scale = Vector2( 0.441379, 0.426667 )
|
||||
transform/pos = Vector2( 64, 32 )
|
||||
transform/scale = Vector2( 1.3, 1.3 )
|
||||
texture = ExtResource( 3 )
|
||||
region = true
|
||||
region_rect = Rect2( 180, 140, 145, 150 )
|
||||
|
||||
[node name="life2" type="Sprite" parent="Control/Life"]
|
||||
|
||||
transform/pos = Vector2( 160, 32 )
|
||||
transform/scale = Vector2( 0.441379, 0.426667 )
|
||||
transform/scale = Vector2( 1.3, 1.3 )
|
||||
texture = ExtResource( 3 )
|
||||
region = true
|
||||
region_rect = Rect2( 180, 140, 145, 150 )
|
||||
|
||||
[node name="life3" type="Sprite" parent="Control/Life"]
|
||||
|
||||
transform/pos = Vector2( 256, 32 )
|
||||
transform/scale = Vector2( 0.441379, 0.426667 )
|
||||
transform/scale = Vector2( 1.3, 1.3 )
|
||||
texture = ExtResource( 3 )
|
||||
region = true
|
||||
region_rect = Rect2( 180, 140, 145, 150 )
|
||||
|
||||
[node name="Buttons" type="Node2D" parent="Control"]
|
||||
|
|
@ -93,9 +91,9 @@ visibility_mode = 0
|
|||
|
||||
[node name="Bttn_A" type="TouchScreenButton" parent="Control/Buttons"]
|
||||
|
||||
visibility/opacity = 0.5
|
||||
visibility/opacity = 0.8
|
||||
transform/pos = Vector2( 1088, 576 )
|
||||
transform/scale = Vector2( 2, 2 )
|
||||
transform/scale = Vector2( 0.474074, 0.481203 )
|
||||
normal = ExtResource( 5 )
|
||||
pressed = null
|
||||
bitmask = null
|
||||
|
|
@ -108,10 +106,11 @@ visibility_mode = 0
|
|||
|
||||
[node name="Bttn_AS" type="TouchScreenButton" parent="Control/Buttons"]
|
||||
|
||||
visibility/visible = false
|
||||
visibility/opacity = 0.5
|
||||
transform/pos = Vector2( 1088, 416 )
|
||||
transform/scale = Vector2( 2, 2 )
|
||||
normal = ExtResource( 5 )
|
||||
normal = ExtResource( 6 )
|
||||
pressed = null
|
||||
bitmask = null
|
||||
shape = null
|
||||
|
|
@ -123,10 +122,10 @@ visibility_mode = 0
|
|||
|
||||
[node name="Bttn_S" type="TouchScreenButton" parent="Control/Buttons"]
|
||||
|
||||
visibility/opacity = 0.5
|
||||
visibility/opacity = 0.9
|
||||
transform/pos = Vector2( 896, 576 )
|
||||
transform/scale = Vector2( 2, 2 )
|
||||
normal = ExtResource( 5 )
|
||||
transform/scale = Vector2( 0.474074, 0.481203 )
|
||||
normal = ExtResource( 7 )
|
||||
pressed = null
|
||||
bitmask = null
|
||||
shape = null
|
||||
|
|
@ -157,7 +156,7 @@ visibility_mode = 0
|
|||
visibility/opacity = 0.0
|
||||
transform/pos = Vector2( 288, 576 )
|
||||
transform/scale = Vector2( 0.25, 0.25 )
|
||||
normal = ExtResource( 6 )
|
||||
normal = ExtResource( 4 )
|
||||
pressed = null
|
||||
bitmask = null
|
||||
shape = null
|
||||
|
|
@ -172,7 +171,7 @@ visibility_mode = 0
|
|||
visibility/opacity = 0.0
|
||||
transform/pos = Vector2( 32, 576 )
|
||||
transform/scale = Vector2( 0.25, 0.25 )
|
||||
normal = ExtResource( 6 )
|
||||
normal = ExtResource( 4 )
|
||||
pressed = null
|
||||
bitmask = null
|
||||
shape = null
|
||||
|
|
@ -221,8 +220,8 @@ transform/scale = Vector2( 6, 1 )
|
|||
|
||||
[node name="Milkbar" type="TextureProgress" parent="Control/Milk"]
|
||||
|
||||
focus/ignore_mouse = false
|
||||
focus/stop_mouse = true
|
||||
focus/ignore_mouse = true
|
||||
focus/stop_mouse = false
|
||||
size_flags/horizontal = 2
|
||||
size_flags/vertical = 2
|
||||
margin/left = -32.0
|
||||
|
|
@ -238,7 +237,7 @@ range/exp_edit = false
|
|||
range/rounded = false
|
||||
texture/under = null
|
||||
texture/over = null
|
||||
texture/progress = ExtResource( 5 )
|
||||
texture/progress = ExtResource( 6 )
|
||||
mode = 1
|
||||
radial_fill/fill_degrees = 360.0
|
||||
radial_fill/center_offset = Vector2( 0, 0 )
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
[gd_scene load_steps=4 format=1]
|
||||
|
||||
[ext_resource path="res://manzana.gd" type="Script" id=1]
|
||||
[ext_resource path="res://manzana.png" type="Texture" id=2]
|
||||
[ext_resource path="res://manzana.tex" type="Texture" id=2]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id=1]
|
||||
|
||||
|
|
@ -20,13 +20,14 @@ gravity_vec = Vector2( 0, 1 )
|
|||
gravity = 0.0
|
||||
linear_damp = 0.1
|
||||
angular_damp = 1.0
|
||||
monitorable = false
|
||||
collision/layers = 16
|
||||
script/script = ExtResource( 1 )
|
||||
amount = 100
|
||||
|
||||
[node name="Apple" type="Sprite" parent="."]
|
||||
|
||||
transform/scale = Vector2( 2, 2 )
|
||||
transform/scale = Vector2( 1.8, 1.8 )
|
||||
texture = ExtResource( 2 )
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
|
|
|
|||
BIN
btn_jump.png
Normal file
|
After Width: | Height: | Size: 75 KiB |
BIN
btn_shoot.png
Normal file
|
After Width: | Height: | Size: 75 KiB |
BIN
bttn.png
Normal file
|
After Width: | Height: | Size: 61 KiB |
|
|
@ -10,6 +10,4 @@ func on_Bttn_press():
|
|||
|
||||
func _ready():
|
||||
connect("pressed", self, "on_Bttn_press")
|
||||
# Called every time the node is added to the scene.
|
||||
# Initialization here
|
||||
pass
|
||||
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@ onready var splash = get_node("Splash")
|
|||
var t = Timer.new()
|
||||
|
||||
func destroy():
|
||||
set_fixed_process(false)
|
||||
set_linear_velocity(Vector2(0,0))
|
||||
set_angular_velocity(0)
|
||||
|
||||
|
|
@ -31,11 +32,14 @@ func _fixed_process(delta):
|
|||
destroy()
|
||||
|
||||
func _ready():
|
||||
|
||||
t.set_wait_time(LIFE_TIME)
|
||||
t.set_one_shot(true)
|
||||
self.add_child(t)
|
||||
t.start()
|
||||
yield(t, "timeout")
|
||||
yield(t, "timeout")
|
||||
set_fixed_process(true)
|
||||
|
||||
|
||||
|
||||
func _on_RigidBody2D_body_enter( body ):
|
||||
pass # replace with function body
|
||||
|
|
|
|||
|
|
@ -6,13 +6,12 @@
|
|||
[sub_resource type="CircleShape2D" id=1]
|
||||
|
||||
custom_solver_bias = 0.0
|
||||
radius = 9.41128
|
||||
radius = 9.52631
|
||||
|
||||
[node name="RigidBody2D" type="RigidBody2D" groups=[
|
||||
"bullet",
|
||||
]]
|
||||
|
||||
visibility/behind_parent = true
|
||||
input/pickable = false
|
||||
shapes/0/shape = SubResource( 1 )
|
||||
shapes/0/transform = Matrix32( 1, 0, 0, 1, 0, 0 )
|
||||
|
|
@ -47,6 +46,7 @@ _update_shape_index = 0
|
|||
|
||||
config/amount = 30
|
||||
config/lifetime = 0.2
|
||||
config/time_scale = 2.0
|
||||
config/process_mode = 1
|
||||
config/local_space = false
|
||||
config/texture = ExtResource( 2 )
|
||||
|
|
|
|||
BIN
corazon.png
|
Before Width: | Height: | Size: 21 KiB |
|
|
@ -1 +1 @@
|
|||
gen_mipmaps=false
|
||||
filter=false
|
||||
|
|
|
|||
BIN
corazon2.png~
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
corazon2.tex
Normal file
BIN
corazon_vacio.png
Normal file
|
After Width: | Height: | Size: 984 B |
1
corazon_vacio.png.flags
Normal file
|
|
@ -0,0 +1 @@
|
|||
filter=false
|
||||
32
enemy_1.gd
|
|
@ -2,9 +2,6 @@ extends KinematicBody2D
|
|||
|
||||
signal damage
|
||||
|
||||
# class member variables go here, for example:
|
||||
# var a = 2
|
||||
# var b = "textvar"
|
||||
const GRAVITY = 3000.0
|
||||
|
||||
var vertical
|
||||
|
|
@ -15,7 +12,9 @@ onready var sprite = get_node("Sprite")
|
|||
|
||||
export(bool) var dir_left = true;
|
||||
|
||||
export var damage = 1
|
||||
export(int) var life = 2
|
||||
|
||||
export(int) var damage = 1
|
||||
|
||||
func reverse_direction():
|
||||
sprite.set_flip_h(v.x < 0)
|
||||
|
|
@ -27,7 +26,7 @@ func _ready():
|
|||
reverse_direction()
|
||||
set_fixed_process(true)
|
||||
|
||||
func die():
|
||||
func die_by_jump():
|
||||
set_shape_as_trigger(0, true)
|
||||
get_node("Sprite").set_opacity(0)
|
||||
Input.action_press("ui_jump")
|
||||
|
|
@ -40,9 +39,17 @@ func die():
|
|||
queue_free()
|
||||
Input.action_release("ui_jump")
|
||||
|
||||
func die():
|
||||
queue_free()
|
||||
|
||||
func decrease_life (value):
|
||||
life -= value
|
||||
if (life <= 0):
|
||||
die()
|
||||
|
||||
func _fixed_process(delta):
|
||||
var motion = v * delta
|
||||
motion = move(motion)
|
||||
motion = move(motion)
|
||||
v.y += delta * GRAVITY
|
||||
|
||||
if (is_colliding()):
|
||||
|
|
@ -50,13 +57,13 @@ func _fixed_process(delta):
|
|||
var collider = get_collider()
|
||||
|
||||
if (collider.is_in_group("player")):
|
||||
if (normal.y > 0.001):
|
||||
die()
|
||||
if (normal.y > 0.5):
|
||||
die_by_jump()
|
||||
else:
|
||||
emit_signal("damage", damage)
|
||||
elif (collider.is_in_group("bullet")):
|
||||
collider.destroy()
|
||||
queue_free()
|
||||
decrease_life(1)
|
||||
|
||||
else:
|
||||
if (normal.y < 0):
|
||||
|
|
@ -71,10 +78,5 @@ func _fixed_process(delta):
|
|||
reverse_direction()
|
||||
|
||||
|
||||
func _on_Area2D_body_enter( body ):
|
||||
if(body.is_in_group("player") and body.is_falling()):
|
||||
pass
|
||||
|
||||
func _on_Area2D1_body_enter( body ):
|
||||
if(body.is_in_group("player")):
|
||||
print("coñazo")
|
||||
|
||||
|
|
|
|||
51
enemy_1.tscn
|
|
@ -1,35 +1,54 @@
|
|||
[gd_scene load_steps=5 format=1]
|
||||
[gd_scene load_steps=15 format=1]
|
||||
|
||||
[ext_resource path="res://enemy_1.gd" type="Script" id=1]
|
||||
[ext_resource path="res://malvado2.png" type="Texture" id=2]
|
||||
[ext_resource path="res://malvado_caminando0000.tex" type="Texture" id=2]
|
||||
[ext_resource path="res://malvado_caminando0001.tex" type="Texture" id=3]
|
||||
[ext_resource path="res://malvado_caminando0002.tex" type="Texture" id=4]
|
||||
[ext_resource path="res://malvado_caminando0003.tex" type="Texture" id=5]
|
||||
[ext_resource path="res://malvado_caminando0004.tex" type="Texture" id=6]
|
||||
[ext_resource path="res://malvado_caminando0005.tex" type="Texture" id=7]
|
||||
[ext_resource path="res://malvado_caminando0006.tex" type="Texture" id=8]
|
||||
[ext_resource path="res://malvado_caminando0007.tex" type="Texture" id=9]
|
||||
[ext_resource path="res://malvado_caminando0008.tex" type="Texture" id=10]
|
||||
[ext_resource path="res://malvado_caminando0009.tex" type="Texture" id=11]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id=1]
|
||||
[sub_resource type="ConvexPolygonShape2D" id=1]
|
||||
|
||||
custom_solver_bias = 0.0
|
||||
extents = Vector2( 15.7116, 15.0871 )
|
||||
points = Vector2Array( -15.2852, -14.9169, 15.1533, -14.9169, 15.5226, 15.8674, 11.6589, 18.9589, -11.6389, 18.8541, -15.4421, 15.9475 )
|
||||
|
||||
[sub_resource type="RectangleShape2D" id=2]
|
||||
|
||||
custom_solver_bias = 0.0
|
||||
extents = Vector2( 29.003, 11.9202 )
|
||||
|
||||
[sub_resource type="SpriteFrames" id=3]
|
||||
|
||||
animations = [ {
|
||||
"frames": [ ExtResource( 2 ), ExtResource( 3 ), ExtResource( 4 ), ExtResource( 5 ), ExtResource( 6 ), ExtResource( 7 ), ExtResource( 8 ), ExtResource( 9 ), ExtResource( 10 ), ExtResource( 11 ) ],
|
||||
"loop": true,
|
||||
"name": "walking",
|
||||
"speed": 24.0
|
||||
} ]
|
||||
|
||||
[node name="KinematicBody2D 2" type="KinematicBody2D" groups=[
|
||||
"enemy_1",
|
||||
"enemy",
|
||||
"enemy_1",
|
||||
]]
|
||||
|
||||
transform/pos = Vector2( 64, -80 )
|
||||
transform/scale = Vector2( 2, 2 )
|
||||
transform/scale = Vector2( 1.8, 1.8 )
|
||||
input/pickable = false
|
||||
shapes/0/shape = SubResource( 1 )
|
||||
shapes/0/transform = Matrix32( 1.68421, 0, 0, 1.85361, -0.356735, 0.856171 )
|
||||
shapes/0/trigger = false
|
||||
collision/layers = 4
|
||||
collision/mask = 7
|
||||
collision/mask = 1
|
||||
collision/margin = 0.08
|
||||
script/script = ExtResource( 1 )
|
||||
velocity = 250
|
||||
dir_left = true
|
||||
life = 2
|
||||
damage = 1
|
||||
|
||||
[node name="Area2D" type="Area2D" parent="."]
|
||||
|
|
@ -82,20 +101,22 @@ shape = SubResource( 2 )
|
|||
trigger = true
|
||||
_update_shape_index = 0
|
||||
|
||||
[node name="Sprite" type="Sprite" parent="."]
|
||||
[node name="Sprite" type="AnimatedSprite" parent="."]
|
||||
|
||||
transform/pos = Vector2( 2.86102e-06, -4.76837e-07 )
|
||||
texture = ExtResource( 2 )
|
||||
transform/pos = Vector2( 3.8147e-06, 0 )
|
||||
frames = SubResource( 3 )
|
||||
animation = "walking"
|
||||
frame = 8
|
||||
playing = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="."]
|
||||
|
||||
transform/pos = Vector2( -0.356735, 0.856171 )
|
||||
transform/scale = Vector2( 1.68421, 1.85361 )
|
||||
shape = SubResource( 1 )
|
||||
build_mode = 0
|
||||
polygon = Vector2Array( -15.2852, -14.9169, 15.1533, -14.9169, 15.5226, 15.8674, 11.6589, 18.9589, -11.6389, 18.8541, -15.4421, 15.9475 )
|
||||
shape_range = Vector2( 0, 0 )
|
||||
trigger = false
|
||||
_update_shape_index = 0
|
||||
|
||||
[connection signal="input_event" from="." to="." method="_on_KinematicBody2D_2_input_event"]
|
||||
|
||||
[connection signal="body_enter" from="Area2D" to="." method="_on_Area2D_body_enter"]
|
||||
|
||||
|
|
|
|||
36
engine.cfg
|
|
@ -10,16 +10,42 @@ global="*res://global.gd"
|
|||
|
||||
[display]
|
||||
|
||||
use_2d_pixel_snap=false
|
||||
emulate_touchscreen=true
|
||||
driver="GLES2"
|
||||
stretch_aspect="keep"
|
||||
test_width=1280
|
||||
test_height=720
|
||||
stretch_mode="viewport"
|
||||
stretch_aspect="keep"
|
||||
driver="GLES2"
|
||||
fullscreen=false
|
||||
orientation="landscape"
|
||||
emulate_touchscreen=true
|
||||
|
||||
[input]
|
||||
|
||||
ui_jump=[key(A), key(Space)]
|
||||
ui_shoot=[key(S)]
|
||||
ui_left=[key(Left)]
|
||||
ui_right=[key(Right)]
|
||||
ui_jump=[key(A), key(Space), jbutton(0, 2)]
|
||||
ui_shoot=[key(S), jbutton(0, 3)]
|
||||
|
||||
[physics]
|
||||
|
||||
fixed_fps=60
|
||||
|
||||
[physics_2d]
|
||||
|
||||
thread_model=1
|
||||
|
||||
[rasterizer]
|
||||
|
||||
shadow_filter=0
|
||||
low_memory_2d_mode=true
|
||||
|
||||
[rasterizer.Android]
|
||||
|
||||
fp16_framebuffer=true
|
||||
|
||||
[render]
|
||||
|
||||
mipmap_policy=2
|
||||
shadows_enabled=false
|
||||
thread_model=2
|
||||
|
|
|
|||
|
|
@ -249,7 +249,7 @@ custom_binary/debug=""
|
|||
custom_binary/release=""
|
||||
debug/debugging_enabled=true
|
||||
resources/bundle_dependencies_(for_optical_disc)=true
|
||||
resources/pack_mode=1
|
||||
resources/pack_mode=0
|
||||
|
||||
[platform:Mac OSX]
|
||||
|
||||
|
|
|
|||
BIN
fondo_0.tex
BIN
fondo_1.tex
BIN
fondo_2.tex
BIN
fondo_3.tex
BIN
fondo_4.tex
|
|
@ -6,7 +6,7 @@ extends Node
|
|||
|
||||
var level
|
||||
|
||||
func release_all():
|
||||
func release_all():
|
||||
Input.action_release("ui_up")
|
||||
Input.action_release("ui_right")
|
||||
Input.action_release("ui_left")
|
||||
|
|
|
|||
BIN
malvado.png
|
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.3 KiB |
BIN
malvado.png~
|
Before Width: | Height: | Size: 2.4 KiB |
BIN
malvado.tex
Normal file
BIN
malvado2.png
|
Before Width: | Height: | Size: 2.5 KiB |
BIN
malvado_caminando0000.tex
Normal file
BIN
malvado_caminando0001.tex
Normal file
BIN
malvado_caminando0002.tex
Normal file
BIN
malvado_caminando0003.tex
Normal file
BIN
malvado_caminando0004.tex
Normal file
BIN
malvado_caminando0005.tex
Normal file
BIN
malvado_caminando0006.tex
Normal file
BIN
malvado_caminando0007.tex
Normal file
BIN
malvado_caminando0008.tex
Normal file
BIN
malvado_caminando0009.tex
Normal file
BIN
manzana.png
|
Before Width: | Height: | Size: 1.4 KiB |
BIN
manzana.tex
Normal file
19
player.gd
|
|
@ -69,11 +69,8 @@ func change_collision ():
|
|||
set_layer_mask_bit(0, !get_layer_mask_bit(0))
|
||||
set_layer_mask_bit(5, !get_layer_mask_bit(0))
|
||||
|
||||
|
||||
|
||||
func show_damage ():
|
||||
change_collision()
|
||||
|
||||
change_collision()
|
||||
var t1 = Timer.new()
|
||||
var t2 = Timer.new()
|
||||
t1.set_wait_time(0.2)
|
||||
|
|
@ -94,12 +91,13 @@ func show_damage ():
|
|||
|
||||
func can_jump_more ():
|
||||
return jump_time > 0
|
||||
|
||||
|
||||
func horizontal_movement_amount ():
|
||||
if (walk_speed < MAX_WALK_SPEED):
|
||||
walk_speed += WALK_SPEED_INCREMENT
|
||||
return walk_speed
|
||||
|
||||
|
||||
func _fixed_process(delta):
|
||||
if (jumping):
|
||||
jump_time -= altitude
|
||||
|
|
@ -152,11 +150,12 @@ func _fixed_process(delta):
|
|||
motion.x = 0.15
|
||||
else:
|
||||
motion.x = -0.15
|
||||
|
||||
|
||||
motion = move(motion)
|
||||
|
||||
# Control de colisiones
|
||||
if (is_colliding()):
|
||||
|
||||
var normal = get_collision_normal()
|
||||
|
||||
if (normal.y > 0.5 and jumping):
|
||||
|
|
@ -166,15 +165,17 @@ func _fixed_process(delta):
|
|||
jump_time = 0
|
||||
else:
|
||||
# Está en el suelo
|
||||
can_jump = true
|
||||
jumping = false
|
||||
if (normal.y < -0.5):
|
||||
can_jump = true
|
||||
jumping = false
|
||||
motion = normal.slide(motion)
|
||||
velocity = normal.slide(velocity)
|
||||
move(motion)
|
||||
|
||||
else:
|
||||
can_jump = false
|
||||
|
||||
func _ready():
|
||||
func _ready():
|
||||
connect("update_milk",get_tree().get_nodes_in_group("control")[0],"on_update_milk_bar")
|
||||
emit_signal("update_milk", get_max_milk(), get_milk_level());
|
||||
set_fixed_process(true)
|
||||
|
|
|
|||
42
player.tscn
|
|
@ -1,25 +1,37 @@
|
|||
[gd_scene load_steps=6 format=1]
|
||||
[gd_scene load_steps=10 format=1]
|
||||
|
||||
[ext_resource path="res://player.gd" type="Script" id=1]
|
||||
[ext_resource path="res://shooter.gd" type="Script" id=2]
|
||||
[ext_resource path="res://vaca3.png" type="Texture" id=3]
|
||||
[ext_resource path="res://vaca_idle_1.tex" type="Texture" id=3]
|
||||
[ext_resource path="res://vaca_idle_2.tex" type="Texture" id=4]
|
||||
[ext_resource path="res://vaca_idle_3.tex" type="Texture" id=5]
|
||||
[ext_resource path="res://vaca_idle_4.tex" type="Texture" id=6]
|
||||
|
||||
[sub_resource type="ConvexPolygonShape2D" id=3]
|
||||
[sub_resource type="ConvexPolygonShape2D" id=1]
|
||||
|
||||
custom_solver_bias = 0.0
|
||||
points = Vector2Array( -16.5903, -10.3465, 13.4341, -10.3403, 13.4341, 9.72513, 12.1306, 11.0393, 9.89776, 11.834, 7.17851, 12.2333, -10.3348, 12.2271, -12.2873, 12.1508, -13.8895, 11.6943, -15.9134, 10.7814, -16.5903, 9.71889 )
|
||||
points = Vector2Array( -16.5903, -10.3465, 13.4341, -10.3403, 13.4341, 9.72513, 10.9093, 12.2861, -13.9703, 12.2402, -16.5903, 9.71889 )
|
||||
|
||||
[sub_resource type="RectangleShape2D" id=2]
|
||||
|
||||
custom_solver_bias = 0.0
|
||||
extents = Vector2( 12.363, 15.2052 )
|
||||
|
||||
[sub_resource type="SpriteFrames" id=3]
|
||||
|
||||
animations = [ {
|
||||
"frames": [ ExtResource( 3 ), ExtResource( 4 ), ExtResource( 5 ), ExtResource( 6 ), ExtResource( 5 ), ExtResource( 4 ) ],
|
||||
"loop": true,
|
||||
"name": "Idle",
|
||||
"speed": 10.0
|
||||
} ]
|
||||
|
||||
[node name="Player" type="KinematicBody2D"]
|
||||
|
||||
transform/scale = Vector2( 2, 2 )
|
||||
transform/scale = Vector2( 1.8, 1.8 )
|
||||
input/pickable = false
|
||||
shapes/0/shape = SubResource( 3 )
|
||||
shapes/0/transform = Matrix32( 1.9183, 0, 0, 3.19062, 3.14685, -5.78916 )
|
||||
shapes/0/shape = SubResource( 1 )
|
||||
shapes/0/transform = Matrix32( 1.89755, 0, 0, 3.19062, 2.93931, -5.78916 )
|
||||
shapes/0/trigger = false
|
||||
shapes/1/shape = SubResource( 2 )
|
||||
shapes/1/transform = Matrix32( 2.31574, 0, 0, 1.23398, -0.18514, 15.1934 )
|
||||
|
|
@ -73,10 +85,10 @@ randomness/initial_size = 1.0
|
|||
|
||||
[node name="Collision_Normal" type="CollisionPolygon2D" parent="."]
|
||||
|
||||
transform/pos = Vector2( 3.14685, -5.78916 )
|
||||
transform/scale = Vector2( 1.9183, 3.19062 )
|
||||
transform/pos = Vector2( 2.93931, -5.78916 )
|
||||
transform/scale = Vector2( 1.89755, 3.19062 )
|
||||
build_mode = 0
|
||||
polygon = Vector2Array( -16.5903, 9.71889, -15.9134, 10.7814, -13.8895, 11.6943, -12.2873, 12.1508, -10.3348, 12.2271, 7.17851, 12.2333, 9.89776, 11.834, 12.1306, 11.0393, 13.4341, 9.72513, 13.4341, -10.3403, -16.5903, -10.3465 )
|
||||
polygon = Vector2Array( -16.5903, 9.71889, -13.9703, 12.2402, 10.9093, 12.2861, 13.4341, 9.72513, 13.4341, -10.3403, -16.5903, -10.3465 )
|
||||
shape_range = Vector2( 0, 0 )
|
||||
trigger = false
|
||||
|
||||
|
|
@ -88,10 +100,12 @@ shape = SubResource( 2 )
|
|||
trigger = true
|
||||
_update_shape_index = 1
|
||||
|
||||
[node name="sprite" type="Sprite" parent="."]
|
||||
[node name="sprite" type="AnimatedSprite" parent="."]
|
||||
|
||||
texture = ExtResource( 3 )
|
||||
region_rect = Rect2( 200, 450, 1500, 2900 )
|
||||
frames = SubResource( 3 )
|
||||
animation = "Idle"
|
||||
frame = 3
|
||||
playing = true
|
||||
|
||||
[node name="Camera2D" type="Camera2D" parent="sprite"]
|
||||
|
||||
|
|
@ -114,8 +128,6 @@ drag_margin/top = 0.2
|
|||
drag_margin/right = 0.2
|
||||
drag_margin/bottom = 0.2
|
||||
|
||||
[connection signal="input_event" from="." to="." method="_on_Player_input_event"]
|
||||
|
||||
[connection signal="looking_left" from="." to="shooter" method="_on_KinematicBody2D_looking_left"]
|
||||
|
||||
[connection signal="looking_right" from="." to="shooter" method="_on_KinematicBody2D_looking_right"]
|
||||
|
|
|
|||
BIN
tile.png
|
Before Width: | Height: | Size: 187 KiB |
175
tiles.tscn
|
|
@ -1,113 +1,98 @@
|
|||
[gd_scene load_steps=24 format=1]
|
||||
[gd_scene load_steps=21 format=1]
|
||||
|
||||
[ext_resource path="res://tile full.tex" type="Texture" id=1]
|
||||
|
||||
[sub_resource type="ConvexPolygonShape2D" id=1]
|
||||
|
||||
custom_solver_bias = 0.0
|
||||
points = Vector2Array( -32, -32, 32, -32, 32, 32, -32, 32, -32, -32 )
|
||||
points = Vector2Array( -21.2298, -23.8952, -16.2848, -26.453, -9.37893, -26.9645, 32, -28, 32, 32, -27, 32, -26.601, -15.7957, -24.4696, -20.3144 )
|
||||
|
||||
[sub_resource type="ConvexPolygonShape2D" id=2]
|
||||
|
||||
custom_solver_bias = 0.0
|
||||
points = Vector2Array( 32, -32, 32, 32, -32, 32 )
|
||||
points = Vector2Array( -32, -28, 32, -28, 32, 32, -32, 32 )
|
||||
|
||||
[sub_resource type="ConvexPolygonShape2D" id=3]
|
||||
|
||||
custom_solver_bias = 0.0
|
||||
points = Vector2Array( -32, -32, 32, 32, -32, 32 )
|
||||
points = Vector2Array( -32, -28, 13.8965, -27.135, 19.9498, -24.2363, 24.2127, -19.4618, 25.4063, -15.7105, 26, 32, -32, 32 )
|
||||
|
||||
[sub_resource type="ConvexPolygonShape2D" id=4]
|
||||
|
||||
custom_solver_bias = 0.0
|
||||
points = Vector2Array( -21.2298, -23.8952, -16.2848, -26.453, -9.37893, -26.9645, 32, -28, 32, 32, -27, 32, -26.601, -15.7957, -24.4696, -20.3144 )
|
||||
points = Vector2Array( 32, -32, 32, 32, -28, 32, -27.4817, -32.0967 )
|
||||
|
||||
[sub_resource type="ConvexPolygonShape2D" id=5]
|
||||
|
||||
custom_solver_bias = 0.0
|
||||
points = Vector2Array( -32, -28, 32, -28, 32, 32, -32, 32 )
|
||||
points = Vector2Array( 32, -32, 32, 32, -32, 32, -32, -32 )
|
||||
|
||||
[sub_resource type="ConvexPolygonShape2D" id=6]
|
||||
|
||||
custom_solver_bias = 0.0
|
||||
points = Vector2Array( -32, -28, 13.8965, -27.135, 19.9498, -24.2363, 24.2127, -19.4618, 25.4063, -15.7105, 26, 32, -32, 32 )
|
||||
points = Vector2Array( 27, -32, 27, 32, -32, 32, -32, -32 )
|
||||
|
||||
[sub_resource type="ConvexPolygonShape2D" id=7]
|
||||
|
||||
custom_solver_bias = 0.0
|
||||
points = Vector2Array( 32, -32, 32, 32, -28, 32, -27.4817, -32.0967 )
|
||||
points = Vector2Array( 32.0174, -32.3287, 32.2493, 27.9823, -9.96833, 27.1704, -21.5666, 24.9667, -24.4662, 22.763, -27, 17, -26.9018, -31.7488 )
|
||||
|
||||
[sub_resource type="ConvexPolygonShape2D" id=8]
|
||||
|
||||
custom_solver_bias = 0.0
|
||||
points = Vector2Array( 32, -32, 32, 32, -32, 32, -32, -32 )
|
||||
points = Vector2Array( 32, -32, 32, 28, -32, 28, -32, -32 )
|
||||
|
||||
[sub_resource type="ConvexPolygonShape2D" id=9]
|
||||
|
||||
custom_solver_bias = 0.0
|
||||
points = Vector2Array( 27, -32, 27, 32, -32, 32, -32, -32 )
|
||||
points = Vector2Array( 27, -32, 27, 15, 25, 21, 21.115, 25.3147, 11.2565, 26.8224, -32, 28, -32, -32 )
|
||||
|
||||
[sub_resource type="ConvexPolygonShape2D" id=10]
|
||||
|
||||
custom_solver_bias = 0.0
|
||||
points = Vector2Array( 32.0174, -32.3287, 32.2493, 27.9823, -9.96833, 27.1704, -21.5666, 24.9667, -24.4662, 22.763, -27, 17, -26.9018, -31.7488 )
|
||||
points = Vector2Array( 32, -32, 32, 32, -32, 32, -31.8891, -27.3414, -29, -30 )
|
||||
|
||||
[sub_resource type="ConvexPolygonShape2D" id=11]
|
||||
|
||||
custom_solver_bias = 0.0
|
||||
points = Vector2Array( 32, -32, 32, 28, -32, 28, -32, -32 )
|
||||
points = Vector2Array( -27, -32, 32, -32, -29, -30 )
|
||||
|
||||
[sub_resource type="ConvexPolygonShape2D" id=12]
|
||||
|
||||
custom_solver_bias = 0.0
|
||||
points = Vector2Array( 27, -32, 27, 15, 25, 21, 21.115, 25.3147, 11.2565, 26.8224, -32, 28, -32, -32 )
|
||||
|
||||
[sub_resource type="ConvexPolygonShape2D" id=35]
|
||||
|
||||
custom_solver_bias = 0.0
|
||||
points = Vector2Array( 32, -32, 32, 32, -32, 32, -31.8891, -27.3414, -29, -30 )
|
||||
|
||||
[sub_resource type="ConvexPolygonShape2D" id=36]
|
||||
|
||||
custom_solver_bias = 0.0
|
||||
points = Vector2Array( -27, -32, 32, -32, -29, -30 )
|
||||
|
||||
[sub_resource type="ConvexPolygonShape2D" id=37]
|
||||
|
||||
custom_solver_bias = 0.0
|
||||
points = Vector2Array( -31, -32, 33, -32, 33, 32, -27, 32, -29, 30, -31, 28 )
|
||||
|
||||
[sub_resource type="ConvexPolygonShape2D" id=38]
|
||||
[sub_resource type="ConvexPolygonShape2D" id=13]
|
||||
|
||||
custom_solver_bias = 0.0
|
||||
points = Vector2Array( -32, -32, 32, -32, 32, 28, 30, 30, 28, 32, -32, 32 )
|
||||
|
||||
[sub_resource type="ConvexPolygonShape2D" id=30]
|
||||
[sub_resource type="ConvexPolygonShape2D" id=14]
|
||||
|
||||
custom_solver_bias = 0.0
|
||||
points = Vector2Array( -32, -32, 27.4498, -32.0095, 31.9963, -27.7854, 32.0174, 32.0416, -32, 32 )
|
||||
|
||||
[sub_resource type="ConvexPolygonShape2D" id=20]
|
||||
[sub_resource type="ConvexPolygonShape2D" id=15]
|
||||
|
||||
custom_solver_bias = 0.0
|
||||
points = Vector2Array( -13, -27, 13, -27, 20.1871, -23.398, 26, -16, 26, 18, 22, 24, 12, 27, -11.8241, 27.0544, -22.7264, 24.6188, -27, 19, -26.9018, -15.1633, -21.7986, -22.5862, -18, -25 )
|
||||
|
||||
[sub_resource type="ConvexPolygonShape2D" id=41]
|
||||
[sub_resource type="ConvexPolygonShape2D" id=16]
|
||||
|
||||
custom_solver_bias = 0.0
|
||||
points = Vector2Array( -27, 32, 32, -28, 32.0174, 31.9257 )
|
||||
|
||||
[sub_resource type="ConvexPolygonShape2D" id=40]
|
||||
[sub_resource type="ConvexPolygonShape2D" id=17]
|
||||
|
||||
custom_solver_bias = 0.0
|
||||
points = Vector2Array( -32, -27, -30.1058, -27.0105, 28, 32, -32, 32 )
|
||||
|
||||
[sub_resource type="ConvexPolygonShape2D" id=23]
|
||||
[sub_resource type="ConvexPolygonShape2D" id=18]
|
||||
|
||||
custom_solver_bias = 0.0
|
||||
points = Vector2Array( -32, -32, 27, -32, -32, 28 )
|
||||
|
||||
[sub_resource type="ConvexPolygonShape2D" id=24]
|
||||
[sub_resource type="ConvexPolygonShape2D" id=19]
|
||||
|
||||
custom_solver_bias = 0.0
|
||||
points = Vector2Array( 32, -32, 32, 28, -28, -32 )
|
||||
|
|
@ -116,92 +101,8 @@ points = Vector2Array( 32, -32, 32, 28, -28, -32 )
|
|||
|
||||
transform/pos = Vector2( 32, 32 )
|
||||
|
||||
[node name="Suelo" type="Sprite" parent="."]
|
||||
|
||||
visibility/visible = false
|
||||
transform/pos = Vector2( -64, -64 )
|
||||
texture = ExtResource( 1 )
|
||||
region_rect = Rect2( 0, 128, 64, 64 )
|
||||
|
||||
[node name="StaticBody2D" type="StaticBody2D" parent="Suelo"]
|
||||
|
||||
input/pickable = false
|
||||
shapes/0/shape = SubResource( 1 )
|
||||
shapes/0/transform = Matrix32( 1, 0, 0, 1, 0, 0 )
|
||||
shapes/0/trigger = false
|
||||
collision/layers = 2
|
||||
collision/mask = 14
|
||||
constant_linear_velocity = Vector2( 0, 0 )
|
||||
constant_angular_velocity = 0.0
|
||||
friction = 0.0
|
||||
bounce = 0.0
|
||||
|
||||
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Suelo/StaticBody2D"]
|
||||
|
||||
build_mode = 0
|
||||
polygon = Vector2Array( -32, -32, -32, 32, 32, 32, 32, -32, -32, -32 )
|
||||
shape_range = Vector2( 0, 0 )
|
||||
trigger = false
|
||||
|
||||
[node name="Rampa_LR" type="Sprite" parent="."]
|
||||
|
||||
visibility/visible = false
|
||||
transform/pos = Vector2( -64, -64 )
|
||||
texture = ExtResource( 1 )
|
||||
region = true
|
||||
region_rect = Rect2( 320, 256, 64, 64 )
|
||||
|
||||
[node name="StaticBody2D" type="StaticBody2D" parent="Rampa_LR"]
|
||||
|
||||
input/pickable = false
|
||||
shapes/0/shape = SubResource( 2 )
|
||||
shapes/0/transform = Matrix32( 1, 0, 0, 1, 0, 0 )
|
||||
shapes/0/trigger = false
|
||||
collision/layers = 2
|
||||
collision/mask = 14
|
||||
constant_linear_velocity = Vector2( 0, 0 )
|
||||
constant_angular_velocity = 0.0
|
||||
friction = 0.0
|
||||
bounce = 0.0
|
||||
|
||||
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Rampa_LR/StaticBody2D"]
|
||||
|
||||
build_mode = 0
|
||||
polygon = Vector2Array( -32, 32, 32, 32, 32, -32 )
|
||||
shape_range = Vector2( 0, 0 )
|
||||
trigger = false
|
||||
|
||||
[node name="Rampa_RL" type="Sprite" parent="."]
|
||||
|
||||
visibility/visible = false
|
||||
transform/pos = Vector2( -64, -64 )
|
||||
texture = ExtResource( 1 )
|
||||
region = true
|
||||
region_rect = Rect2( 512, 256, 64, 64 )
|
||||
|
||||
[node name="StaticBody2D" type="StaticBody2D" parent="Rampa_RL"]
|
||||
|
||||
input/pickable = false
|
||||
shapes/0/shape = SubResource( 3 )
|
||||
shapes/0/transform = Matrix32( 1, 0, 0, 1, 0, 0 )
|
||||
shapes/0/trigger = false
|
||||
collision/layers = 2
|
||||
collision/mask = 15
|
||||
constant_linear_velocity = Vector2( 0, 0 )
|
||||
constant_angular_velocity = 0.0
|
||||
friction = 0.0
|
||||
bounce = 0.0
|
||||
|
||||
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Rampa_RL/StaticBody2D"]
|
||||
|
||||
build_mode = 0
|
||||
polygon = Vector2Array( -32, 32, 32, 32, -32, -32 )
|
||||
shape_range = Vector2( 0, 0 )
|
||||
trigger = false
|
||||
|
||||
[node name="Arriba_Izquierda" type="Sprite" parent="."]
|
||||
|
||||
visibility/visible = false
|
||||
transform/pos = Vector2( -64, 0 )
|
||||
texture = ExtResource( 1 )
|
||||
region = true
|
||||
|
|
@ -210,7 +111,7 @@ region_rect = Rect2( 0, 0, 64, 64 )
|
|||
[node name="StaticBody2D" type="StaticBody2D" parent="Arriba_Izquierda"]
|
||||
|
||||
input/pickable = false
|
||||
shapes/0/shape = SubResource( 4 )
|
||||
shapes/0/shape = SubResource( 1 )
|
||||
shapes/0/transform = Matrix32( 1, 0, 0, 1, 0, 0 )
|
||||
shapes/0/trigger = false
|
||||
collision/layers = 2
|
||||
|
|
@ -237,7 +138,7 @@ region_rect = Rect2( 64, 0, 64, 64 )
|
|||
|
||||
transform/pos = Vector2( -0.0852547, -0.0852585 )
|
||||
input/pickable = false
|
||||
shapes/0/shape = SubResource( 5 )
|
||||
shapes/0/shape = SubResource( 2 )
|
||||
shapes/0/transform = Matrix32( 1, 0, 0, 1, 0.0852547, 0.0852585 )
|
||||
shapes/0/trigger = false
|
||||
collision/layers = 2
|
||||
|
|
@ -267,7 +168,7 @@ region_rect = Rect2( 128, 0, 64, 64 )
|
|||
|
||||
transform/pos = Vector2( -0.0852547, -0.0852585 )
|
||||
input/pickable = false
|
||||
shapes/0/shape = SubResource( 6 )
|
||||
shapes/0/shape = SubResource( 3 )
|
||||
shapes/0/transform = Matrix32( 1, 0, 0, 1, 0.0852547, 0.0852585 )
|
||||
shapes/0/trigger = false
|
||||
collision/layers = 2
|
||||
|
|
@ -297,7 +198,7 @@ region_rect = Rect2( 0, 64, 64, 64 )
|
|||
|
||||
transform/pos = Vector2( -0.0852547, -0.0852585 )
|
||||
input/pickable = false
|
||||
shapes/0/shape = SubResource( 7 )
|
||||
shapes/0/shape = SubResource( 4 )
|
||||
shapes/0/transform = Matrix32( 1, 0, 0, 1, 0.0852547, 0.0852585 )
|
||||
shapes/0/trigger = false
|
||||
collision/layers = 2
|
||||
|
|
@ -327,7 +228,7 @@ region_rect = Rect2( 64, 64, 64, 64 )
|
|||
|
||||
transform/pos = Vector2( -0.0852547, -0.0852585 )
|
||||
input/pickable = false
|
||||
shapes/0/shape = SubResource( 8 )
|
||||
shapes/0/shape = SubResource( 5 )
|
||||
shapes/0/transform = Matrix32( 1, 0, 0, 1, 0.0852547, 0.0852585 )
|
||||
shapes/0/trigger = false
|
||||
collision/layers = 2
|
||||
|
|
@ -357,7 +258,7 @@ region_rect = Rect2( 128, 64, 64, 64 )
|
|||
|
||||
transform/pos = Vector2( -0.0852547, -0.0852585 )
|
||||
input/pickable = false
|
||||
shapes/0/shape = SubResource( 9 )
|
||||
shapes/0/shape = SubResource( 6 )
|
||||
shapes/0/transform = Matrix32( 1, 0, 0, 1, 0.0852547, 0.0852585 )
|
||||
shapes/0/trigger = false
|
||||
collision/layers = 2
|
||||
|
|
@ -387,7 +288,7 @@ region_rect = Rect2( 0, 128, 64, 64 )
|
|||
|
||||
transform/pos = Vector2( -0.0852547, -0.0852585 )
|
||||
input/pickable = false
|
||||
shapes/0/shape = SubResource( 10 )
|
||||
shapes/0/shape = SubResource( 7 )
|
||||
shapes/0/transform = Matrix32( 1, 0, 0, 1, 0.0852547, 0.0852585 )
|
||||
shapes/0/trigger = false
|
||||
collision/layers = 2
|
||||
|
|
@ -417,7 +318,7 @@ region_rect = Rect2( 64, 128, 64, 64 )
|
|||
|
||||
transform/pos = Vector2( -0.0852547, -0.0852585 )
|
||||
input/pickable = false
|
||||
shapes/0/shape = SubResource( 11 )
|
||||
shapes/0/shape = SubResource( 8 )
|
||||
shapes/0/transform = Matrix32( 1, 0, 0, 1, 0.0852547, 0.0852585 )
|
||||
shapes/0/trigger = false
|
||||
collision/layers = 2
|
||||
|
|
@ -447,7 +348,7 @@ region_rect = Rect2( 128, 128, 64, 64 )
|
|||
|
||||
transform/pos = Vector2( -0.0852547, -0.0852585 )
|
||||
input/pickable = false
|
||||
shapes/0/shape = SubResource( 12 )
|
||||
shapes/0/shape = SubResource( 9 )
|
||||
shapes/0/transform = Matrix32( 1, 0, 0, 1, 0.0852547, 0.0852585 )
|
||||
shapes/0/trigger = false
|
||||
collision/layers = 2
|
||||
|
|
@ -478,10 +379,10 @@ region_rect = Rect2( 256, 256, 64, 64 )
|
|||
visibility/visible = false
|
||||
transform/pos = Vector2( -0.0852547, -0.0852585 )
|
||||
input/pickable = false
|
||||
shapes/0/shape = SubResource( 35 )
|
||||
shapes/0/shape = SubResource( 10 )
|
||||
shapes/0/transform = Matrix32( 1, 0, 0, 1, 0.0852547, 0.0852585 )
|
||||
shapes/0/trigger = false
|
||||
shapes/1/shape = SubResource( 36 )
|
||||
shapes/1/shape = SubResource( 11 )
|
||||
shapes/1/transform = Matrix32( 1, 0, 0, 1, 0.0852547, 0.0852585 )
|
||||
shapes/1/trigger = false
|
||||
collision/layers = 2
|
||||
|
|
@ -513,7 +414,7 @@ region_rect = Rect2( 256, 192, 64, 64 )
|
|||
visibility/visible = false
|
||||
transform/pos = Vector2( -0.0852547, -0.0852585 )
|
||||
input/pickable = false
|
||||
shapes/0/shape = SubResource( 37 )
|
||||
shapes/0/shape = SubResource( 12 )
|
||||
shapes/0/transform = Matrix32( 1, 0, 0, 1, -0.914745, 0.0852585 )
|
||||
shapes/0/trigger = false
|
||||
collision/layers = 2
|
||||
|
|
@ -544,7 +445,7 @@ region_rect = Rect2( 192, 192, 64, 64 )
|
|||
|
||||
transform/pos = Vector2( -0.0852547, -0.0852585 )
|
||||
input/pickable = false
|
||||
shapes/0/shape = SubResource( 38 )
|
||||
shapes/0/shape = SubResource( 13 )
|
||||
shapes/0/transform = Matrix32( 1, 0, 0, 1, 0.0852547, 0.0852585 )
|
||||
shapes/0/trigger = false
|
||||
collision/layers = 2
|
||||
|
|
@ -574,7 +475,7 @@ region_rect = Rect2( 192, 256, 64, 64 )
|
|||
|
||||
transform/pos = Vector2( -0.0852547, -0.0852585 )
|
||||
input/pickable = false
|
||||
shapes/0/shape = SubResource( 30 )
|
||||
shapes/0/shape = SubResource( 14 )
|
||||
shapes/0/transform = Matrix32( 1, 0, 0, 1, 0.0852547, 0.0852585 )
|
||||
shapes/0/trigger = false
|
||||
collision/layers = 2
|
||||
|
|
@ -604,7 +505,7 @@ region_rect = Rect2( 192, 64, 64, 64 )
|
|||
|
||||
transform/pos = Vector2( -0.0852547, -0.0852585 )
|
||||
input/pickable = false
|
||||
shapes/0/shape = SubResource( 20 )
|
||||
shapes/0/shape = SubResource( 15 )
|
||||
shapes/0/transform = Matrix32( 1, 0, 0, 1, 0.0852547, 0.0852585 )
|
||||
shapes/0/trigger = false
|
||||
collision/layers = 2
|
||||
|
|
@ -634,7 +535,7 @@ region_rect = Rect2( 0, 192, 64, 64 )
|
|||
|
||||
transform/pos = Vector2( -0.0852547, -0.0852585 )
|
||||
input/pickable = false
|
||||
shapes/0/shape = SubResource( 41 )
|
||||
shapes/0/shape = SubResource( 16 )
|
||||
shapes/0/transform = Matrix32( 1, 0, 0, 1, 0.0852547, 0.0852585 )
|
||||
shapes/0/trigger = false
|
||||
collision/layers = 2
|
||||
|
|
@ -664,7 +565,7 @@ region_rect = Rect2( 64, 192, 64, 64 )
|
|||
|
||||
transform/pos = Vector2( -0.0852547, -0.0852585 )
|
||||
input/pickable = false
|
||||
shapes/0/shape = SubResource( 40 )
|
||||
shapes/0/shape = SubResource( 17 )
|
||||
shapes/0/transform = Matrix32( 1, 0, 0, 1, 0.0852547, 0.0852585 )
|
||||
shapes/0/trigger = false
|
||||
collision/layers = 2
|
||||
|
|
@ -694,7 +595,7 @@ region_rect = Rect2( 64, 256, 64, 64 )
|
|||
|
||||
transform/pos = Vector2( -0.0852547, -0.0852585 )
|
||||
input/pickable = false
|
||||
shapes/0/shape = SubResource( 23 )
|
||||
shapes/0/shape = SubResource( 18 )
|
||||
shapes/0/transform = Matrix32( 1, 0, 0, 1, 0.0852547, 0.0852585 )
|
||||
shapes/0/trigger = false
|
||||
collision/layers = 2
|
||||
|
|
@ -724,7 +625,7 @@ region_rect = Rect2( 0, 256, 64, 64 )
|
|||
|
||||
transform/pos = Vector2( -0.0852547, -0.0852585 )
|
||||
input/pickable = false
|
||||
shapes/0/shape = SubResource( 24 )
|
||||
shapes/0/shape = SubResource( 19 )
|
||||
shapes/0/transform = Matrix32( 1, 0, 0, 1, 0.0852547, 0.0852585 )
|
||||
shapes/0/trigger = false
|
||||
collision/layers = 2
|
||||
|
|
|
|||
86
top.tscn
BIN
vaca.2kra
Normal file
BIN
vaca.png
|
Before Width: | Height: | Size: 1.1 MiB |
BIN
vaca.tex
Normal file
BIN
vaca2.png
|
Before Width: | Height: | Size: 2.7 KiB |
BIN
vaca3.png
|
Before Width: | Height: | Size: 2.7 KiB |
BIN
vaca_idle_1.png
Normal file
|
After Width: | Height: | Size: 2.5 KiB |
BIN
vaca_idle_1.png~
Normal file
|
After Width: | Height: | Size: 2.5 KiB |
BIN
vaca_idle_1.tex
Normal file
BIN
vaca_idle_2.png
Normal file
|
After Width: | Height: | Size: 2.5 KiB |
1
vaca_idle_2.png.flags
Normal file
|
|
@ -0,0 +1 @@
|
|||
filter=false
|
||||
BIN
vaca_idle_2.png~
Normal file
|
After Width: | Height: | Size: 2.5 KiB |
BIN
vaca_idle_2.tex
Normal file
BIN
vaca_idle_3.png
Normal file
|
After Width: | Height: | Size: 2.5 KiB |
1
vaca_idle_3.png.flags
Normal file
|
|
@ -0,0 +1 @@
|
|||
filter=false
|
||||
BIN
vaca_idle_3.png~
Normal file
|
After Width: | Height: | Size: 2.5 KiB |
BIN
vaca_idle_3.tex
Normal file
BIN
vaca_idle_4.png
Normal file
|
After Width: | Height: | Size: 2.5 KiB |
BIN
vaca_idle_4.png~
Normal file
|
After Width: | Height: | Size: 2.5 KiB |