mirror of
https://github.com/Dariasteam/Cows-Revenge.git
synced 2026-01-23 02:15:17 +00:00
A lot of new stuff
This commit is contained in:
parent
76b95cb0c8
commit
afcafc57a3
27 changed files with 1412 additions and 1220 deletions
|
|
@ -8,8 +8,8 @@ onready var particles_a = get_node("Bars")
|
|||
onready var particles_b = get_node("Dust")
|
||||
onready var sound = get_node("StreamPlayer")
|
||||
|
||||
onready var text_label = get_node("Text")
|
||||
onready var text_anim = get_node("Text/AnimationPlayer")
|
||||
onready var text_label = get_node("Node2D/Text")
|
||||
onready var text_anim = get_node("Node2D/Text/AnimationPlayer")
|
||||
|
||||
func _ready():
|
||||
pass
|
||||
|
|
@ -27,6 +27,8 @@ func open_cage():
|
|||
foreground.queue_free()
|
||||
background.queue_free()
|
||||
|
||||
remove_from_group("cages")
|
||||
|
||||
|
||||
func _on_Area2D_body_enter( body ):
|
||||
if (body.is_in_group("player")):
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
[gd_scene load_steps=4 format=1]
|
||||
|
||||
[ext_resource path="res://Fonts/pixelated_regular.fnt" type="BitmapFont" id=1]
|
||||
[ext_resource path="res://Fonts/pixelated_title.fnt" type="BitmapFont" id=1]
|
||||
|
||||
[sub_resource type="GDScript" id=1]
|
||||
|
||||
|
|
|
|||
|
|
@ -59,11 +59,11 @@ constant_angular_velocity = 0.0
|
|||
friction = 1.0
|
||||
bounce = 0.0
|
||||
script/script = ExtResource( 1 )
|
||||
text = [ "Vamos señores wuuu!", "Los astronautas no existen", "e=mc^2", "e_e", "Wiii", "cocococo", "Zzz...", "¡Ya era hora!", ":D", "Pos coman pinocha", "Alejate primo alejate", "Efectivamente", "Porque quiero que sepas que tú para mi eres un amigo pa siempre", "La gravedad no existe", "La caida de la gran babilonia", "FUAAAA!!", "Tu no me mandas", ":C", "No te pongas nervioso", "¿Donde esta la contaminacion que yo no la veo?", "seh seh seh seh", "Tu crees que arcadio va a llevar el coche al para?", "La psicologia es util", "C++ > Java", "GNU Not Unix", "Salchichas comodoro", "Ostia el workbook!", "Macarrones con tomatico ", "Yo soy tu padre", "" ]
|
||||
text = [ "Vamos señores wuuu!", "Los astronautas no existen", "e=mc^2", "e_e", "Wiii", "cocococo", "Zzz...", "¡Ya era hora!", ":D", "Pos coman pinocha", "Aléjate primo aléjate", "Efectivamente", "Porque quiero que sepas que tú para mi eres un amigo pa siempre", "La gravedad no existe", "La caida de la gran babilonia", "FUAAAA!!", "Tú no me mandas", ":C", "No te pongas nervioso", "¿Dónde está la contaminacion que yo la vea?", "seh seh seh seh", "Tu crees que arcadio va a llevar el coche al para?", "La psicología es útil", "C++ > Java", "GNU Not Unix", "Salchichas comodoro", "Ostia el workbook!", "Macarrones con tomatico ", "Yo soy tu padre", "No quiero hablar contigo", "Déjame en paz", "...", "La oronja verde o amanita palloides es el hongo más venenoso del mundo", "Poesía eres tú", "Illuminati confirmed", "Soy dueño de la canaca", "Yo soy un pollo cobarde", "¡Rayos y centellas!", "Para pasar a binario solo debes dividir entre 2, el resultado son los restos ordenados al revés", "Si no estás conmigo eres mi enemigo", "Mírame a los ojos cuando te hablo", "¡Duro con ellos!", "Rambo está en la trinchera, tiene una herida de bala en la pierna", "Sosio aflójate un eurito ahí", "Mira no más, esta cara, este cuerpo. Tú jamás tendrás este cuerpo", "¡Mi pueblo se muere por falta de conocimiento!", "Y volé de él, y él voló allá por la arbolada", "Yo soy un pirata y tu mente es el mar y la psicología es mi barco", "Si recomiendas a la gente usar homeopatía, te sugiero amablemente que te vayas a hacer puñetas", "Si estás en un bosque y gritas y nadie te oye, ¿Por qué sigo suspendiendo Álgebra?", "Deja de xorfirar anda", "Para mí será un placer vencerte", "No me toques que yo no te he tocao", "A que no adivinas quién fue primero, ¿Mi huevo o yo?", "¡Ay vida mía, soy taaan desdichada!", "Ay quién tuviera la dicha que tiene el gallo" ]
|
||||
|
||||
[node name="Foreground" type="Sprite" parent="."]
|
||||
|
||||
z/z = -1
|
||||
z/z = 1
|
||||
texture = ExtResource( 2 )
|
||||
hframes = 2
|
||||
region_rect = Rect2( 0, 0, 78, 61 )
|
||||
|
|
@ -98,6 +98,7 @@ stream/buffering_ms = 500
|
|||
|
||||
frames = SubResource( 2 )
|
||||
animation = "Idle"
|
||||
frame = 3
|
||||
playing = true
|
||||
|
||||
[node name="Bars" type="Particles2D" parent="."]
|
||||
|
|
@ -170,6 +171,7 @@ color/color_ramp = SubResource( 3 )
|
|||
|
||||
[node name="Area2D" type="Area2D" parent="."]
|
||||
|
||||
editor/display_folded = true
|
||||
transform/pos = Vector2( 9.53674e-07, -0.999999 )
|
||||
transform/scale = Vector2( 1.34375, 1.09375 )
|
||||
input/pickable = true
|
||||
|
|
@ -200,7 +202,17 @@ stream/paused = false
|
|||
stream/loop_restart_time = 0.0
|
||||
stream/buffering_ms = 500
|
||||
|
||||
[node name="Text" parent="." instance=ExtResource( 24 )]
|
||||
[node name="Node2D" type="Node2D" parent="."]
|
||||
|
||||
transform/pos = Vector2( 1, -21 )
|
||||
transform/scale = Vector2( 0.58, 0.58 )
|
||||
|
||||
[node name="Text" parent="Node2D" instance=ExtResource( 24 )]
|
||||
|
||||
margin/left = -188.0
|
||||
margin/top = -47.0
|
||||
margin/right = 202.0
|
||||
margin/bottom = 40.0
|
||||
|
||||
[connection signal="body_enter" from="Area2D" to="." method="_on_Area2D_body_enter"]
|
||||
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ signal set_max_life
|
|||
const GRAVITY = 4000.0
|
||||
|
||||
const FLYING_MOVEMENT_SPEED = 1
|
||||
const SLIDE_LEVEL = 40
|
||||
const SLIDE_LEVEL = 80
|
||||
const WALK_SPEED_INCREMENT = 20
|
||||
|
||||
var walk_speed = 0
|
||||
|
|
|
|||
|
|
@ -8,12 +8,12 @@
|
|||
[ext_resource path="res://Scenes/Events/cowbell_collector.gd" type="Script" id=6]
|
||||
[ext_resource path="res://Sound/player_jump.ogg" type="AudioStream" id=7]
|
||||
|
||||
[sub_resource type="ConvexPolygonShape2D" id=4]
|
||||
[sub_resource type="ConvexPolygonShape2D" id=1]
|
||||
|
||||
custom_solver_bias = 0.0
|
||||
points = Vector2Array( -13.2061, 7.63341, -13.26, -8.08105, 11.3331, -8.08105, 11.4077, 7.42536, 1.19923, 13.0773, -3.50803, 13.0773 )
|
||||
|
||||
[sub_resource type="ConvexPolygonShape2D" id=5]
|
||||
[sub_resource type="ConvexPolygonShape2D" id=2]
|
||||
|
||||
custom_solver_bias = 0.0
|
||||
points = Vector2Array( -2.43698, 6.86286, -10.0513, 0.602652, -10.0513, -10.186, 9.7198, -10, 9.7198, 0.41664, 1.64128, 6.92704 )
|
||||
|
|
@ -42,10 +42,10 @@ tracks/0/keys = {
|
|||
transform/scale = Vector2( 1.8, 1.8 )
|
||||
z/relative = false
|
||||
input/pickable = true
|
||||
shapes/0/shape = SubResource( 4 )
|
||||
shapes/0/shape = SubResource( 1 )
|
||||
shapes/0/transform = Matrix32( 1.89755, 0, 0, 3.10364, 2.93931, -4.91934 )
|
||||
shapes/0/trigger = false
|
||||
shapes/1/shape = SubResource( 5 )
|
||||
shapes/1/shape = SubResource( 2 )
|
||||
shapes/1/transform = Matrix32( 2.35192, 0, 0, 2.68801, 1.63985, 16.8801 )
|
||||
shapes/1/trigger = true
|
||||
collision/layers = 1057
|
||||
|
|
@ -75,7 +75,6 @@ bullet_cost = 2
|
|||
|
||||
transform/pos = Vector2( -4.25251, 3.87422 )
|
||||
layer_mask = 30
|
||||
damage = 120
|
||||
|
||||
[node name="Collision_Normal" type="CollisionPolygon2D" parent="."]
|
||||
|
||||
|
|
@ -165,7 +164,7 @@ autostart = false
|
|||
stream/stream = ExtResource( 7 )
|
||||
stream/play = true
|
||||
stream/loop = false
|
||||
stream/volume_db = 10.0
|
||||
stream/volume_db = 7.0
|
||||
stream/autoplay = false
|
||||
stream/paused = false
|
||||
stream/loop_restart_time = 0.0
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
[gd_scene load_steps=14 format=1]
|
||||
[gd_scene load_steps=15 format=1]
|
||||
|
||||
[ext_resource path="res://Scenes/Maps/tileset.xml" type="TileSet" id=1]
|
||||
[ext_resource path="res://Sprites/Background/night_outside_d.png" type="Texture" id=2]
|
||||
|
|
@ -13,12 +13,93 @@
|
|||
[ext_resource path="res://Scenes/Events/UFO.tscn" type="PackedScene" id=11]
|
||||
[ext_resource path="res://Music/dangerous-hills-loop.ogg" type="AudioStream" id=12]
|
||||
[ext_resource path="res://Scenes/Events/jail.tscn" type="PackedScene" id=13]
|
||||
[ext_resource path="res://Scenes/Events/on_map_text_dialog.tscn" type="PackedScene" id=14]
|
||||
|
||||
[node name="Level" type="Node2D"]
|
||||
[node name="Level" type="Node2D" groups=[
|
||||
"level",
|
||||
]]
|
||||
|
||||
[node name="TileMap" type="TileMap" parent="."]
|
||||
[node name="leaves_foreground" type="TileMap" parent="."]
|
||||
|
||||
transform/scale = Vector2( 1.7, 1.7 )
|
||||
mode = 0
|
||||
tile_set = ExtResource( 1 )
|
||||
cell/size = Vector2( 64, 64 )
|
||||
cell/quadrant_size = 16
|
||||
cell/custom_transform = Matrix32( 1, 0, 0, 1, 0, 0 )
|
||||
cell/half_offset = 2
|
||||
cell/tile_origin = 0
|
||||
cell/y_sort = false
|
||||
collision/use_kinematic = false
|
||||
collision/friction = 1.0
|
||||
collision/bounce = 0.0
|
||||
collision/layers = 0
|
||||
collision/mask = 0
|
||||
occluder/light_mask = 1
|
||||
tile_data = IntArray( -1572833, 35, -1179621, 35 )
|
||||
|
||||
[node name="leaves_background" type="TileMap" parent="."]
|
||||
|
||||
transform/scale = Vector2( 1.7, 1.7 )
|
||||
z/z = -2
|
||||
mode = 0
|
||||
tile_set = ExtResource( 1 )
|
||||
cell/size = Vector2( 64, 64 )
|
||||
cell/quadrant_size = 16
|
||||
cell/custom_transform = Matrix32( 1, 0, 0, 1, 0, 0 )
|
||||
cell/half_offset = 2
|
||||
cell/tile_origin = 0
|
||||
cell/y_sort = false
|
||||
collision/use_kinematic = false
|
||||
collision/friction = 1.0
|
||||
collision/bounce = 0.0
|
||||
collision/layers = 0
|
||||
collision/mask = 0
|
||||
occluder/light_mask = 1
|
||||
tile_data = IntArray( )
|
||||
|
||||
[node name="one_way_platforms1" type="TileMap" parent="."]
|
||||
|
||||
transform/scale = Vector2( 1.7, 1.7 )
|
||||
z/z = -1
|
||||
mode = 0
|
||||
tile_set = ExtResource( 1 )
|
||||
cell/size = Vector2( 64, 64 )
|
||||
cell/quadrant_size = 16
|
||||
cell/custom_transform = Matrix32( 1, 0, 0, 1, 0, 0 )
|
||||
cell/half_offset = 2
|
||||
cell/tile_origin = 0
|
||||
cell/y_sort = false
|
||||
collision/use_kinematic = false
|
||||
collision/friction = 1.0
|
||||
collision/bounce = 0.0
|
||||
collision/layers = 2048
|
||||
collision/mask = 14
|
||||
occluder/light_mask = 1
|
||||
tile_data = IntArray( -851955, 35 )
|
||||
|
||||
[node name="trees" type="TileMap" parent="."]
|
||||
|
||||
transform/scale = Vector2( 1.7, 1.7 )
|
||||
z/z = -1
|
||||
mode = 0
|
||||
tile_set = ExtResource( 1 )
|
||||
cell/size = Vector2( 64, 64 )
|
||||
cell/quadrant_size = 16
|
||||
cell/custom_transform = Matrix32( 1, 0, 0, 1, 0, 0 )
|
||||
cell/half_offset = 2
|
||||
cell/tile_origin = 0
|
||||
cell/y_sort = false
|
||||
collision/use_kinematic = false
|
||||
collision/friction = 1.0
|
||||
collision/bounce = 0.0
|
||||
collision/layers = 2
|
||||
collision/mask = 15
|
||||
occluder/light_mask = 1
|
||||
tile_data = IntArray( )
|
||||
|
||||
[node name="base" type="TileMap" parent="."]
|
||||
|
||||
transform/pos = Vector2( 0, -1 )
|
||||
transform/scale = Vector2( 1.7, 1.7 )
|
||||
z/z = -2
|
||||
mode = 0
|
||||
|
|
@ -39,6 +120,7 @@ tile_data = IntArray( )
|
|||
|
||||
[node name="ParallaxBackground" type="ParallaxBackground" parent="."]
|
||||
|
||||
editor/display_folded = true
|
||||
layer = -1
|
||||
offset = Vector2( 0, 0 )
|
||||
rotation = 0.0
|
||||
|
|
@ -124,32 +206,28 @@ region_rect = Rect2( -1000, 0, 2048, 128 )
|
|||
|
||||
[node name="enemies" type="Node2D" parent="."]
|
||||
|
||||
editor/display_folded = true
|
||||
transform/pos = Vector2( 2140, -960 )
|
||||
transform/scale = Vector2( 1.7, 1.7 )
|
||||
|
||||
[node name="Enemy3" parent="enemies" instance=ExtResource( 6 )]
|
||||
[node name="Enemy" parent="enemies" instance=ExtResource( 6 )]
|
||||
|
||||
transform/pos = Vector2( -2240, -64 )
|
||||
transform/pos = Vector2( -35.2942, -176.471 )
|
||||
transform/scale = Vector2( 1, 1 )
|
||||
|
||||
[node name="apples" type="Node2D" parent="."]
|
||||
|
||||
editor/display_folded = true
|
||||
transform/pos = Vector2( -3140, -3460 )
|
||||
|
||||
[node name="Apple 2" parent="apples" instance=ExtResource( 7 )]
|
||||
[node name="Apple" parent="apples" instance=ExtResource( 7 )]
|
||||
|
||||
transform/pos = Vector2( -400, 370 )
|
||||
transform/pos = Vector2( 5140, 1240 )
|
||||
amount = 20
|
||||
|
||||
[node name="hearts" type="Node2D" parent="."]
|
||||
|
||||
editor/display_folded = true
|
||||
|
||||
[node name="Heart" parent="hearts" instance=ExtResource( 8 )]
|
||||
|
||||
transform/pos = Vector2( -3320, -3640 )
|
||||
transform/pos = Vector2( 1480, -1230 )
|
||||
|
||||
[node name="cowbells" type="Node2D" parent="."]
|
||||
|
||||
|
|
@ -158,12 +236,12 @@ transform/pos = Vector2( 500, 560 )
|
|||
|
||||
[node name="Cowbell" parent="cowbells" instance=ExtResource( 9 )]
|
||||
|
||||
transform/pos = Vector2( -16, -2301 )
|
||||
transform/pos = Vector2( 1510, -3640 )
|
||||
|
||||
[node name="Block" type="Node2D" parent="cowbells"]
|
||||
|
||||
editor/display_folded = true
|
||||
transform/pos = Vector2( -2550, -1250 )
|
||||
transform/pos = Vector2( 2350, -3400 )
|
||||
|
||||
[node name="Col" type="Node2D" parent="cowbells/Block"]
|
||||
|
||||
|
|
@ -442,12 +520,12 @@ transform/pos = Vector2( 0, 220 )
|
|||
[node name="death_line" parent="." instance=ExtResource( 10 )]
|
||||
|
||||
editor/display_folded = false
|
||||
transform/pos = Vector2( 24240, -320 )
|
||||
transform/pos = Vector2( 24550, -940 )
|
||||
transform/scale = Vector2( 6889, 1 )
|
||||
|
||||
[node name="UFO" parent="." instance=ExtResource( 11 )]
|
||||
|
||||
transform/pos = Vector2( -1250, -3350 )
|
||||
transform/pos = Vector2( -1250, -3330 )
|
||||
transform/scale = Vector2( 1.7, 1.7 )
|
||||
|
||||
[node name="StreamPlayer" type="StreamPlayer" parent="."]
|
||||
|
|
@ -463,11 +541,17 @@ stream/buffering_ms = 500
|
|||
|
||||
[node name="Cages" type="Node2D" parent="."]
|
||||
|
||||
editor/display_folded = true
|
||||
|
||||
[node name="jail" parent="Cages" instance=ExtResource( 13 )]
|
||||
|
||||
transform/pos = Vector2( -1410, -2210 )
|
||||
transform/pos = Vector2( -1860, -2650 )
|
||||
transform/scale = Vector2( 1.7, 1.7 )
|
||||
|
||||
[node name="Tips" type="Node2D" parent="."]
|
||||
|
||||
transform/pos = Vector2( -1890, -3020 )
|
||||
|
||||
[node name="Area2D" parent="Tips" instance=ExtResource( 14 )]
|
||||
|
||||
text = "Este camino está bloqueado. Busca otra forma de desplazarte."
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -15,7 +15,9 @@
|
|||
[ext_resource path="res://Scenes/Events/jail.tscn" type="PackedScene" id=13]
|
||||
[ext_resource path="res://Scenes/Events/on_map_text_dialog.tscn" type="PackedScene" id=14]
|
||||
|
||||
[node name="Level" type="Node2D"]
|
||||
[node name="Level" type="Node2D" groups=[
|
||||
"level",
|
||||
]]
|
||||
|
||||
[node name="leaves_foreground" type="TileMap" parent="."]
|
||||
|
||||
|
|
@ -119,7 +121,7 @@ collision/bounce = 0.0
|
|||
collision/layers = 2
|
||||
collision/mask = 15
|
||||
occluder/light_mask = 1
|
||||
tile_data = IntArray( -2359320, 13, -2359319, 13, -2359318, 13, -2359317, 13, -2359316, 13, -2359315, 13, -2359314, 13, -2359313, 13, -2359312, 13, -2293784, 32, -2228248, 31, -2162712, 31, -2162709, 13, -2162706, 18, -2097176, 31, -2097175, 13, -2097171, 32, -2097170, 0, -2097169, 1, -2097168, 1, -2097167, 2, -2162669, 14, -2162668, 15, -2031640, 31, -2031635, 31, -2031634, 17, -2031633, 7, -2031632, 7, -2031631, 16, -2097144, 0, -2097143, 15, -2097133, 3, -2097132, 16, -1966104, 31, -1966102, 13, -1966099, 31, -2031609, 34, -2031608, 3, -2031607, 12, -2031606, 15, -2031597, 3, -2031596, 15, -1900568, 31, -1900564, 13, -1900563, 31, -1966076, 13, -1966073, 31, -1966072, 3, -1966071, 4, -1966070, 12, -1966069, 15, -1966061, 17, -1966060, 16, -1966058, 14, -1966057, 15, -1966050, 14, -1966049, 15, -1835032, 30, -1835027, 31, -1835009, 13, -1900540, 13, -1900537, 34, -1900536, 3, -1900535, 4, -1900534, 4, -1900533, 12, -1900532, 15, -1900524, 14, -1900523, 15, -1900522, 3, -1900521, 16, -1900514, 17, -1900513, 16, -1769497, 14, -1769496, 2, -1769493, 13, -1769491, 30, -1769473, 13, -1835007, 18, -1835001, 30, -1835000, 6, -1834999, 7, -1834998, 7, -1834997, 7, -1834996, 16, -1834995, 13, -1834994, 13, -1834993, 13, -1834992, 13, -1834991, 13, -1834990, 13, -1834988, 17, -1834987, 5, -1834986, 3, -1834985, 15, -1834977, 14, -1834976, 15, -1703961, 17, -1703960, 12, -1703959, 15, -1703955, 0, -1703954, 1, -1703953, 1, -1703952, 1, -1703951, 1, -1703950, 1, -1703949, 1, -1703948, 1, -1703947, 1, -1703946, 1, -1703945, 1, -1703944, 1, -1703943, 1, -1703942, 1, -1703941, 1, -1703940, 1, -1703939, 1, -1703938, 1, -1703937, 1, -1769472, 1, -1769471, 1, -1769470, 1, -1769469, 1, -1769468, 1, -1769467, 1, -1769466, 1, -1769465, 1, -1769455, 14, -1769454, 15, -1769452, 14, -1769451, 5, -1769450, 17, -1769449, 16, -1769441, 17, -1769440, 5, -1638424, 17, -1638423, 12, -1638422, 15, -1638419, 6, -1638418, 7, -1638417, 7, -1638416, 7, -1638415, 7, -1638414, 7, -1638413, 7, -1638412, 7, -1638411, 7, -1638410, 7, -1638409, 7, -1638408, 7, -1638407, 7, -1638406, 7, -1638405, 7, -1638404, 7, -1638403, 7, -1638402, 7, -1638401, 7, -1703936, 7, -1703935, 7, -1703934, 7, -1703933, 7, -1703932, 7, -1703931, 7, -1703930, 7, -1703929, 7, -1703919, 3, -1703918, 16, -1703916, 17, -1703915, 16, -1703904, 5, -1572887, 17, -1572886, 12, -1572885, 15, -1638390, 14, -1638389, 15, -1638383, 3, -1638382, 15, -1638369, 14, -1638368, 5, -1507350, 17, -1507349, 12, -1507348, 1, -1507347, 1, -1507346, 1, -1507345, 1, -1507344, 1, -1507343, 1, -1507342, 2, -1572857, 0, -1572856, 1, -1572855, 1, -1572854, 9, -1572853, 12, -1572852, 15, -1572847, 17, -1572846, 16, -1572845, 13, -1572844, 13, -1572833, 3, -1572832, 16, -1441813, 17, -1441812, 7, -1441811, 7, -1441810, 7, -1441809, 7, -1441808, 7, -1441807, 7, -1441806, 8, -1507321, 6, -1507320, 7, -1507319, 7, -1507318, 7, -1507317, 7, -1507316, 12, -1507315, 15, -1507309, 0, -1507308, 2, -1507297, 3, -1507296, 15, -1376270, 14, -1376269, 1, -1376268, 1, -1376267, 1, -1376266, 1, -1376265, 1, -1376264, 1, -1376263, 1, -1376262, 1, -1376261, 1, -1376260, 1, -1376259, 1, -1376258, 1, -1376257, 1, -1441792, 1, -1441791, 1, -1441790, 1, -1441789, 1, -1441788, 1, -1441787, 1, -1441786, 1, -1441785, 15, -1441780, 17, -1441779, 16, -1441773, 3, -1441772, 5, -1441761, 17, -1441760, 16, -1310734, 17, -1310733, 7, -1310732, 7, -1310731, 7, -1310730, 7, -1310729, 7, -1310728, 7, -1310727, 7, -1310726, 7, -1310725, 7, -1310724, 7, -1310723, 7, -1310722, 7, -1310721, 7, -1376256, 7, -1376255, 7, -1376254, 7, -1376253, 7, -1376252, 7, -1376251, 7, -1376250, 7, -1376249, 16, -1376242, 14, -1376241, 1, -1376240, 15, -1376237, 3, -1376236, 12, -1376235, 2, -1376233, 0, -1376232, 1, -1376231, 1, -1376230, 1, -1376229, 1, -1376228, 1, -1376227, 1, -1376226, 1, -1376225, 15, -1310707, 14, -1310706, 9, -1310705, 11, -1310704, 16, -1310701, 6, -1310700, 7, -1310699, 8, -1310697, 6, -1310696, 7, -1310695, 7, -1310694, 7, -1310693, 7, -1310692, 7, -1310691, 7, -1310690, 7, -1310689, 16, -1245171, 6, -1245170, 7, -1245169, 16, -1179637, 31, -1114101, 31, -1048565, 31, -983029, 31, -983014, 14, -983013, 1, -983012, 1, -983011, 2, -917493, 31, -917479, 14, -917478, 9, -917477, 7, -917476, 7, -917475, 8, -851957, 31, -851944, 14, -851943, 9, -851942, 16, -786421, 30, -786415, 29, -786412, 29, -786409, 14, -786408, 9, -786407, 16, -720885, 0, -720884, 1, -720883, 1, -720882, 1, -720881, 1, -720880, 1, -720879, 1, -720878, 1, -720877, 1, -720876, 1, -720875, 1, -720874, 1, -720873, 9, -720872, 16, -655349, 6, -655348, 7, -655347, 7, -655346, 7, -655345, 7, -655344, 7, -655343, 7, -655342, 7, -655341, 7, -655340, 7, -655339, 7, -655338, 7, -655337, 16 )
|
||||
tile_data = IntArray( -2359320, 13, -2359319, 13, -2359318, 13, -2359317, 13, -2359316, 13, -2359315, 13, -2359314, 13, -2359313, 13, -2359312, 13, -2293784, 32, -2228248, 31, -2162712, 31, -2162709, 13, -2162706, 18, -2097176, 31, -2097175, 13, -2097171, 32, -2097170, 0, -2097169, 1, -2097168, 1, -2097167, 2, -2162685, 13, -2162669, 14, -2162668, 15, -2031640, 31, -2031635, 31, -2031634, 17, -2031633, 7, -2031632, 7, -2031631, 16, -2097149, 13, -2097144, 0, -2097143, 15, -2097133, 3, -2097132, 16, -1966104, 31, -1966102, 13, -1966099, 31, -2031613, 13, -2031609, 34, -2031608, 3, -2031607, 12, -2031606, 15, -2031597, 3, -2031596, 15, -1900568, 31, -1900564, 13, -1900563, 31, -1966076, 13, -1966073, 31, -1966072, 3, -1966071, 4, -1966070, 12, -1966069, 15, -1966061, 17, -1966060, 16, -1966058, 14, -1966057, 15, -1966050, 14, -1966049, 15, -1835032, 30, -1835027, 31, -1835009, 13, -1900540, 13, -1900537, 34, -1900536, 3, -1900535, 4, -1900534, 4, -1900533, 12, -1900532, 15, -1900524, 14, -1900523, 15, -1900522, 3, -1900521, 16, -1900514, 17, -1900513, 16, -1769497, 14, -1769496, 2, -1769493, 13, -1769491, 30, -1769473, 13, -1835007, 18, -1835001, 30, -1835000, 6, -1834999, 7, -1834998, 7, -1834997, 7, -1834996, 16, -1834995, 13, -1834994, 13, -1834993, 13, -1834992, 13, -1834991, 13, -1834990, 13, -1834988, 17, -1834987, 5, -1834986, 3, -1834985, 15, -1834977, 14, -1834976, 15, -1703961, 17, -1703960, 12, -1703959, 15, -1703955, 0, -1703954, 1, -1703953, 1, -1703952, 1, -1703951, 1, -1703950, 1, -1703949, 1, -1703948, 1, -1703947, 1, -1703946, 1, -1703945, 1, -1703944, 1, -1703943, 1, -1703942, 1, -1703941, 1, -1703940, 1, -1703939, 1, -1703938, 1, -1703937, 1, -1769472, 1, -1769471, 1, -1769470, 1, -1769469, 1, -1769468, 1, -1769467, 1, -1769466, 1, -1769465, 1, -1769455, 14, -1769454, 15, -1769452, 14, -1769451, 5, -1769450, 17, -1769449, 16, -1769441, 17, -1769440, 5, -1638424, 17, -1638423, 12, -1638422, 15, -1638419, 6, -1638418, 7, -1638417, 7, -1638416, 7, -1638415, 7, -1638414, 7, -1638413, 7, -1638412, 7, -1638411, 7, -1638410, 7, -1638409, 7, -1638408, 7, -1638407, 7, -1638406, 7, -1638405, 7, -1638404, 7, -1638403, 7, -1638402, 7, -1638401, 7, -1703936, 7, -1703935, 7, -1703934, 7, -1703933, 7, -1703932, 7, -1703931, 7, -1703930, 7, -1703929, 7, -1703919, 3, -1703918, 16, -1703916, 17, -1703915, 16, -1703904, 5, -1572887, 17, -1572886, 12, -1572885, 15, -1638390, 14, -1638389, 15, -1638383, 3, -1638382, 15, -1638369, 14, -1638368, 5, -1507350, 17, -1507349, 12, -1507348, 1, -1507347, 1, -1507346, 1, -1507345, 1, -1507344, 1, -1507343, 1, -1507342, 2, -1572857, 0, -1572856, 1, -1572855, 1, -1572854, 9, -1572853, 12, -1572852, 15, -1572847, 17, -1572846, 16, -1572845, 13, -1572844, 13, -1572833, 3, -1572832, 16, -1441813, 17, -1441812, 7, -1441811, 7, -1441810, 7, -1441809, 7, -1441808, 7, -1441807, 7, -1441806, 8, -1507321, 6, -1507320, 7, -1507319, 7, -1507318, 7, -1507317, 7, -1507316, 12, -1507315, 15, -1507309, 0, -1507308, 2, -1507297, 3, -1507296, 15, -1376270, 14, -1376269, 1, -1376268, 1, -1376267, 1, -1376266, 1, -1376265, 1, -1376264, 1, -1376263, 1, -1376262, 1, -1376261, 1, -1376260, 1, -1376259, 1, -1376258, 1, -1376257, 1, -1441792, 1, -1441791, 1, -1441790, 1, -1441789, 1, -1441788, 1, -1441787, 1, -1441786, 1, -1441785, 15, -1441780, 17, -1441779, 16, -1441773, 3, -1441772, 5, -1441761, 17, -1441760, 16, -1310734, 17, -1310733, 7, -1310732, 7, -1310731, 7, -1310730, 7, -1310729, 7, -1310728, 7, -1310727, 7, -1310726, 7, -1310725, 7, -1310724, 7, -1310723, 7, -1310722, 7, -1310721, 7, -1376256, 7, -1376255, 7, -1376254, 7, -1376253, 7, -1376252, 7, -1376251, 7, -1376250, 7, -1376249, 16, -1376242, 14, -1376241, 1, -1376240, 15, -1376237, 3, -1376236, 12, -1376235, 2, -1376233, 0, -1376232, 1, -1376231, 1, -1376230, 1, -1376229, 1, -1376228, 1, -1376227, 1, -1376226, 1, -1376225, 15, -1310707, 14, -1310706, 9, -1310705, 11, -1310704, 16, -1310701, 6, -1310700, 7, -1310699, 8, -1310697, 6, -1310696, 7, -1310695, 7, -1310694, 7, -1310693, 7, -1310692, 7, -1310691, 7, -1310690, 7, -1310689, 16, -1245171, 6, -1245170, 7, -1245169, 16, -1179637, 31, -1114101, 31, -1048565, 31, -983029, 31, -983014, 14, -983013, 1, -983012, 1, -983011, 2, -917493, 31, -917479, 14, -917478, 9, -917477, 7, -917476, 7, -917475, 8, -851957, 31, -851944, 14, -851943, 9, -851942, 16, -786421, 30, -786415, 29, -786412, 29, -786409, 14, -786408, 9, -786407, 16, -720885, 0, -720884, 1, -720883, 1, -720882, 1, -720881, 1, -720880, 1, -720879, 1, -720878, 1, -720877, 1, -720876, 1, -720875, 1, -720874, 1, -720873, 9, -720872, 16, -655349, 6, -655348, 7, -655347, 7, -655346, 7, -655345, 7, -655344, 7, -655343, 7, -655342, 7, -655341, 7, -655340, 7, -655339, 7, -655338, 7, -655337, 16 )
|
||||
|
||||
[node name="ParallaxBackground" type="ParallaxBackground" parent="."]
|
||||
|
||||
|
|
@ -1134,7 +1136,7 @@ transform/pos = Vector2( 0, 220 )
|
|||
[node name="death_line" parent="." instance=ExtResource( 10 )]
|
||||
|
||||
editor/display_folded = false
|
||||
transform/pos = Vector2( 24240, -320 )
|
||||
transform/pos = Vector2( 24550, -940 )
|
||||
transform/scale = Vector2( 6889, 1 )
|
||||
|
||||
[node name="UFO" parent="." instance=ExtResource( 11 )]
|
||||
|
|
@ -1155,11 +1157,9 @@ stream/buffering_ms = 500
|
|||
|
||||
[node name="Cages" type="Node2D" parent="."]
|
||||
|
||||
editor/display_folded = true
|
||||
|
||||
[node name="jail" parent="Cages" instance=ExtResource( 13 )]
|
||||
|
||||
transform/pos = Vector2( -1860, -2650 )
|
||||
transform/pos = Vector2( -1920, -2640 )
|
||||
transform/scale = Vector2( 1.7, 1.7 )
|
||||
|
||||
[node name="Tips" type="Node2D" parent="."]
|
||||
|
|
@ -1225,7 +1225,7 @@ text = "Esta vez era broma, pero no vuelvas a hacerlo!"
|
|||
[node name="Area2D11" parent="Tips" instance=ExtResource( 14 )]
|
||||
|
||||
transform/pos = Vector2( 4300, 1790 )
|
||||
text = "¡Cuidado! Eso que ves es un enemigo, para derrotarlo salta sobre su cabeza"
|
||||
text = "¡Cuidado! Eso que ves es un carnicero, para aniquilarlo salta sobre su cabeza"
|
||||
|
||||
[node name="Area2D12" parent="Tips" instance=ExtResource( 14 )]
|
||||
|
||||
|
|
@ -1247,7 +1247,7 @@ text = "Ataca con la tecla S o el botón de la ubre!"
|
|||
[node name="Area2D15" parent="Tips" instance=ExtResource( 14 )]
|
||||
|
||||
transform/pos = Vector2( 1380, 500 )
|
||||
text = "Menudo pasillo mas largo eh?"
|
||||
text = "Menudo pasillo más largo, ¿eh?"
|
||||
|
||||
[node name="Area2D16" parent="Tips" instance=ExtResource( 14 )]
|
||||
|
||||
|
|
@ -1259,4 +1259,9 @@ text = "Rompe la jaula acercándote a ella para liberar a los animales"
|
|||
transform/pos = Vector2( -340, -710 )
|
||||
text = "Vuelve a la nave y pulsa la tecla arriba para ser abducido"
|
||||
|
||||
[node name="Area2D18" parent="Tips" instance=ExtResource( 14 )]
|
||||
|
||||
transform/pos = Vector2( -340, -60 )
|
||||
text = "En este juego NO respetamos las leyes de la física. Puedes saltar y en el aire modificar tu dirección."
|
||||
|
||||
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -33,7 +33,7 @@ collision/bounce = 0.0
|
|||
collision/layers = 0
|
||||
collision/mask = 0
|
||||
occluder/light_mask = 1
|
||||
tile_data = IntArray( -2031646, 40, -2031645, 35, -1900577, 41, -1900576, 46, -1900574, 40, -1900573, 41, -1900572, 41, -1048609, 41, -1048608, 39, -1048607, 39, -1048606, 35, -1048598, 46, -917481, 40, -917480, 35 )
|
||||
tile_data = IntArray( -2031646, 40, -2031645, 35, -1900576, 46, -1900574, 40, -1900573, 41, -1900572, 41, -1048609, 41, -1048608, 39, -1048607, 39, -1048606, 35, -1048598, 46, -917481, 40, -917480, 35 )
|
||||
|
||||
[node name="tile_leaves_background" type="TileMap" parent="."]
|
||||
|
||||
|
|
@ -73,7 +73,7 @@ collision/bounce = 0.0
|
|||
collision/layers = 0
|
||||
collision/mask = 0
|
||||
occluder/light_mask = 1
|
||||
tile_data = IntArray( -2162663, 21, -2162662, 21, -2162661, 21, -2162660, 21, -2162659, 21, -2162658, 21, -2162657, 21, -2162656, 21, -2162655, 21, -2031638, 26, -1769503, 28, -1769501, 23, -1769500, 24, -1769495, 19, -1703969, 18, -1638433, 19, -1638405, 19, -1703909, 26, -1572882, 26, -1638369, 26, -1507361, 26, -1507291, 23, -1507290, 22, -1507289, 22, -1507288, 22, -1507287, 24, -1441784, 21, -1441770, 21, -1441769, 25, -1179643, -1073741802, -983062, 28, -1048527, 26, -917536, 28, -917535, 23, -917534, 22, -917533, 24, -917516, 26, -786410, 28, -786408, 28, -786406, 28, -786404, 28, -720888, 26, -720879, 26, -524305, 19, -524293, 28, -524292, 25, -524284, 23, -524283, 22, -524282, 22, -524281, 24, -524280, 19, -458737, 23, -458736, 22, -458735, 22, -458734, 22, -458733, 22, -458732, 24, -458726, 19, -458724, 28, -458722, 28, -393179, 23, -393178, 22, -393177, 22, -393176, 22, -393175, 24, -196631, 23, -196630, 22, -196629, 24 )
|
||||
tile_data = IntArray( -2162663, 21, -2162662, 21, -2162661, 21, -2162660, 21, -2162659, 21, -2162658, 21, -2162657, 21, -2162656, 21, -2162655, 21, -2031638, 26, -1769503, 28, -1769501, 23, -1769500, 24, -1769495, 19, -1703969, 18, -1638433, 19, -1638405, 19, -1703909, 26, -1572882, 26, -1638369, 26, -1507361, 26, -1507291, 23, -1507290, 22, -1507289, 22, -1507288, 22, -1507287, 24, -1441784, 21, -1441770, 21, -1441769, 25, -983062, 28, -1048527, 26, -917536, 28, -917535, 23, -917534, 22, -917533, 24, -917516, 26, -786410, 28, -786408, 28, -786406, 28, -786404, 28, -720888, 26, -720879, 26, -524305, 19, -524293, 28, -524292, 25, -524284, 23, -524283, 22, -524282, 22, -524281, 24, -524280, 19, -458737, 23, -458736, 22, -458735, 22, -458734, 22, -458733, 22, -458732, 24, -458726, 19, -458724, 28, -458722, 28, -393179, 23, -393178, 22, -393177, 22, -393176, 22, -393175, 24, -196631, 23, -196630, 22, -196629, 24 )
|
||||
|
||||
[node name="tile_one_way_platforms" type="TileMap" parent="."]
|
||||
|
||||
|
|
@ -114,7 +114,7 @@ collision/bounce = 0.0
|
|||
collision/layers = 2
|
||||
collision/mask = 15
|
||||
occluder/light_mask = 1
|
||||
tile_data = IntArray( -2097183, 32, -2031647, 38, -1966111, 31, -1900575, 38, -1835039, 31, -1179680, 32, -1114144, 31, -1048608, 38, -983072, 30 )
|
||||
tile_data = IntArray( -2359266, 31, -2097183, 32, -2031647, 38, -1966111, 31, -1900575, 38, -1835039, 31, -1179680, 32, -1114144, 31, -1048608, 38, -983072, 30 )
|
||||
|
||||
[node name="tile_base" type="TileMap" parent="." groups=[
|
||||
"map",
|
||||
|
|
@ -226,7 +226,6 @@ region_rect = Rect2( -1000, 0, 2048, 128 )
|
|||
|
||||
[node name="enemies" type="Node2D" parent="."]
|
||||
|
||||
editor/display_folded = true
|
||||
transform/pos = Vector2( 2140, -960 )
|
||||
transform/scale = Vector2( 1.7, 1.7 )
|
||||
|
||||
|
|
@ -282,7 +281,7 @@ transform/scale = Vector2( 1, 1 )
|
|||
|
||||
[node name="Enemy8" parent="enemies" instance=ExtResource( 6 )]
|
||||
|
||||
transform/pos = Vector2( -2400, -1472 )
|
||||
transform/pos = Vector2( -2505.88, -1535.29 )
|
||||
transform/scale = Vector2( 1, 1 )
|
||||
|
||||
[node name="Enemy9" parent="enemies" instance=ExtResource( 6 )]
|
||||
|
|
@ -520,10 +519,6 @@ transform/pos = Vector2( -3270, -2670 )
|
|||
|
||||
transform/pos = Vector2( -1418, -2238 )
|
||||
|
||||
[node name="Cowbell21" parent="cowbells" instance=ExtResource( 9 )]
|
||||
|
||||
transform/pos = Vector2( -1228, -2238 )
|
||||
|
||||
[node name="Cowbell22" parent="cowbells" instance=ExtResource( 9 )]
|
||||
|
||||
transform/pos = Vector2( -1028, -2238 )
|
||||
|
|
@ -994,7 +989,7 @@ transform/pos = Vector2( -1826, -3616 )
|
|||
|
||||
[node name="Cowbell131" parent="cowbells" instance=ExtResource( 9 )]
|
||||
|
||||
transform/pos = Vector2( -2040, -3810 )
|
||||
transform/pos = Vector2( -2038, -3808 )
|
||||
|
||||
[node name="Cowbell196" parent="cowbells" instance=ExtResource( 9 )]
|
||||
|
||||
|
|
@ -2032,12 +2027,12 @@ transform/pos = Vector2( 0, 220 )
|
|||
[node name="death_line" parent="." instance=ExtResource( 10 )]
|
||||
|
||||
editor/display_folded = false
|
||||
transform/pos = Vector2( 24190, -350 )
|
||||
transform/pos = Vector2( 24240, -320 )
|
||||
transform/scale = Vector2( 6889, 1 )
|
||||
|
||||
[node name="UFO" parent="." instance=ExtResource( 11 )]
|
||||
|
||||
transform/pos = Vector2( -4070, -1920 )
|
||||
transform/pos = Vector2( -1250, -3350 )
|
||||
transform/scale = Vector2( 1.7, 1.7 )
|
||||
|
||||
[node name="StreamPlayer" type="StreamPlayer" parent="."]
|
||||
|
|
@ -2053,6 +2048,8 @@ stream/buffering_ms = 500
|
|||
|
||||
[node name="Cages" type="Node2D" parent="."]
|
||||
|
||||
editor/display_folded = true
|
||||
|
||||
[node name="jail" parent="Cages" instance=ExtResource( 13 )]
|
||||
|
||||
transform/pos = Vector2( -1410, -2210 )
|
||||
|
|
@ -2093,6 +2090,11 @@ transform/scale = Vector2( 1.7, 1.7 )
|
|||
transform/pos = Vector2( 2270, -3300 )
|
||||
transform/scale = Vector2( 1.7, 1.7 )
|
||||
|
||||
[node name="jail10" parent="Cages" instance=ExtResource( 13 )]
|
||||
|
||||
transform/pos = Vector2( -720, -1660 )
|
||||
transform/scale = Vector2( 1.7, 1.7 )
|
||||
|
||||
[node name="jail8" parent="Cages" instance=ExtResource( 13 )]
|
||||
|
||||
transform/pos = Vector2( 650, -2100 )
|
||||
|
|
|
|||
|
|
@ -1,23 +1,26 @@
|
|||
[gd_scene load_steps=22 format=1]
|
||||
[gd_scene load_steps=26 format=1]
|
||||
|
||||
[ext_resource path="res://Scenes/Menu/level_selector.gd" type="Script" id=1]
|
||||
[ext_resource path="res://Scenes/Maps/map_0.tscn" type="PackedScene" id=2]
|
||||
[ext_resource path="res://Scenes/Maps/map_1.tscn" type="PackedScene" id=3]
|
||||
[ext_resource path="res://Scenes/Menu/life_hud.gd" type="Script" id=4]
|
||||
[ext_resource path="res://Scenes/Menu/buttons_hud.gd" type="Script" id=5]
|
||||
[ext_resource path="res://Sprites/GUI/Buttons/bttn_arrow.png" type="Texture" id=6]
|
||||
[ext_resource path="res://Sprites/GUI/Buttons/bttn_jump.png" type="Texture" id=7]
|
||||
[ext_resource path="res://Sprites/GUI/Buttons/bttn.png" type="Texture" id=8]
|
||||
[ext_resource path="res://Sprites/GUI/Buttons/btn_shoot.png" type="Texture" id=9]
|
||||
[ext_resource path="res://Scenes/Menu/milk_botte_hud.gd" type="Script" id=10]
|
||||
[ext_resource path="res://Sprites/GUI/HUD/milbar_outter_2.png" type="Texture" id=11]
|
||||
[ext_resource path="res://Sprites/GUI/HUD/milkbar_outter_3.png" type="Texture" id=12]
|
||||
[ext_resource path="res://Sprites/GUI/HUD/milkbar_outter_1.png" type="Texture" id=13]
|
||||
[ext_resource path="res://Scenes/Menu/cowbells_hud.gd" type="Script" id=14]
|
||||
[ext_resource path="res://Fonts/pixelated_title.fnt" type="BitmapFont" id=15]
|
||||
[ext_resource path="res://Sprites/Charasets/cowbell.png" type="Texture" id=16]
|
||||
[ext_resource path="res://Scenes/Events/cowbell_animation_one_shot.tres" type="Animation" id=17]
|
||||
[ext_resource path="res://Scenes/Events/cowbell_animations.tres" type="Animation" id=18]
|
||||
[ext_resource path="res://Scenes/Maps/map_2.tscn" type="PackedScene" id=4]
|
||||
[ext_resource path="res://Scenes/Menu/life_hud.gd" type="Script" id=5]
|
||||
[ext_resource path="res://Scenes/Menu/buttons_hud.gd" type="Script" id=6]
|
||||
[ext_resource path="res://Sprites/GUI/Buttons/bttn_arrow.png" type="Texture" id=7]
|
||||
[ext_resource path="res://Sprites/GUI/Buttons/bttn_jump.png" type="Texture" id=8]
|
||||
[ext_resource path="res://Sprites/GUI/Buttons/bttn.png" type="Texture" id=9]
|
||||
[ext_resource path="res://Sprites/GUI/Buttons/btn_shoot.png" type="Texture" id=10]
|
||||
[ext_resource path="res://Scenes/Menu/milk_botte_hud.gd" type="Script" id=11]
|
||||
[ext_resource path="res://Sprites/GUI/HUD/milbar_outter_2.png" type="Texture" id=12]
|
||||
[ext_resource path="res://Sprites/GUI/HUD/milkbar_outter_3.png" type="Texture" id=13]
|
||||
[ext_resource path="res://Sprites/GUI/HUD/milkbar_outter_1.png" type="Texture" id=14]
|
||||
[ext_resource path="res://Scenes/Menu/cowbells_hud.gd" type="Script" id=15]
|
||||
[ext_resource path="res://Fonts/pixelated_title.fnt" type="BitmapFont" id=16]
|
||||
[ext_resource path="res://Sprites/Charasets/cowbell.png" type="Texture" id=17]
|
||||
[ext_resource path="res://Scenes/Events/cowbell_animation_one_shot.tres" type="Animation" id=18]
|
||||
[ext_resource path="res://Scenes/Events/cowbell_animations.tres" type="Animation" id=19]
|
||||
[ext_resource path="res://Scenes/Menu/button_back.tscn" type="PackedScene" id=20]
|
||||
[ext_resource path="res://Scenes/Menu/in_game_menu.tscn" type="PackedScene" id=21]
|
||||
|
||||
[sub_resource type="Environment" id=1]
|
||||
|
||||
|
|
@ -71,6 +74,13 @@ environment = SubResource( 1 )
|
|||
|
||||
shader/shading_mode = 0
|
||||
|
||||
[sub_resource type="GDScript" id=4]
|
||||
|
||||
script/source = "extends Button
|
||||
|
||||
func _on_Back_pressed():
|
||||
get_parent().get_node(\"in_game_menu\").set_hidden(false)"
|
||||
|
||||
[node name="Global" type="Node2D" groups=[
|
||||
"control",
|
||||
]]
|
||||
|
|
@ -88,7 +98,7 @@ margin/top = 0.0
|
|||
margin/right = 1280.0
|
||||
margin/bottom = 768.0
|
||||
script/script = ExtResource( 1 )
|
||||
levels = [ ExtResource( 2 ), ExtResource( 3 ), null ]
|
||||
levels = [ ExtResource( 2 ), ExtResource( 3 ), ExtResource( 4 ) ]
|
||||
|
||||
[node name="Viewport" type="Viewport" parent="Control"]
|
||||
|
||||
|
|
@ -111,8 +121,8 @@ gui/disable_input = false
|
|||
"life_hud",
|
||||
]]
|
||||
|
||||
transform/pos = Vector2( 64, 64 )
|
||||
script/script = ExtResource( 4 )
|
||||
transform/pos = Vector2( 120, 58 )
|
||||
script/script = ExtResource( 5 )
|
||||
heart_inter_distance = 64
|
||||
initial_heart_pos = Vector2( 32, 0 )
|
||||
|
||||
|
|
@ -121,14 +131,14 @@ initial_heart_pos = Vector2( 32, 0 )
|
|||
]]
|
||||
|
||||
editor/display_folded = true
|
||||
script/script = ExtResource( 5 )
|
||||
script/script = ExtResource( 6 )
|
||||
|
||||
[node name="Bttn_U" type="TouchScreenButton" parent="Control/Buttons"]
|
||||
|
||||
visibility/opacity = 0.9
|
||||
transform/pos = Vector2( 160, 320 )
|
||||
transform/scale = Vector2( 0.474074, 0.481203 )
|
||||
normal = ExtResource( 6 )
|
||||
normal = ExtResource( 7 )
|
||||
pressed = null
|
||||
bitmask = null
|
||||
shape = null
|
||||
|
|
@ -143,7 +153,7 @@ visibility_mode = 0
|
|||
visibility/opacity = 0.8
|
||||
transform/pos = Vector2( 1088, 576 )
|
||||
transform/scale = Vector2( 0.474074, 0.481203 )
|
||||
normal = ExtResource( 7 )
|
||||
normal = ExtResource( 8 )
|
||||
pressed = null
|
||||
bitmask = null
|
||||
shape = null
|
||||
|
|
@ -158,7 +168,7 @@ visibility_mode = 0
|
|||
visibility/opacity = 0.8
|
||||
transform/pos = Vector2( 1088, 384 )
|
||||
transform/scale = Vector2( 0.474074, 0.481203 )
|
||||
normal = ExtResource( 8 )
|
||||
normal = ExtResource( 9 )
|
||||
pressed = null
|
||||
bitmask = null
|
||||
shape = null
|
||||
|
|
@ -173,7 +183,7 @@ visibility_mode = 0
|
|||
visibility/opacity = 0.9
|
||||
transform/pos = Vector2( 896, 576 )
|
||||
transform/scale = Vector2( 0.474074, 0.481203 )
|
||||
normal = ExtResource( 9 )
|
||||
normal = ExtResource( 10 )
|
||||
pressed = null
|
||||
bitmask = null
|
||||
shape = null
|
||||
|
|
@ -189,7 +199,7 @@ visibility/opacity = 0.9
|
|||
transform/pos = Vector2( 288, 704 )
|
||||
transform/rot = 180.0
|
||||
transform/scale = Vector2( 0.474074, 0.481203 )
|
||||
normal = ExtResource( 6 )
|
||||
normal = ExtResource( 7 )
|
||||
pressed = null
|
||||
bitmask = null
|
||||
shape = null
|
||||
|
|
@ -204,7 +214,7 @@ visibility_mode = 0
|
|||
visibility/opacity = 0.0
|
||||
transform/pos = Vector2( 288, 576 )
|
||||
transform/scale = Vector2( 0.474074, 0.481203 )
|
||||
normal = ExtResource( 6 )
|
||||
normal = ExtResource( 7 )
|
||||
pressed = null
|
||||
bitmask = null
|
||||
shape = null
|
||||
|
|
@ -219,7 +229,7 @@ visibility_mode = 0
|
|||
visibility/opacity = 0.0
|
||||
transform/pos = Vector2( 32, 576 )
|
||||
transform/scale = Vector2( 0.474074, 0.481203 )
|
||||
normal = ExtResource( 6 )
|
||||
normal = ExtResource( 7 )
|
||||
pressed = null
|
||||
bitmask = null
|
||||
shape = null
|
||||
|
|
@ -235,7 +245,7 @@ visibility/opacity = 0.9
|
|||
transform/pos = Vector2( 416, 448 )
|
||||
transform/rot = -90.0
|
||||
transform/scale = Vector2( 0.474074, 0.481203 )
|
||||
normal = ExtResource( 6 )
|
||||
normal = ExtResource( 7 )
|
||||
pressed = null
|
||||
bitmask = null
|
||||
shape = null
|
||||
|
|
@ -251,7 +261,7 @@ visibility/opacity = 0.9
|
|||
transform/pos = Vector2( 32, 576 )
|
||||
transform/rot = 90.0
|
||||
transform/scale = Vector2( 0.474074, 0.481203 )
|
||||
normal = ExtResource( 6 )
|
||||
normal = ExtResource( 7 )
|
||||
pressed = null
|
||||
bitmask = null
|
||||
shape = null
|
||||
|
|
@ -267,20 +277,21 @@ visibility_mode = 0
|
|||
|
||||
transform/pos = Vector2( 1205, 73 )
|
||||
transform/scale = Vector2( 2, 2 )
|
||||
script/script = ExtResource( 10 )
|
||||
script/script = ExtResource( 11 )
|
||||
each_bottle_value = 20.0
|
||||
bottle_inter_distance = 32
|
||||
initial_bottle_pos = Vector2( -10, -20 )
|
||||
sprite1 = ExtResource( 11 )
|
||||
sprite2 = ExtResource( 12 )
|
||||
sprite3 = ExtResource( 13 )
|
||||
sprite1 = ExtResource( 12 )
|
||||
sprite2 = ExtResource( 13 )
|
||||
sprite3 = ExtResource( 14 )
|
||||
|
||||
[node name="Cowbells" type="Node2D" parent="Control" groups=[
|
||||
"cowbell_hud",
|
||||
]]
|
||||
|
||||
editor/display_folded = true
|
||||
transform/pos = Vector2( 3, 21 )
|
||||
script/script = ExtResource( 14 )
|
||||
script/script = ExtResource( 15 )
|
||||
|
||||
[node name="Counter" type="RichTextLabel" parent="Control/Cowbells"]
|
||||
|
||||
|
|
@ -292,7 +303,7 @@ margin/left = 630.0
|
|||
margin/top = 30.0
|
||||
margin/right = 830.0
|
||||
margin/bottom = 81.0
|
||||
custom_fonts/normal_font = ExtResource( 15 )
|
||||
custom_fonts/normal_font = ExtResource( 16 )
|
||||
bbcode/enabled = true
|
||||
bbcode/bbcode = "0"
|
||||
visible_characters = -1
|
||||
|
|
@ -321,7 +332,7 @@ autostart = false
|
|||
material/material = SubResource( 3 )
|
||||
transform/pos = Vector2( 586, 45 )
|
||||
transform/scale = Vector2( 3, 3 )
|
||||
texture = ExtResource( 16 )
|
||||
texture = ExtResource( 17 )
|
||||
hframes = 3
|
||||
|
||||
[node name="Animation" type="AnimationPlayer" parent="Control/Cowbells/Sprite"]
|
||||
|
|
@ -329,13 +340,26 @@ hframes = 3
|
|||
playback/process_mode = 0
|
||||
playback/default_blend_time = 0.0
|
||||
root/root = NodePath("..")
|
||||
anims/cowbell_animation_one_shot = ExtResource( 17 )
|
||||
anims/cowbell_animations = ExtResource( 18 )
|
||||
anims/cowbell_animation_one_shot = ExtResource( 18 )
|
||||
anims/cowbell_animations = ExtResource( 19 )
|
||||
playback/active = false
|
||||
playback/speed = 2.0
|
||||
blend_times = [ ]
|
||||
autoplay = ""
|
||||
|
||||
[node name="Back" parent="Control" instance=ExtResource( 20 )]
|
||||
|
||||
margin/left = 36.0
|
||||
margin/top = 34.0
|
||||
margin/right = 97.0
|
||||
margin/bottom = 89.0
|
||||
text = "<"
|
||||
script/script = SubResource( 4 )
|
||||
|
||||
[node name="in_game_menu" parent="Control" instance=ExtResource( 21 )]
|
||||
|
||||
visibility/visible = false
|
||||
|
||||
[connection signal="pressed" from="Control/Buttons/Bttn_U" to="Control/Buttons" method="_on_Bttn_U_pressed"]
|
||||
|
||||
[connection signal="released" from="Control/Buttons/Bttn_U" to="Control/Buttons" method="_on_Bttn_U_released"]
|
||||
|
|
@ -376,4 +400,6 @@ autoplay = ""
|
|||
|
||||
[connection signal="timeout" from="Control/Cowbells/cold_down_timer" to="Control/Cowbells" method="_on_cold_down_timer_timeout"]
|
||||
|
||||
[connection signal="pressed" from="Control/Back" to="Control/Back" method="_on_Back_pressed"]
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,9 @@
|
|||
[gd_scene load_steps=2 format=1]
|
||||
[gd_scene load_steps=5 format=1]
|
||||
|
||||
[ext_resource path="res://Sprites/GUI/Buttons/bttn.png" type="Texture" id=1]
|
||||
[ext_resource path="res://Fonts/pixelated_regular.fnt" type="BitmapFont" id=1]
|
||||
[ext_resource path="res://Sprites/GUI/Buttons/bttn.png" type="Texture" id=2]
|
||||
[ext_resource path="res://Scenes/Menu/button_back.tscn" type="PackedScene" id=3]
|
||||
[ext_resource path="res://Scenes/Menu/main_menu.tscn" type="PackedScene" id=4]
|
||||
|
||||
[node name="Control" type="Control"]
|
||||
|
||||
|
|
@ -13,100 +16,155 @@ margin/top = 0.0
|
|||
margin/right = 40.0
|
||||
margin/bottom = 40.0
|
||||
|
||||
[node name="Panel" type="Panel" parent="."]
|
||||
[node name="Yanara Panel" type="Panel" parent="."]
|
||||
|
||||
anchor/bottom = 1
|
||||
focus/ignore_mouse = false
|
||||
focus/stop_mouse = true
|
||||
size_flags/horizontal = 2
|
||||
size_flags/vertical = 2
|
||||
margin/left = 64.0
|
||||
margin/left = 702.0
|
||||
margin/top = 96.0
|
||||
margin/right = 576.0
|
||||
margin/bottom = -632.0
|
||||
margin/right = 1214.0
|
||||
margin/bottom = -387.0
|
||||
|
||||
[node name="Sprite" type="Sprite" parent="Panel"]
|
||||
|
||||
transform/pos = Vector2( 259.5, 5 )
|
||||
transform/scale = Vector2( 0.737037, 0.740601 )
|
||||
texture = ExtResource( 1 )
|
||||
|
||||
[node name="RichTextLabel" type="RichTextLabel" parent="Panel"]
|
||||
[node name="RichTextLabel1" type="RichTextLabel" parent="Yanara Panel"]
|
||||
|
||||
focus/ignore_mouse = false
|
||||
focus/stop_mouse = true
|
||||
size_flags/horizontal = 2
|
||||
size_flags/vertical = 2
|
||||
margin/left = 64.0
|
||||
margin/left = 37.0
|
||||
margin/top = 160.0
|
||||
margin/right = 448.0
|
||||
margin/bottom = 544.0
|
||||
margin/right = 480.0
|
||||
margin/bottom = 307.0
|
||||
custom_fonts/normal_font = ExtResource( 1 )
|
||||
bbcode/enabled = true
|
||||
bbcode/bbcode = "Soy un ñame y un budán "
|
||||
visible_characters = -1
|
||||
bbcode/bbcode = "needafreefall-@hotmail.com
|
||||
twitter.com/yanaronna
|
||||
instagram.com/yanaronna
|
||||
|
||||
[node name="Label" type="Label" parent="Panel"]
|
||||
- Sprites
|
||||
- Animations
|
||||
- Character design"
|
||||
visible_characters = -1
|
||||
percent_visible = 1.0
|
||||
|
||||
[node name="Label1" type="Label" parent="Yanara Panel"]
|
||||
|
||||
focus/ignore_mouse = true
|
||||
focus/stop_mouse = true
|
||||
size_flags/horizontal = 2
|
||||
size_flags/vertical = 0
|
||||
margin/left = 64.0
|
||||
margin/left = 66.0
|
||||
margin/top = 128.0
|
||||
margin/right = 448.0
|
||||
margin/right = 450.0
|
||||
margin/bottom = 160.0
|
||||
text = "Daniel Darias Sánchez"
|
||||
custom_fonts/font = ExtResource( 1 )
|
||||
text = "Yanara Aristiguieta"
|
||||
align = 1
|
||||
percent_visible = 1.0
|
||||
lines_skipped = 0
|
||||
max_lines_visible = -1
|
||||
|
||||
[node name="Panel1" type="Panel" parent="."]
|
||||
[node name="Sprite1" type="Sprite" parent="Yanara Panel"]
|
||||
|
||||
transform/pos = Vector2( 258, 2.5 )
|
||||
transform/scale = Vector2( 0.737037, 0.740601 )
|
||||
texture = ExtResource( 2 )
|
||||
|
||||
[node name="Daniel Panel" type="Panel" parent="."]
|
||||
|
||||
anchor/bottom = 1
|
||||
focus/ignore_mouse = false
|
||||
focus/stop_mouse = true
|
||||
size_flags/horizontal = 2
|
||||
size_flags/vertical = 2
|
||||
margin/left = 704.0
|
||||
margin/left = 74.0
|
||||
margin/top = 96.0
|
||||
margin/right = 1216.0
|
||||
margin/bottom = -632.0
|
||||
margin/right = 586.0
|
||||
margin/bottom = -387.0
|
||||
|
||||
[node name="RichTextLabel1" type="RichTextLabel" parent="Panel1"]
|
||||
[node name="RichTextLabel1" type="RichTextLabel" parent="Daniel Panel"]
|
||||
|
||||
focus/ignore_mouse = false
|
||||
focus/stop_mouse = true
|
||||
size_flags/horizontal = 2
|
||||
size_flags/vertical = 2
|
||||
margin/left = 64.0
|
||||
margin/left = 33.0
|
||||
margin/top = 160.0
|
||||
margin/right = 448.0
|
||||
margin/bottom = 544.0
|
||||
margin/right = 481.0
|
||||
margin/bottom = 307.0
|
||||
custom_fonts/normal_font = ExtResource( 1 )
|
||||
bbcode/enabled = true
|
||||
bbcode/bbcode = "asdasd asda sd asd "
|
||||
visible_characters = -1
|
||||
bbcode/bbcode = "dariasteam94@gmail.com
|
||||
mastodon.social/@dariasteam
|
||||
|
||||
[node name="Label1" type="Label" parent="Panel1"]
|
||||
- Code
|
||||
- Sprites
|
||||
- Music
|
||||
- Animations"
|
||||
visible_characters = -1
|
||||
percent_visible = 1.0
|
||||
|
||||
[node name="Label1" type="Label" parent="Daniel Panel"]
|
||||
|
||||
focus/ignore_mouse = true
|
||||
focus/stop_mouse = true
|
||||
size_flags/horizontal = 2
|
||||
size_flags/vertical = 0
|
||||
margin/left = 64.0
|
||||
margin/left = 66.0
|
||||
margin/top = 128.0
|
||||
margin/right = 448.0
|
||||
margin/right = 450.0
|
||||
margin/bottom = 160.0
|
||||
text = "Yanara Carrasco Aristiguieta"
|
||||
custom_fonts/font = ExtResource( 1 )
|
||||
text = "Daniel Darias"
|
||||
align = 1
|
||||
percent_visible = 1.0
|
||||
lines_skipped = 0
|
||||
max_lines_visible = -1
|
||||
|
||||
[node name="Sprite1" type="Sprite" parent="Panel1"]
|
||||
[node name="Sprite1" type="Sprite" parent="Daniel Panel"]
|
||||
|
||||
transform/pos = Vector2( 256, 2.5 )
|
||||
transform/pos = Vector2( 258, 2.5 )
|
||||
transform/scale = Vector2( 0.737037, 0.740601 )
|
||||
texture = ExtResource( 1 )
|
||||
texture = ExtResource( 2 )
|
||||
|
||||
[node name="Button" parent="." instance=ExtResource( 3 )]
|
||||
|
||||
scene = ExtResource( 4 )
|
||||
|
||||
[node name="Panel 2" type="Panel" parent="."]
|
||||
|
||||
focus/ignore_mouse = false
|
||||
focus/stop_mouse = true
|
||||
size_flags/horizontal = 2
|
||||
size_flags/vertical = 2
|
||||
margin/left = 74.0
|
||||
margin/top = 438.0
|
||||
margin/right = 1215.0
|
||||
margin/bottom = 634.0
|
||||
|
||||
[node name="RichTextLabel2" type="RichTextLabel" parent="Panel 2"]
|
||||
|
||||
focus/ignore_mouse = false
|
||||
focus/stop_mouse = true
|
||||
size_flags/horizontal = 2
|
||||
size_flags/vertical = 2
|
||||
margin/left = 18.0
|
||||
margin/top = 13.0
|
||||
margin/right = 1135.0
|
||||
margin/bottom = 189.0
|
||||
custom_fonts/normal_font = ExtResource( 1 )
|
||||
bbcode/enabled = true
|
||||
bbcode/bbcode = "This game's code is licensed under General Public License version 3.
|
||||
All the graphics, sounds and music resources were made by us and are published under Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International. Font is Press Start 2P by CodeMan38 (Open Font License)
|
||||
|
||||
You can get the source code and assets at gitlab.com/dariasteam/cows-revenge
|
||||
|
||||
Made with Godot Engine 2.1.5 (MIT)
|
||||
"
|
||||
visible_characters = -1
|
||||
percent_visible = 1.0
|
||||
|
||||
|
||||
|
|
|
|||
7
Scenes/Menu/back_about_page.gd
Normal file
7
Scenes/Menu/back_about_page.gd
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
extends Button
|
||||
|
||||
export(PackedScene) var scene
|
||||
|
||||
func _on_Button_pressed():
|
||||
#get_tree().change_scene_to(scene)
|
||||
get_parent().get_node("in_game_menu").set_visible(true)
|
||||
9
Scenes/Menu/back_button.gd
Normal file
9
Scenes/Menu/back_button.gd
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
extends Button
|
||||
|
||||
export(PackedScene) var scene
|
||||
|
||||
func _ready():
|
||||
connect("pressed", self, "_on_Button_pressed")
|
||||
|
||||
func _on_Button_pressed():
|
||||
get_tree().change_scene_to(scene)
|
||||
|
|
@ -1,5 +1,4 @@
|
|||
extends Button
|
||||
|
||||
func _on_Button_pressed():
|
||||
global.level = "res://Scenes/Menu/HUD.tscn"
|
||||
get_tree().change_scene("res://Scenes/Menu/HUD.tscn")
|
||||
func _on_Button_pressed():
|
||||
get_tree().change_scene("res://Scenes/Menu/level_selector.tscn")
|
||||
|
|
|
|||
27
Scenes/Menu/button_back.tscn
Normal file
27
Scenes/Menu/button_back.tscn
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
[gd_scene load_steps=3 format=1]
|
||||
|
||||
[ext_resource path="res://Fonts/pixelated_title.fnt" type="BitmapFont" id=1]
|
||||
[ext_resource path="res://Scenes/Menu/back_button.gd" type="Script" id=2]
|
||||
|
||||
|
||||
[node name="Button" type="Button"]
|
||||
|
||||
focus/ignore_mouse = false
|
||||
focus/stop_mouse = true
|
||||
size_flags/horizontal = 2
|
||||
size_flags/vertical = 2
|
||||
margin/left = 524.0
|
||||
margin/top = 648.0
|
||||
margin/right = 742.0
|
||||
margin/bottom = 696.0
|
||||
custom_fonts/font = ExtResource( 1 )
|
||||
toggle_mode = false
|
||||
enabled_focus_mode = 2
|
||||
shortcut = null
|
||||
text = "Volver"
|
||||
flat = false
|
||||
script/script = ExtResource( 2 )
|
||||
|
||||
[connection signal="pressed" from="." to="." method="_on_Button_pressed"]
|
||||
|
||||
|
||||
|
|
@ -11,8 +11,7 @@ func _ready():
|
|||
|
||||
func _on_reset_pressed():
|
||||
global.release_all()
|
||||
get_tree().change_scene(global.level)
|
||||
|
||||
get_tree().change_scene("res://Scenes/Menu/HUD.tscn")
|
||||
|
||||
func _on_main_menu_pressed():
|
||||
get_tree().change_scene("res://Scenes/Menu/main_menu.tscn")
|
||||
|
|
|
|||
|
|
@ -1,8 +1,7 @@
|
|||
[gd_scene load_steps=4 format=1]
|
||||
[gd_scene load_steps=3 format=1]
|
||||
|
||||
[ext_resource path="res://Scenes/Menu/game_over.gd" type="Script" id=1]
|
||||
[ext_resource path="res://Fonts/Cave-Story-Titles.fnt" type="BitmapFont" id=2]
|
||||
[ext_resource path="res://Fonts/Cave-Story-Regular.fnt" type="BitmapFont" id=3]
|
||||
[ext_resource path="res://Fonts/pixelated_title.fnt" type="BitmapFont" id=2]
|
||||
|
||||
[node name="Node2D" type="Node2D"]
|
||||
|
||||
|
|
@ -39,7 +38,7 @@ custom_fonts/font = ExtResource( 2 )
|
|||
toggle_mode = false
|
||||
enabled_focus_mode = 2
|
||||
shortcut = null
|
||||
text = "Ir al menu principal"
|
||||
text = "Ir al menú principal"
|
||||
flat = false
|
||||
|
||||
[node name="Label" type="Label" parent="."]
|
||||
|
|
@ -49,11 +48,11 @@ focus/ignore_mouse = true
|
|||
focus/stop_mouse = true
|
||||
size_flags/horizontal = 2
|
||||
size_flags/vertical = 0
|
||||
margin/left = 424.0
|
||||
margin/left = 231.0
|
||||
margin/top = -60.0
|
||||
margin/right = 669.0
|
||||
margin/right = 540.0
|
||||
margin/bottom = 68.0
|
||||
custom_fonts/font = ExtResource( 3 )
|
||||
custom_fonts/font = ExtResource( 2 )
|
||||
text = "Game over"
|
||||
valign = 1
|
||||
autowrap = true
|
||||
|
|
|
|||
|
|
@ -2,10 +2,35 @@ extends Node
|
|||
|
||||
const MENU_MUSIC = preload ("res://Music/dangerous_hills.ogg")
|
||||
|
||||
var level
|
||||
var level = 0
|
||||
var unlocked_levels = 1
|
||||
|
||||
func release_all():
|
||||
pass
|
||||
|
||||
func _ready():
|
||||
pass
|
||||
load_game()
|
||||
|
||||
func save_game():
|
||||
print ("saving")
|
||||
var save_game = File.new()
|
||||
save_game.open("user://savegame.save", File.WRITE)
|
||||
var data = {
|
||||
unlocked_levels=unlocked_levels
|
||||
}
|
||||
save_game.store_line(data.to_json())
|
||||
save_game.close()
|
||||
|
||||
func load_game():
|
||||
var save_game = File.new()
|
||||
if not save_game.file_exists("user://savegame.save"):
|
||||
return # Error! We don't have a save to load.
|
||||
save_game.open("user://savegame.save", File.READ)
|
||||
|
||||
print ("Load save")
|
||||
var current_line = {}
|
||||
current_line.parse_json(save_game.get_line())
|
||||
|
||||
unlocked_levels = current_line["unlocked_levels"] # unlocked_levels
|
||||
print (unlocked_levels)
|
||||
|
||||
101
Scenes/Menu/in_game_menu.tscn
Normal file
101
Scenes/Menu/in_game_menu.tscn
Normal file
|
|
@ -0,0 +1,101 @@
|
|||
[gd_scene load_steps=6 format=1]
|
||||
|
||||
[ext_resource path="res://Fonts/pixelated_title.fnt" type="BitmapFont" id=1]
|
||||
[ext_resource path="res://Scenes/Menu/resume_game.gd" type="Script" id=2]
|
||||
[ext_resource path="res://Scenes/Menu/back_button.gd" type="Script" id=3]
|
||||
[ext_resource path="res://Scenes/Menu/main_menu.tscn" type="PackedScene" id=4]
|
||||
|
||||
[sub_resource type="GDScript" id=1]
|
||||
|
||||
script/source = "extends Button
|
||||
|
||||
func _on_Reset_pressed():
|
||||
get_tree().get_nodes_in_group(\"level_selector\")[0].reset_level()
|
||||
get_parent().set_hidden(true)
|
||||
"
|
||||
|
||||
[node name="in_game_menu" type="Control"]
|
||||
|
||||
focus/ignore_mouse = false
|
||||
focus/stop_mouse = true
|
||||
size_flags/horizontal = 2
|
||||
size_flags/vertical = 2
|
||||
margin/left = 0.0
|
||||
margin/top = 0.0
|
||||
margin/right = 1280.0
|
||||
margin/bottom = 720.0
|
||||
|
||||
[node name="Panel" type="Panel" parent="."]
|
||||
|
||||
visibility/opacity = 0.5
|
||||
focus/ignore_mouse = false
|
||||
focus/stop_mouse = true
|
||||
size_flags/horizontal = 2
|
||||
size_flags/vertical = 2
|
||||
margin/left = 0.0
|
||||
margin/top = 0.0
|
||||
margin/right = 1279.0
|
||||
margin/bottom = 721.0
|
||||
|
||||
[node name="Resume" type="Button" parent="."]
|
||||
|
||||
focus/ignore_mouse = false
|
||||
focus/stop_mouse = true
|
||||
size_flags/horizontal = 2
|
||||
size_flags/vertical = 2
|
||||
margin/left = 452.0
|
||||
margin/top = 243.0
|
||||
margin/right = 847.0
|
||||
margin/bottom = 327.0
|
||||
custom_fonts/font = ExtResource( 1 )
|
||||
toggle_mode = false
|
||||
enabled_focus_mode = 2
|
||||
shortcut = null
|
||||
text = "Reanudar"
|
||||
flat = false
|
||||
script/script = ExtResource( 2 )
|
||||
|
||||
[node name="Reset" type="Button" parent="."]
|
||||
|
||||
focus/ignore_mouse = false
|
||||
focus/stop_mouse = true
|
||||
size_flags/horizontal = 2
|
||||
size_flags/vertical = 2
|
||||
margin/left = 452.0
|
||||
margin/top = 338.0
|
||||
margin/right = 847.0
|
||||
margin/bottom = 422.0
|
||||
custom_fonts/font = ExtResource( 1 )
|
||||
toggle_mode = false
|
||||
enabled_focus_mode = 2
|
||||
shortcut = null
|
||||
text = "Reiniciar"
|
||||
flat = false
|
||||
script/script = SubResource( 1 )
|
||||
|
||||
[node name="Exit" type="Button" parent="."]
|
||||
|
||||
focus/ignore_mouse = false
|
||||
focus/stop_mouse = true
|
||||
size_flags/horizontal = 2
|
||||
size_flags/vertical = 2
|
||||
margin/left = 452.0
|
||||
margin/top = 437.0
|
||||
margin/right = 847.0
|
||||
margin/bottom = 521.0
|
||||
custom_fonts/font = ExtResource( 1 )
|
||||
toggle_mode = false
|
||||
enabled_focus_mode = 2
|
||||
shortcut = null
|
||||
text = "Salir"
|
||||
flat = false
|
||||
script/script = ExtResource( 3 )
|
||||
scene = ExtResource( 4 )
|
||||
|
||||
[connection signal="pressed" from="Resume" to="Resume" method="_on_Resume_pressed"]
|
||||
|
||||
[connection signal="pressed" from="Reset" to="Reset" method="_on_Reset_pressed"]
|
||||
|
||||
[connection signal="pressed" from="Exit" to="Exit" method="_on_Exit_pressed"]
|
||||
|
||||
|
||||
|
|
@ -6,18 +6,25 @@ onready var milk = get_node("Milk_Bar")
|
|||
onready var cowbells = get_node("Cowbells")
|
||||
|
||||
export(Array) var levels
|
||||
var level_index = 1
|
||||
|
||||
func _ready():
|
||||
viewport.add_child(levels[0].instance())
|
||||
func _ready():
|
||||
global.save_game()
|
||||
viewport.add_child(levels[global.level].instance())
|
||||
|
||||
func next_level():
|
||||
if (level_index < levels.size()):
|
||||
viewport.get_child(0).free()
|
||||
func next_level():
|
||||
if (global.level < levels.size()):
|
||||
global.level += 1
|
||||
global.unlocked_levels += 1
|
||||
global.save_game()
|
||||
viewport.get_child(0).queue_free()
|
||||
reset_hud()
|
||||
viewport.add_child(levels[level_index].instance())
|
||||
level_index += 1
|
||||
|
||||
viewport.add_child(levels[global.level].instance())
|
||||
|
||||
func reset_level():
|
||||
viewport.get_child(0).queue_free()
|
||||
reset_hud()
|
||||
viewport.add_child(levels[global.level].instance())
|
||||
|
||||
func reset_hud():
|
||||
life.reset_values()
|
||||
milk.reset_values()
|
||||
|
|
|
|||
168
Scenes/Menu/level_selector.tscn
Normal file
168
Scenes/Menu/level_selector.tscn
Normal file
|
|
@ -0,0 +1,168 @@
|
|||
[gd_scene load_steps=6 format=1]
|
||||
|
||||
[ext_resource path="res://Scenes/Menu/level_unlock.gd" type="Script" id=1]
|
||||
[ext_resource path="res://Fonts/pixelated_title.fnt" type="BitmapFont" id=2]
|
||||
[ext_resource path="res://Scenes/Menu/select_level.gd" type="Script" id=3]
|
||||
[ext_resource path="res://Scenes/Menu/button_back.tscn" type="PackedScene" id=4]
|
||||
[ext_resource path="res://Scenes/Menu/main_menu.tscn" type="PackedScene" id=5]
|
||||
|
||||
[node name="Node2D" type="Node2D"]
|
||||
|
||||
script/script = ExtResource( 1 )
|
||||
|
||||
[node name="ScrollContainer" type="ScrollContainer" parent="."]
|
||||
|
||||
focus/ignore_mouse = false
|
||||
focus/stop_mouse = true
|
||||
size_flags/horizontal = 2
|
||||
size_flags/vertical = 2
|
||||
margin/left = 197.0
|
||||
margin/top = 203.0
|
||||
margin/right = 1094.0
|
||||
margin/bottom = 625.0
|
||||
scroll/horizontal = false
|
||||
scroll/vertical = true
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="ScrollContainer"]
|
||||
|
||||
visibility/behind_parent = true
|
||||
focus/ignore_mouse = false
|
||||
focus/stop_mouse = false
|
||||
size_flags/horizontal = 3
|
||||
size_flags/vertical = 3
|
||||
margin/left = 0.0
|
||||
margin/top = 0.0
|
||||
margin/right = 885.0
|
||||
margin/bottom = 500.0
|
||||
custom_constants/separation = 25
|
||||
alignment = 0
|
||||
|
||||
[node name="Button1" type="Button" parent="ScrollContainer/VBoxContainer"]
|
||||
|
||||
rect/min_size = Vector2( 50, 80 )
|
||||
focus/ignore_mouse = false
|
||||
focus/stop_mouse = true
|
||||
size_flags/horizontal = 3
|
||||
size_flags/vertical = 2
|
||||
margin/left = 0.0
|
||||
margin/top = 0.0
|
||||
margin/right = 885.0
|
||||
margin/bottom = 80.0
|
||||
custom_fonts/font = ExtResource( 2 )
|
||||
disabled = true
|
||||
toggle_mode = false
|
||||
enabled_focus_mode = 2
|
||||
shortcut = null
|
||||
text = "La escuela"
|
||||
flat = false
|
||||
script/script = ExtResource( 3 )
|
||||
id = 0
|
||||
|
||||
[node name="Button2" type="Button" parent="ScrollContainer/VBoxContainer"]
|
||||
|
||||
rect/min_size = Vector2( 50, 80 )
|
||||
focus/ignore_mouse = false
|
||||
focus/stop_mouse = true
|
||||
size_flags/horizontal = 3
|
||||
size_flags/vertical = 2
|
||||
margin/left = 0.0
|
||||
margin/top = 105.0
|
||||
margin/right = 885.0
|
||||
margin/bottom = 185.0
|
||||
custom_fonts/font = ExtResource( 2 )
|
||||
disabled = true
|
||||
toggle_mode = false
|
||||
enabled_focus_mode = 2
|
||||
shortcut = null
|
||||
text = "Gatear antes de caminar"
|
||||
flat = false
|
||||
script/script = ExtResource( 3 )
|
||||
id = 1
|
||||
|
||||
[node name="Button3" type="Button" parent="ScrollContainer/VBoxContainer"]
|
||||
|
||||
rect/min_size = Vector2( 50, 80 )
|
||||
focus/ignore_mouse = false
|
||||
focus/stop_mouse = true
|
||||
size_flags/horizontal = 3
|
||||
size_flags/vertical = 2
|
||||
margin/left = 0.0
|
||||
margin/top = 210.0
|
||||
margin/right = 885.0
|
||||
margin/bottom = 290.0
|
||||
custom_fonts/font = ExtResource( 2 )
|
||||
disabled = true
|
||||
toggle_mode = false
|
||||
enabled_focus_mode = 2
|
||||
shortcut = null
|
||||
text = "Independizándose"
|
||||
flat = false
|
||||
script/script = ExtResource( 3 )
|
||||
id = 2
|
||||
|
||||
[node name="Button4" type="Button" parent="ScrollContainer/VBoxContainer"]
|
||||
|
||||
rect/min_size = Vector2( 50, 80 )
|
||||
focus/ignore_mouse = false
|
||||
focus/stop_mouse = true
|
||||
size_flags/horizontal = 3
|
||||
size_flags/vertical = 2
|
||||
margin/left = 0.0
|
||||
margin/top = 315.0
|
||||
margin/right = 885.0
|
||||
margin/bottom = 395.0
|
||||
custom_fonts/font = ExtResource( 2 )
|
||||
disabled = true
|
||||
toggle_mode = false
|
||||
enabled_focus_mode = 2
|
||||
shortcut = null
|
||||
text = "Una ubre y sus consecuencias"
|
||||
flat = false
|
||||
script/script = ExtResource( 3 )
|
||||
id = 2
|
||||
|
||||
[node name="Button5" type="Button" parent="ScrollContainer/VBoxContainer"]
|
||||
|
||||
rect/min_size = Vector2( 50, 80 )
|
||||
focus/ignore_mouse = false
|
||||
focus/stop_mouse = true
|
||||
size_flags/horizontal = 3
|
||||
size_flags/vertical = 2
|
||||
margin/left = 0.0
|
||||
margin/top = 420.0
|
||||
margin/right = 885.0
|
||||
margin/bottom = 500.0
|
||||
custom_fonts/font = ExtResource( 2 )
|
||||
disabled = true
|
||||
toggle_mode = false
|
||||
enabled_focus_mode = 2
|
||||
shortcut = null
|
||||
text = "Siempre fiel"
|
||||
flat = false
|
||||
script/script = ExtResource( 3 )
|
||||
id = 2
|
||||
|
||||
[node name="Label" type="Label" parent="."]
|
||||
|
||||
rect/scale = Vector2( 2, 2 )
|
||||
focus/ignore_mouse = true
|
||||
focus/stop_mouse = true
|
||||
size_flags/horizontal = 2
|
||||
size_flags/vertical = 0
|
||||
margin/left = 352.0
|
||||
margin/top = 58.0
|
||||
margin/right = 622.0
|
||||
margin/bottom = 89.0
|
||||
custom_fonts/font = ExtResource( 2 )
|
||||
text = "Capítulos"
|
||||
percent_visible = 1.0
|
||||
lines_skipped = 0
|
||||
max_lines_visible = -1
|
||||
|
||||
[node name="Button" parent="." instance=ExtResource( 4 )]
|
||||
|
||||
margin/left = 548.0
|
||||
margin/right = 766.0
|
||||
scene = ExtResource( 5 )
|
||||
|
||||
|
||||
7
Scenes/Menu/level_unlock.gd
Normal file
7
Scenes/Menu/level_unlock.gd
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
extends Node2D
|
||||
|
||||
func _ready():
|
||||
var levels = get_node("ScrollContainer/VBoxContainer").get_children()
|
||||
for i in range (0, min(global.unlocked_levels, levels.size())):
|
||||
levels[i].set_disabled(false)
|
||||
|
||||
4
Scenes/Menu/resume_game.gd
Normal file
4
Scenes/Menu/resume_game.gd
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
extends Button
|
||||
|
||||
func _on_Resume_pressed():
|
||||
get_parent().set_hidden(true)
|
||||
10
Scenes/Menu/select_level.gd
Normal file
10
Scenes/Menu/select_level.gd
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
extends Button
|
||||
|
||||
export(int) var id = 0
|
||||
|
||||
func _ready():
|
||||
connect("pressed", self, "_on_pressed")
|
||||
|
||||
func _on_pressed():
|
||||
global.level = id
|
||||
get_tree().change_scene("res://Scenes/Menu/HUD.tscn")
|
||||
|
|
@ -40,8 +40,8 @@ gen_mipmaps=false
|
|||
|
||||
ui_left=[key(Left), jbutton(0, 14)]
|
||||
ui_right=[key(Right), jbutton(0, 15)]
|
||||
ui_change_weapon=[key(R), jbutton(0, 6), jbutton(0, 5)]
|
||||
ui_jump=[key(A), key(Space), jbutton(0, 1)]
|
||||
ui_change_weapon=[key(R), jbutton(0, 6)]
|
||||
ui_shoot=[key(S), jbutton(0, 0)]
|
||||
|
||||
[physics]
|
||||
|
|
|
|||
69
export.cfg
69
export.cfg
|
|
@ -262,6 +262,8 @@ application/name=""
|
|||
application/short_version="1.0"
|
||||
application/signature="godotmacgame"
|
||||
application/version="1.0"
|
||||
codesign/entitlements=""
|
||||
codesign/identity=""
|
||||
custom_package/debug=""
|
||||
custom_package/release=""
|
||||
debug/debugging_enabled=true
|
||||
|
|
@ -273,8 +275,71 @@ binary/64_bits=true
|
|||
custom_binary/debug=""
|
||||
custom_binary/release=""
|
||||
debug/debugging_enabled=true
|
||||
resources/bundle_dependencies_(for_optical_disc)=false
|
||||
resources/pack_mode=1
|
||||
resources/bundle_dependencies_(for_optical_disc)=true
|
||||
resources/pack_mode=0
|
||||
|
||||
[platform:Windows Universal]
|
||||
|
||||
architecture/target=2
|
||||
capabilities/all_Joyn=false
|
||||
capabilities/appointments=false
|
||||
capabilities/blocked_Chat_Messages=false
|
||||
capabilities/bluetooth=false
|
||||
capabilities/chat=false
|
||||
capabilities/code_Generation=false
|
||||
capabilities/contacts=false
|
||||
capabilities/enterprise_Authentication=false
|
||||
capabilities/internet_Client=false
|
||||
capabilities/internet_Client_Server=false
|
||||
capabilities/location=false
|
||||
capabilities/microphone=false
|
||||
capabilities/music_Library=false
|
||||
capabilities/objects_3D=false
|
||||
capabilities/phone_Call=false
|
||||
capabilities/pictures_Library=false
|
||||
capabilities/private_Network_Client_Server=false
|
||||
capabilities/proximity=false
|
||||
capabilities/removable_Storage=false
|
||||
capabilities/shared_User_Certificates=false
|
||||
capabilities/user_Account_Information=false
|
||||
capabilities/videos_Library=false
|
||||
capabilities/voip_Call=false
|
||||
capabilities/webcam=false
|
||||
command_line/extra_args=""
|
||||
custom_package/debug=""
|
||||
custom_package/release=""
|
||||
debug/debugging_enabled=true
|
||||
identity/product_guid="00000000-0000-0000-0000-000000000000"
|
||||
identity/publisher_guid="00000000-0000-0000-0000-000000000000"
|
||||
images/background_color="transparent"
|
||||
images/splash_screen=null
|
||||
images/square150x150_logo=null
|
||||
images/square310x310_logo=null
|
||||
images/square44x44_logo=null
|
||||
images/square71x71_logo=null
|
||||
images/store_logo=null
|
||||
images/wide310x150_logo=null
|
||||
orientation/landscape=true
|
||||
orientation/landscape_flipped=true
|
||||
orientation/portrait=true
|
||||
orientation/portrait_flipped=true
|
||||
package/description="Godot Engine"
|
||||
package/display_name=""
|
||||
package/publisher="CN=GodotEngine"
|
||||
package/publisher_display_name="Godot Engine"
|
||||
package/short_name="Godot"
|
||||
package/unique_name="Godot.Engine"
|
||||
signing/certificate_algorithm=116
|
||||
signing/certificate_file=""
|
||||
signing/certificate_password=""
|
||||
signing/sign=false
|
||||
tiles/show_name_on_square150x150=false
|
||||
tiles/show_name_on_square310x310=false
|
||||
tiles/show_name_on_wide310x150=false
|
||||
version/build=0
|
||||
version/major=1
|
||||
version/minor=0
|
||||
version/revision=0
|
||||
|
||||
[script]
|
||||
|
||||
|
|
|
|||
|
|
@ -15,8 +15,10 @@ var player
|
|||
onready var cow_is_abducted = false
|
||||
|
||||
var mission_acomplished = false
|
||||
var rest = total_cages
|
||||
|
||||
func _ready():
|
||||
|
||||
func _ready():
|
||||
texts.set_text(str(init_text, "\n", append_text, total_cages, "."))
|
||||
sound.play()
|
||||
anim.play("appear")
|
||||
|
|
@ -25,20 +27,14 @@ func _ready():
|
|||
yield(anim, "finished")
|
||||
player.enable_player()
|
||||
|
||||
func _on_Area2D_body_enter( body ):
|
||||
if (body.is_in_group("player")):
|
||||
set_process_input(true)
|
||||
|
||||
func abduct():
|
||||
sound.play()
|
||||
player.disable_player()
|
||||
anim.play("unvanish")
|
||||
cow_is_abducted = true
|
||||
|
||||
var rest = total_cages - player.cages_open
|
||||
if (rest > 0):
|
||||
texts.set_text(str(init_text, "\n", append_text, rest, "."))
|
||||
else:
|
||||
cow_is_abducted = true
|
||||
print ("rest:", rest)
|
||||
if (rest == 0):
|
||||
get_tree().get_nodes_in_group("level_selector")[0].next_level()
|
||||
|
||||
func deploy():
|
||||
|
|
@ -48,11 +44,21 @@ func deploy():
|
|||
player.enable_player()
|
||||
cow_is_abducted = false
|
||||
|
||||
func update_text():
|
||||
rest = total_cages - player.cages_open
|
||||
texts.set_text(str(init_text, "\n", append_text, rest, "."))
|
||||
|
||||
func _input(ev):
|
||||
if (ev.is_action_pressed("ui_up") and !cow_is_abducted):
|
||||
abduct()
|
||||
if (ev.is_action_pressed("ui_down") and cow_is_abducted):
|
||||
deploy()
|
||||
|
||||
func _on_Area2D_body_enter( body ):
|
||||
if (body.is_in_group("player")):
|
||||
update_text()
|
||||
set_process_input(true)
|
||||
|
||||
func _on_Area2D_body_exit(body):
|
||||
if (body.is_in_group("player") and !cow_is_abducted):
|
||||
set_process_input(false)
|
||||
Loading…
Add table
Add a link
Reference in a new issue