mirror of
https://github.com/Dariasteam/Cows-Revenge.git
synced 2026-01-23 02:15:17 +00:00
Strange errors
This commit is contained in:
parent
b598676dcc
commit
795041cf76
15 changed files with 363 additions and 377 deletions
|
|
@ -10,8 +10,7 @@ func _ready():
|
|||
|
||||
func _on_Apple_body_enter( body ):
|
||||
if(body.is_in_group("player")):
|
||||
body.add_milk(amount)
|
||||
disconnect("body_enter",self,"_on_Area2D_body_enter")
|
||||
body.add_milk(amount)
|
||||
sound.play()
|
||||
sprite.set_opacity(0)
|
||||
|
||||
|
|
|
|||
|
|
@ -99,7 +99,9 @@ func change_velocity(amount, right):
|
|||
|
||||
|
||||
func _process(delta):
|
||||
#return
|
||||
var motion = v * delta
|
||||
|
||||
motion = move(motion)
|
||||
v.y += delta * GRAVITY
|
||||
|
||||
|
|
|
|||
|
|
@ -18,14 +18,14 @@ func set_player(p):
|
|||
player = p
|
||||
|
||||
func look_left():
|
||||
force_raycast_update()
|
||||
#force_raycast_update()
|
||||
distance = -MAX_DISTANCE
|
||||
origin.set_param(Particles2D.PARAM_DIRECTION, 270)
|
||||
middle.set_region_rect(Rect2(Vector2(0,0),Vector2(0,0)))
|
||||
middle.set_rot(PI)
|
||||
|
||||
func look_right():
|
||||
force_raycast_update()
|
||||
# force_raycast_update()
|
||||
distance = MAX_DISTANCE
|
||||
origin.set_param(Particles2D.PARAM_DIRECTION, 90)
|
||||
middle.set_region_rect(Rect2(Vector2(0,0),Vector2(0,0)))
|
||||
|
|
|
|||
|
|
@ -26,7 +26,6 @@ onready var hud_milk = get_tree().get_nodes_in_group("milk_hud")[0]
|
|||
onready var hud_life = get_tree().get_nodes_in_group("life_hud")[0]
|
||||
onready var hud_cowbell = get_tree().get_nodes_in_group("cowbell_hud")[0]
|
||||
|
||||
onready var JUMP_SOUND = ResourceLoader.load("Sound/player_jump.ogg")
|
||||
onready var cowbell_collector = get_node("cowbell_collector")
|
||||
|
||||
var can_jump = true
|
||||
|
|
@ -130,8 +129,7 @@ func show_damage ():
|
|||
func can_jump_more ():
|
||||
return jump_time > 0
|
||||
|
||||
func play_sound(stream):
|
||||
sound.set_stream(stream)
|
||||
func play_sound():
|
||||
sound.play()
|
||||
|
||||
func _fixed_process(delta):
|
||||
|
|
@ -142,7 +140,7 @@ func _fixed_process(delta):
|
|||
|
||||
# Salto
|
||||
if (can_jump and jump_key_pressed):
|
||||
play_sound(JUMP_SOUND)
|
||||
play_sound()
|
||||
velocity.y = - JUMP_SPEED
|
||||
jumping = true
|
||||
jump_time = MAX_JUMP_TIME
|
||||
|
|
|
|||
|
|
@ -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.26, -5.39603, -9.45393, -8.08105, 6.94148, -8.08105, 11.3331, -5.21703, 11.3331, 4.27004, 9.28368, 8.56607, 1.37875, 13.0411, -3.59843, 13.0411, -11.7961, 8.38707, -13.26, 4.44904 )
|
||||
|
||||
[sub_resource type="ConvexPolygonShape2D" id=5]
|
||||
[sub_resource type="ConvexPolygonShape2D" id=2]
|
||||
|
||||
custom_solver_bias = 0.0
|
||||
points = Vector2Array( -2.35073, 6.94769, -10.0513, 0.602652, -10.1458, -14.3403, 9.69616, -14.1336, 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
|
||||
|
|
|
|||
289
Scenes/Maps/empty_map.tscn
Normal file
289
Scenes/Maps/empty_map.tscn
Normal file
|
|
@ -0,0 +1,289 @@
|
|||
[gd_scene load_steps=14 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]
|
||||
[ext_resource path="res://Sprites/Background/night_outside_c.png" type="Texture" id=3]
|
||||
[ext_resource path="res://Sprites/Background/night_outside_b.png" type="Texture" id=4]
|
||||
[ext_resource path="res://Sprites/Background/night_outside_a.png" type="Texture" id=5]
|
||||
[ext_resource path="res://Scenes/Events/apple.tscn" type="PackedScene" id=6]
|
||||
[ext_resource path="res://Scenes/Events/heart.tscn" type="PackedScene" id=7]
|
||||
[ext_resource path="res://Scenes/Events/cowbell.tscn" type="PackedScene" id=8]
|
||||
[ext_resource path="res://Scenes/Events/death_line.tscn" type="PackedScene" id=9]
|
||||
[ext_resource path="res://Scenes/Events/UFO.tscn" type="PackedScene" id=10]
|
||||
[ext_resource path="res://Music/dangerous-hills-loop.ogg" type="AudioStream" id=11]
|
||||
[ext_resource path="res://Scenes/Events/jail.tscn" type="PackedScene" id=12]
|
||||
[ext_resource path="res://Scenes/Events/on_map_text_dialog.tscn" type="PackedScene" id=13]
|
||||
|
||||
[node name="Level" type="Node2D" groups=[
|
||||
"level",
|
||||
]]
|
||||
|
||||
[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( )
|
||||
|
||||
[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/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 = 2
|
||||
collision/mask = 15
|
||||
occluder/light_mask = 1
|
||||
tile_data = IntArray( )
|
||||
|
||||
[node name="ParallaxBackground" type="ParallaxBackground" parent="."]
|
||||
|
||||
editor/display_folded = true
|
||||
layer = -1
|
||||
offset = Vector2( 0, 0 )
|
||||
rotation = 0.0
|
||||
scale = Vector2( 1, 1 )
|
||||
scroll/offset = Vector2( 0, 0 )
|
||||
scroll/base_offset = Vector2( 0, 0 )
|
||||
scroll/base_scale = Vector2( 1, 1 )
|
||||
scroll/limit_begin = Vector2( 1, 0 )
|
||||
scroll/limit_end = Vector2( 1, 0 )
|
||||
scroll/ignore_camera_zoom = true
|
||||
|
||||
[node name="ParallaxLayerd" type="ParallaxLayer" parent="ParallaxBackground"]
|
||||
|
||||
editor/display_folded = true
|
||||
transform/pos = Vector2( 0, -352 )
|
||||
z/z = -4
|
||||
motion/scale = Vector2( 0.15, 0 )
|
||||
motion/offset = Vector2( 1, 2000 )
|
||||
motion/mirroring = Vector2( 0, 0 )
|
||||
|
||||
[node name="Sprite" type="Sprite" parent="ParallaxBackground/ParallaxLayerd"]
|
||||
|
||||
transform/pos = Vector2( -3712, -2048 )
|
||||
transform/scale = Vector2( 6, 6 )
|
||||
texture = ExtResource( 2 )
|
||||
centered = false
|
||||
region = true
|
||||
region_rect = Rect2( 0, 0, 1024, 128 )
|
||||
|
||||
[node name="ParallaxLayerc" type="ParallaxLayer" parent="ParallaxBackground"]
|
||||
|
||||
editor/display_folded = true
|
||||
transform/pos = Vector2( -500, -352 )
|
||||
z/z = -3
|
||||
motion/scale = Vector2( 0.3, 0 )
|
||||
motion/offset = Vector2( 1, 2000 )
|
||||
motion/mirroring = Vector2( 0, 0 )
|
||||
|
||||
[node name="Sprite" type="Sprite" parent="ParallaxBackground/ParallaxLayerc"]
|
||||
|
||||
transform/pos = Vector2( -3712, -2048 )
|
||||
transform/scale = Vector2( 6, 6 )
|
||||
texture = ExtResource( 3 )
|
||||
centered = false
|
||||
region = true
|
||||
region_rect = Rect2( 0, 0, 1200, 128 )
|
||||
|
||||
[node name="ParallaxLayerb" type="ParallaxLayer" parent="ParallaxBackground"]
|
||||
|
||||
editor/display_folded = true
|
||||
transform/pos = Vector2( -736, -352 )
|
||||
z/z = -2
|
||||
motion/scale = Vector2( 0.5, 0 )
|
||||
motion/offset = Vector2( 1, 2000 )
|
||||
motion/mirroring = Vector2( 0, 0 )
|
||||
|
||||
[node name="Sprite" type="Sprite" parent="ParallaxBackground/ParallaxLayerb"]
|
||||
|
||||
transform/pos = Vector2( -3712, -2048 )
|
||||
transform/scale = Vector2( 6, 6 )
|
||||
texture = ExtResource( 4 )
|
||||
centered = false
|
||||
region = true
|
||||
region_rect = Rect2( 0, 0, 2048, 128 )
|
||||
|
||||
[node name="ParallaxLayera" type="ParallaxLayer" parent="ParallaxBackground"]
|
||||
|
||||
editor/display_folded = true
|
||||
transform/pos = Vector2( -736, -352 )
|
||||
z/z = -1
|
||||
motion/scale = Vector2( 0.8, 0 )
|
||||
motion/offset = Vector2( 1, 2000 )
|
||||
motion/mirroring = Vector2( 0, 0 )
|
||||
|
||||
[node name="Sprite" type="Sprite" parent="ParallaxBackground/ParallaxLayera"]
|
||||
|
||||
transform/pos = Vector2( -3712, -2048 )
|
||||
transform/scale = Vector2( 6, 6 )
|
||||
texture = ExtResource( 5 )
|
||||
centered = false
|
||||
region = true
|
||||
region_rect = Rect2( -1000, 0, 2048, 128 )
|
||||
|
||||
[node name="enemies" type="Node2D" parent="."]
|
||||
|
||||
transform/pos = Vector2( 2140, -960 )
|
||||
transform/scale = Vector2( 1.7, 1.7 )
|
||||
|
||||
[node name="apples" type="Node2D" parent="."]
|
||||
|
||||
transform/pos = Vector2( -3140, -3460 )
|
||||
|
||||
[node name="Apple" parent="apples" instance=ExtResource( 6 )]
|
||||
|
||||
transform/pos = Vector2( 5140, 1240 )
|
||||
amount = 20
|
||||
|
||||
[node name="hearts" type="Node2D" parent="."]
|
||||
|
||||
[node name="Heart" parent="hearts" instance=ExtResource( 7 )]
|
||||
|
||||
transform/pos = Vector2( 1480, -1230 )
|
||||
|
||||
[node name="cowbells" type="Node2D" parent="."]
|
||||
|
||||
editor/display_folded = true
|
||||
transform/pos = Vector2( 500, 560 )
|
||||
|
||||
[node name="Cowbell" parent="cowbells" instance=ExtResource( 8 )]
|
||||
|
||||
transform/pos = Vector2( 1510, -3640 )
|
||||
|
||||
[node name="Block" type="Node2D" parent="cowbells"]
|
||||
|
||||
editor/display_folded = true
|
||||
transform/pos = Vector2( 2350, -3400 )
|
||||
|
||||
[node name="Col" type="Node2D" parent="cowbells/Block"]
|
||||
|
||||
editor/display_folded = true
|
||||
|
||||
[node name="Cowbell18173" parent="cowbells/Block/Col" instance=ExtResource( 8 )]
|
||||
|
||||
transform/pos = Vector2( 0, 20 )
|
||||
|
||||
[node name="Cowbell18174" parent="cowbells/Block/Col" instance=ExtResource( 8 )]
|
||||
|
||||
transform/pos = Vector2( 0, 70 )
|
||||
|
||||
[node name="Cowbell18175" parent="cowbells/Block/Col" instance=ExtResource( 8 )]
|
||||
|
||||
transform/pos = Vector2( 0, 120 )
|
||||
|
||||
[node name="Cowbell18176" parent="cowbells/Block/Col" instance=ExtResource( 8 )]
|
||||
|
||||
transform/pos = Vector2( 0, 170 )
|
||||
|
||||
[node name="Cowbell18177" parent="cowbells/Block/Col" instance=ExtResource( 8 )]
|
||||
|
||||
transform/pos = Vector2( 0, 220 )
|
||||
|
||||
[node name="Col1" type="Node2D" parent="cowbells/Block"]
|
||||
|
||||
editor/display_folded = true
|
||||
transform/pos = Vector2( 50, 0 )
|
||||
|
||||
[node name="Cowbell18173" parent="cowbells/Block/Col1" instance=ExtResource( 8 )]
|
||||
|
||||
transform/pos = Vector2( 0, 20 )
|
||||
|
||||
[node name="Cowbell18174" parent="cowbells/Block/Col1" instance=ExtResource( 8 )]
|
||||
|
||||
transform/pos = Vector2( 0, 70 )
|
||||
|
||||
[node name="Cowbell18175" parent="cowbells/Block/Col1" instance=ExtResource( 8 )]
|
||||
|
||||
transform/pos = Vector2( 0, 120 )
|
||||
|
||||
[node name="Cowbell18176" parent="cowbells/Block/Col1" instance=ExtResource( 8 )]
|
||||
|
||||
transform/pos = Vector2( 0, 170 )
|
||||
|
||||
[node name="Cowbell18177" parent="cowbells/Block/Col1" instance=ExtResource( 8 )]
|
||||
|
||||
transform/pos = Vector2( 0, 220 )
|
||||
|
||||
[node name="Col2
|
||||
|
|
@ -76,7 +76,7 @@ collision/bounce = 0.0
|
|||
collision/layers = 2048
|
||||
collision/mask = 14
|
||||
occluder/light_mask = 1
|
||||
tile_data = IntArray( -2293773, 33, -2293772, 37, -2293771, 35, -2162722, 36, -2162721, 37, -2162720, 35, -2162701, 26, -2031650, 36, -2031649, 37, -2031648, 35, -1966098, 36, -1966097, 37, -1966096, 35, -1966088, 36, -1966087, 37, -1966086, 36, -1966085, 37, -1966084, 37, -1966083, 37, -1966082, 34, -1769493, 33, -1769492, 37, -1769491, 35, -1769490, 36, -1769489, 37, -1769488, 35, -1769478, 36, -1769477, 37, -1769476, 37, -1769475, 37, -1769474, 38, -1769473, 37, -1835008, 34, -1638421, 33, -1638420, 37, -1638419, 35, -1638402, 26, -1572887, 33, -1572886, 37, -1572885, 35, -1507349, 33, -1507348, 37, -1507347, 35, -1507345, 33, -1507344, 37, -1507343, 37, -1507342, 37, -1507341, 35, -1441815, 33, -1441814, 37, -1441813, 35, -1441809, 25, -1441806, 41, -1441798, 25, -1376277, 33, -1376276, 37, -1376275, 35, -1376266, 25, -1310743, 33, -1310742, 37, -1310741, 35, -1310723, 536870958, -1310722, 37, -1310721, 37, -1376256, 34, -1245191, 23, -1245190, 22, -1245189, 22, -1245188, 22, -1245187, 24, -1179671, 33, -1179670, 37, -1179669, 35, -1048599, 33, -1048598, 37, -1048597, 35, -1114112, 26, -917527, 33, -917526, 37, -917525, 37, -917524, 37, -917523, 37, -917522, 37, -917521, 37, -917520, 37, -917519, 37, -917518, 37, -917517, 37, -917516, 37, -917515, 37, -917514, 37, -917513, 37, -917512, 37, -917511, 35, -786450, 26, -851955, 35, -655363, 22 )
|
||||
tile_data = IntArray( -2293773, 33, -2293772, 37, -2293771, 35, -2162722, 36, -2162721, 37, -2162720, 35, -2162701, 26, -2031650, 36, -2031649, 37, -2031648, 35, -1966098, 36, -1966097, 37, -1966096, 35, -1966088, 36, -1966087, 37, -1966086, 36, -1966085, 37, -1966084, 37, -1966083, 37, -1966082, 34, -1769493, 33, -1769492, 37, -1769491, 35, -1769490, 36, -1769489, 37, -1769488, 35, -1769478, 36, -1769477, 37, -1769476, 37, -1769475, 37, -1769474, 38, -1769473, 37, -1835008, 34, -1638421, 33, -1638420, 37, -1638419, 35, -1638402, 26, -1572887, 33, -1572886, 37, -1572885, 35, -1507349, 33, -1507348, 37, -1507347, 35, -1507345, 33, -1507344, 37, -1507343, 37, -1507342, 37, -1507341, 35, -1441815, 33, -1441814, 37, -1441813, 35, -1441809, 25, -1441806, 41, -1441798, 25, -1376277, 33, -1376276, 37, -1376275, 35, -1376266, 25, -1310743, 33, -1310742, 37, -1310741, 35, -1310723, 36, -1310722, 37, -1310721, 37, -1376256, 34, -1245191, 23, -1245190, 22, -1245189, 22, -1245188, 22, -1245187, 24, -1179671, 33, -1179670, 37, -1179669, 35, -1048599, 33, -1048598, 37, -1048597, 35, -1114112, 26, -917527, 33, -917526, 37, -917525, 37, -917524, 37, -917523, 37, -917522, 37, -917521, 37, -917520, 37, -917519, 37, -917518, 37, -917517, 37, -917516, 37, -917515, 37, -917514, 37, -917513, 37, -917512, 37, -917511, 35, -851989, 36, -851988, 37, -851987, 35, -851979, 36, -851978, 37, -851977, 35, -786450, 26, -851955, 35, -655363, 22 )
|
||||
|
||||
[node name="trees" type="TileMap" parent="."]
|
||||
|
||||
|
|
@ -96,7 +96,7 @@ collision/bounce = 0.0
|
|||
collision/layers = 2
|
||||
collision/mask = 15
|
||||
occluder/light_mask = 1
|
||||
tile_data = IntArray( -2162701, 28, -1966086, 26, -1638429, 21, -1638402, 28, -1441809, 28, -1441798, 19, -1441796, 28, -1376270, 28, -1310723, 36, -1245205, 28, -1114128, 21, -1114112, 28 )
|
||||
tile_data = IntArray( -2162701, 28, -1966086, 26, -1638429, 21, -1638402, 28, -1441809, 28, -1441798, 19, -1441796, 28, -1376270, 28, -1245205, 28, -1114128, 21, -1114112, 28 )
|
||||
|
||||
[node name="base" type="TileMap" parent="."]
|
||||
|
||||
|
|
@ -116,7 +116,7 @@ collision/bounce = 0.0
|
|||
collision/layers = 2
|
||||
collision/mask = 15
|
||||
occluder/light_mask = 1
|
||||
tile_data = IntArray( -2490404, 13, -2424869, 13, -2424868, 13, -2359334, 13, -2359332, 13, -2359309, 32, -2293796, 13, -2293773, 31, -2293771, 13, -2293770, 13, -2293769, 13, -2293768, 13, -2228259, 0, -2228258, 2, -2228239, 13, -2228237, 30, -2228231, 13, -2162727, 13, -2162723, 3, -2162722, 5, -2162720, 13, -2162708, 14, -2162707, 1, -2162706, 1, -2162705, 1, -2162704, 1, -2162703, 2, -2162701, 13, -2162698, 0, -2162697, 2, -2162695, 0, -2162694, 1, -2162693, 1, -2162692, 15, -2162690, 32, -2228224, 31, -2097187, 3, -2097186, 5, -2097172, 6, -2097171, 7, -2097170, 7, -2097169, 7, -2097168, 7, -2097167, 8, -2097162, 3, -2097161, 5, -2097159, 17, -2097158, 7, -2097157, 7, -2097156, 8, -2097154, 31, -2162688, 31, -2031653, 13, -2031651, 3, -2031650, 5, -2031648, 13, -2031636, 13, -2031626, 3, -2031625, 12, -2031624, 15, -2031618, 31, -2097152, 31, -1966115, 3, -1966114, 5, -1966102, 13, -1966098, 13, -1966096, 0, -1966095, 2, -1966090, 17, -1966089, 10, -1966088, 5, -1966086, 13, -1966082, 31, -2031616, 31, -1900579, 3, -1900578, 12, -1900577, 1, -1900576, 1, -1900575, 1, -1900574, 1, -1900573, 1, -1900572, 1, -1900571, 1, -1900570, 1, -1900569, 1, -1900568, 1, -1900567, 1, -1900566, 2, -1900560, 3, -1900559, 5, -1900553, 3, -1900552, 5, -1900548, 13, -1900547, 13, -1900546, 31, -1966080, 31, -1835044, 13, -1835043, 6, -1835042, 7, -1835041, 7, -1835040, 7, -1835039, 7, -1835038, 7, -1835037, 7, -1835036, 7, -1835035, 7, -1835034, 7, -1835033, 7, -1835032, 7, -1835031, 7, -1835030, 8, -1835029, 32, -1835024, 3, -1835023, 5, -1835017, 6, -1835016, 8, -1835010, 31, -1900544, 31, -1769493, 31, -1769490, 13, -1769488, 3, -1769487, 5, -1769478, 13, -1769474, 31, -1835008, 31, -1703974, 13, -1703973, 13, -1703965, 20, -1703960, 13, -1703957, 31, -1703954, 13, -1703952, 17, -1703951, 12, -1703950, 15, -1703946, 14, -1703945, 1, -1703944, 1, -1703943, 1, -1703942, 2, -1703938, 30, -1769472, 31, -1638437, 13, -1638436, 0, -1638435, 1, -1638434, 1, -1638433, 1, -1638432, 1, -1638431, 1, -1638430, 1, -1638429, 1, -1638428, 1, -1638427, 1, -1638426, 1, -1638425, 1, -1638424, 2, -1638423, 32, -1638421, 31, -1638418, 13, -1638415, 17, -1638414, 16, -1638413, 13, -1638412, 13, -1638411, 13, -1638410, 3, -1638409, 4, -1638408, 11, -1638407, 7, -1638406, 8, -1638403, 0, -1638402, 2, -1703936, 31, -1572900, 6, -1572899, 7, -1572898, 7, -1572897, 7, -1572896, 7, -1572895, 7, -1572894, 7, -1572893, 7, -1572892, 7, -1572891, 7, -1572890, 7, -1572889, 7, -1572888, 8, -1572887, 31, -1572885, 31, -1572881, 32, -1572874, 17, -1572873, 7, -1572872, 16, -1572868, 32, -1572867, 17, -1572866, 16, -1638400, 31, -1507351, 31, -1507349, 31, -1507345, 30, -1507341, 13, -1507340, 13, -1507339, 13, -1507338, 13, -1507334, 18, -1507332, 30, -1572864, 31, -1441815, 31, -1441813, 31, -1441810, 0, -1441809, 2, -1441806, 29, -1441800, 14, -1441799, 1, -1441798, 1, -1441797, 1, -1441796, 2, -1507328, 31, -1376279, 31, -1376277, 31, -1376274, 3, -1376273, 5, -1376271, 0, -1376270, 2, -1376268, 0, -1376267, 1, -1376266, 1, -1376265, 1, -1376264, 9, -1376263, 7, -1376262, 7, -1376261, 7, -1376260, 8, -1441792, 31, -1310743, 31, -1310741, 30, -1310738, 6, -1310737, 8, -1310735, 6, -1310734, 8, -1310732, 6, -1310731, 7, -1310730, 7, -1310729, 10, -1310728, 5, -1376256, 31, -1245207, 31, -1245205, 0, -1245204, 2, -1245193, 3, -1245192, 12, -1245191, 1, -1245190, 1, -1245189, 1, -1245188, 1, -1245187, 2, -1310720, 31, -1179671, 31, -1179669, 3, -1179668, 5, -1179664, 20, -1179657, 6, -1179656, 7, -1179655, 7, -1179654, 7, -1179653, 7, -1179652, 7, -1179651, 8, -1245184, 31, -1114135, 31, -1114133, 3, -1114132, 12, -1114131, 1, -1114130, 1, -1114129, 1, -1114128, 1, -1114127, 1, -1114126, 1, -1114125, 1, -1114124, 1, -1114123, 1, -1114122, 1, -1114121, 2, -1179648, 30, -1048599, 31, -1048597, 6, -1048596, 7, -1048595, 7, -1048594, 7, -1048593, 7, -1048592, 7, -1048591, 7, -1048590, 7, -1048589, 7, -1048588, 7, -1048587, 7, -1048586, 7, -1048585, 16, -1048583, 0, -1048582, 1, -1048581, 1, -1048580, 1, -1048579, 1, -1048578, 1, -1048577, 1, -1114112, 1, -1114111, 2, -983063, 31, -983047, 6, -983046, 7, -983045, 7, -983044, 7, -983043, 7, -983042, 7, -983041, 7, -1048576, 7, -1048575, 8, -917527, 31, -851991, 31, -786455, 31, -786450, 13, -786440, 13, -720913, 13, -720903, 13, -720899, 20, -655376, 0, -655375, 2, -655366, 0, -655365, 1, -655364, 1, -655363, 1, -655362, 1, -655361, 1, -720896, 1, -720895, 1, -720894, 2, -589840, 6, -589839, 8, -589830, 6, -589829, 7, -589828, 7, -589827, 7, -589826, 7, -589825, 7, -655360, 7, -655359, 7, -655358, 8 )
|
||||
tile_data = IntArray( -2490404, 13, -2424869, 13, -2424868, 13, -2359334, 13, -2359332, 13, -2359309, 32, -2293796, 13, -2293773, 31, -2293771, 13, -2293770, 13, -2293769, 13, -2293768, 13, -2228259, 0, -2228258, 2, -2228239, 13, -2228237, 30, -2228231, 13, -2162727, 13, -2162723, 3, -2162722, 5, -2162720, 13, -2162708, 14, -2162707, 1, -2162706, 1, -2162705, 1, -2162704, 1, -2162703, 2, -2162701, 13, -2162698, 0, -2162697, 2, -2162695, 0, -2162694, 1, -2162693, 1, -2162692, 15, -2162690, 32, -2228224, 32, -2097187, 3, -2097186, 5, -2097172, 6, -2097171, 7, -2097170, 7, -2097169, 7, -2097168, 7, -2097167, 8, -2097162, 3, -2097161, 5, -2097159, 17, -2097158, 7, -2097157, 7, -2097156, 8, -2097154, 31, -2162688, 31, -2031653, 13, -2031651, 3, -2031650, 5, -2031648, 13, -2031636, 13, -2031626, 3, -2031625, 12, -2031624, 15, -2031618, 31, -2097152, 31, -1966115, 3, -1966114, 5, -1966102, 13, -1966098, 13, -1966096, 0, -1966095, 2, -1966090, 17, -1966089, 10, -1966088, 5, -1966086, 13, -1966082, 31, -2031616, 31, -1900579, 3, -1900578, 12, -1900577, 1, -1900576, 1, -1900575, 1, -1900574, 1, -1900573, 1, -1900572, 1, -1900571, 1, -1900570, 1, -1900569, 1, -1900568, 1, -1900567, 1, -1900566, 2, -1900560, 3, -1900559, 5, -1900553, 3, -1900552, 5, -1900548, 13, -1900547, 13, -1900546, 31, -1966080, 31, -1835044, 13, -1835043, 6, -1835042, 7, -1835041, 7, -1835040, 7, -1835039, 7, -1835038, 7, -1835037, 7, -1835036, 7, -1835035, 7, -1835034, 7, -1835033, 7, -1835032, 7, -1835031, 7, -1835030, 8, -1835029, 32, -1835024, 3, -1835023, 5, -1835017, 6, -1835016, 8, -1835010, 31, -1900544, 31, -1769493, 31, -1769490, 13, -1769488, 3, -1769487, 5, -1769478, 13, -1769474, 31, -1835008, 31, -1703974, 13, -1703973, 13, -1703965, 20, -1703960, 13, -1703957, 31, -1703954, 13, -1703952, 17, -1703951, 12, -1703950, 15, -1703946, 14, -1703945, 1, -1703944, 1, -1703943, 1, -1703942, 2, -1703938, 30, -1769472, 31, -1638437, 13, -1638436, 0, -1638435, 1, -1638434, 1, -1638433, 1, -1638432, 1, -1638431, 1, -1638430, 1, -1638429, 1, -1638428, 1, -1638427, 1, -1638426, 1, -1638425, 1, -1638424, 2, -1638423, 32, -1638421, 31, -1638418, 13, -1638415, 17, -1638414, 16, -1638413, 13, -1638412, 13, -1638411, 13, -1638410, 3, -1638409, 4, -1638408, 11, -1638407, 7, -1638406, 8, -1638403, 0, -1638402, 2, -1703936, 31, -1572900, 6, -1572899, 7, -1572898, 7, -1572897, 7, -1572896, 7, -1572895, 7, -1572894, 7, -1572893, 7, -1572892, 7, -1572891, 7, -1572890, 7, -1572889, 7, -1572888, 8, -1572887, 31, -1572885, 31, -1572881, 32, -1572874, 17, -1572873, 7, -1572872, 16, -1572868, 32, -1572867, 17, -1572866, 16, -1638400, 31, -1507351, 31, -1507349, 31, -1507345, 30, -1507341, 13, -1507340, 13, -1507339, 13, -1507338, 13, -1507334, 18, -1507332, 30, -1572864, 31, -1441815, 31, -1441813, 31, -1441810, 0, -1441809, 2, -1441806, 29, -1441800, 14, -1441799, 1, -1441798, 1, -1441797, 1, -1441796, 2, -1507328, 31, -1376279, 31, -1376277, 31, -1376274, 3, -1376273, 5, -1376271, 0, -1376270, 2, -1376268, 0, -1376267, 1, -1376266, 1, -1376265, 1, -1376264, 9, -1376263, 7, -1376262, 7, -1376261, 7, -1376260, 8, -1441792, 31, -1310743, 31, -1310741, 30, -1310738, 6, -1310737, 8, -1310735, 6, -1310734, 8, -1310732, 6, -1310731, 7, -1310730, 7, -1310729, 10, -1310728, 5, -1376256, 31, -1245207, 31, -1245205, 0, -1245204, 2, -1245193, 3, -1245192, 12, -1245191, 1, -1245190, 1, -1245189, 1, -1245188, 1, -1245187, 2, -1310720, 31, -1179671, 31, -1179669, 3, -1179668, 5, -1179664, 20, -1179657, 6, -1179656, 7, -1179655, 7, -1179654, 7, -1179653, 7, -1179652, 7, -1179651, 8, -1245184, 31, -1114135, 31, -1114133, 3, -1114132, 12, -1114131, 1, -1114130, 1, -1114129, 1, -1114128, 1, -1114127, 1, -1114126, 1, -1114125, 1, -1114124, 1, -1114123, 1, -1114122, 1, -1114121, 2, -1179648, 30, -1048599, 31, -1048597, 6, -1048596, 7, -1048595, 7, -1048594, 7, -1048593, 7, -1048592, 7, -1048591, 7, -1048590, 7, -1048589, 7, -1048588, 7, -1048587, 7, -1048586, 7, -1048585, 16, -1048583, 0, -1048582, 1, -1048581, 1, -1048580, 1, -1048579, 1, -1048578, 1, -1048577, 1, -1114112, 1, -1114111, 2, -983063, 31, -983047, 6, -983046, 7, -983045, 7, -983044, 7, -983043, 7, -983042, 7, -983041, 7, -1048576, 7, -1048575, 8, -917527, 31, -851991, 31, -786455, 31, -786450, 13, -786440, 13, -720913, 13, -720903, 13, -720899, 20, -655376, 0, -655375, 2, -655366, 0, -655365, 1, -655364, 1, -655363, 1, -655362, 1, -655361, 1, -720896, 1, -720895, 1, -720894, 2, -589840, 6, -589839, 8, -589830, 6, -589829, 7, -589828, 7, -589827, 7, -589826, 7, -589825, 7, -655360, 7, -655359, 7, -655358, 8 )
|
||||
|
||||
[node name="ParallaxBackground" type="ParallaxBackground" parent="."]
|
||||
|
||||
|
|
@ -206,6 +206,7 @@ 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 )
|
||||
|
||||
|
|
@ -261,6 +262,7 @@ transform/scale = Vector2( 1, 1 )
|
|||
|
||||
[node name="apples" type="Node2D" parent="."]
|
||||
|
||||
editor/display_folded = true
|
||||
transform/pos = Vector2( -3140, -3460 )
|
||||
|
||||
[node name="Apple" parent="apples" instance=ExtResource( 7 )]
|
||||
|
|
@ -279,18 +281,49 @@ transform/pos = Vector2( 1670, 460 )
|
|||
z/z = -2
|
||||
amount = 20
|
||||
|
||||
[node name="Apple4" parent="apples" instance=ExtResource( 7 )]
|
||||
|
||||
transform/pos = Vector2( 2410, 190 )
|
||||
z/z = -2
|
||||
amount = 20
|
||||
|
||||
[node name="Apple5" parent="apples" instance=ExtResource( 7 )]
|
||||
|
||||
transform/pos = Vector2( 1590, 1040 )
|
||||
z/z = -2
|
||||
amount = 20
|
||||
|
||||
[node name="Apple6" parent="apples" instance=ExtResource( 7 )]
|
||||
|
||||
transform/pos = Vector2( 3200, -270 )
|
||||
z/z = -2
|
||||
amount = 20
|
||||
|
||||
[node name="Apple3" parent="apples" instance=ExtResource( 7 )]
|
||||
|
||||
transform/pos = Vector2( -280, -270 )
|
||||
z/z = -2
|
||||
amount = 20
|
||||
|
||||
[node name="hearts" type="Node2D" parent="."]
|
||||
|
||||
editor/display_folded = true
|
||||
|
||||
[node name="Heart" parent="hearts" instance=ExtResource( 8 )]
|
||||
|
||||
transform/pos = Vector2( -1250, -3930 )
|
||||
|
||||
[node name="Heart2" parent="hearts" instance=ExtResource( 8 )]
|
||||
|
||||
transform/pos = Vector2( -160, -3730 )
|
||||
|
||||
[node name="Heart1" parent="hearts" instance=ExtResource( 8 )]
|
||||
|
||||
transform/pos = Vector2( -1900, -2540 )
|
||||
|
||||
[node name="cowbells" type="Node2D" parent="."]
|
||||
|
||||
editor/display_folded = true
|
||||
transform/pos = Vector2( 500, 560 )
|
||||
|
||||
[node name="Cowbell" parent="cowbells" instance=ExtResource( 9 )]
|
||||
|
|
|
|||
|
|
@ -1,29 +1,9 @@
|
|||
[gd_scene load_steps=29 format=1]
|
||||
[gd_scene load_steps=7 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_3.tscn" type="PackedScene" id=3]
|
||||
[ext_resource path="res://Scenes/Maps/map_1.tscn" type="PackedScene" id=4]
|
||||
[ext_resource path="res://Scenes/Maps/map_2.tscn" type="PackedScene" id=5]
|
||||
[ext_resource path="res://Scenes/Maps/map_4.tscn" type="PackedScene" id=6]
|
||||
[ext_resource path="res://Scenes/Menu/life_hud.gd" type="Script" id=7]
|
||||
[ext_resource path="res://Scenes/Menu/buttons_hud.gd" type="Script" id=8]
|
||||
[ext_resource path="res://Sprites/GUI/Buttons/bttn_arrow.png" type="Texture" id=9]
|
||||
[ext_resource path="res://Sprites/GUI/Buttons/bttn_jump.png" type="Texture" id=10]
|
||||
[ext_resource path="res://Sprites/GUI/Buttons/bttn.png" type="Texture" id=11]
|
||||
[ext_resource path="res://Sprites/GUI/Buttons/btn_shoot.png" type="Texture" id=12]
|
||||
[ext_resource path="res://Scenes/Menu/milk_botte_hud.gd" type="Script" id=13]
|
||||
[ext_resource path="res://Sprites/GUI/HUD/milbar_outter_2.png" type="Texture" id=14]
|
||||
[ext_resource path="res://Sprites/GUI/HUD/milkbar_outter_3.png" type="Texture" id=15]
|
||||
[ext_resource path="res://Sprites/GUI/HUD/milkbar_outter_1.png" type="Texture" id=16]
|
||||
[ext_resource path="res://Scenes/Menu/cowbells_hud.gd" type="Script" id=17]
|
||||
[ext_resource path="res://Fonts/pixelated_title.fnt" type="BitmapFont" id=18]
|
||||
[ext_resource path="res://Sprites/Charasets/cowbell.png" type="Texture" id=19]
|
||||
[ext_resource path="res://Scenes/Events/cowbell_animation_one_shot.tres" type="Animation" id=20]
|
||||
[ext_resource path="res://Scenes/Events/cowbell_animations.tres" type="Animation" id=21]
|
||||
[ext_resource path="res://Scenes/Menu/button_back.tscn" type="PackedScene" id=22]
|
||||
[ext_resource path="res://Scenes/Menu/in_game_menu.tscn" type="PackedScene" id=23]
|
||||
[ext_resource path="res://Scenes/Menu/ufo_store.tscn" type="PackedScene" id=24]
|
||||
[ext_resource path="res://Scenes/Maps/map_3.tscn" type="PackedScene" id=2]
|
||||
[ext_resource path="res://Scenes/Maps/map_1.tscn" type="PackedScene" id=3]
|
||||
[ext_resource path="res://Scenes/Maps/map_2.tscn" type="PackedScene" id=4]
|
||||
|
||||
[sub_resource type="Environment" id=1]
|
||||
|
||||
|
|
@ -73,19 +53,6 @@ srgb/enabled = false
|
|||
|
||||
environment = SubResource( 1 )
|
||||
|
||||
[sub_resource type="CanvasItemMaterial" id=3]
|
||||
|
||||
shader/shading_mode = 0
|
||||
|
||||
[sub_resource type="GDScript" id=4]
|
||||
|
||||
script/source = "extends Button
|
||||
|
||||
func _on_Back_pressed():
|
||||
get_tree().set_pause(true)
|
||||
get_node(\"in_game_menu\").show()
|
||||
"
|
||||
|
||||
[node name="Global" type="Node2D" groups=[
|
||||
"control",
|
||||
]]
|
||||
|
|
@ -103,7 +70,7 @@ margin/top = 0.0
|
|||
margin/right = 1280.0
|
||||
margin/bottom = 768.0
|
||||
script/script = ExtResource( 1 )
|
||||
levels = [ ExtResource( 2 ), ExtResource( 3 ), ExtResource( 4 ), ExtResource( 5 ), ExtResource( 6 ) ]
|
||||
levels = [ null, ExtResource( 2 ), ExtResource( 3 ), ExtResource( 4 ), null ]
|
||||
|
||||
[node name="Viewport" type="Viewport" parent="Control"]
|
||||
|
||||
|
|
@ -122,314 +89,4 @@ audio_listener/enable_3d = false
|
|||
physics/object_picking = false
|
||||
gui/disable_input = false
|
||||
|
||||
[node name="Life" type="Node2D" parent="Control" groups=[
|
||||
"life_hud",
|
||||
]]
|
||||
|
||||
transform/pos = Vector2( 120, 58 )
|
||||
script/script = ExtResource( 7 )
|
||||
heart_inter_distance = 64
|
||||
initial_heart_pos = Vector2( 32, 0 )
|
||||
|
||||
[node name="Buttons" type="Node2D" parent="Control" groups=[
|
||||
"buttons_hud",
|
||||
"onscreen_controls",
|
||||
]]
|
||||
|
||||
editor/display_folded = true
|
||||
script/script = ExtResource( 8 )
|
||||
|
||||
[node name="Bttn_U" type="TouchScreenButton" parent="Control/Buttons" groups=[
|
||||
"onscreen_controls",
|
||||
]]
|
||||
|
||||
visibility/opacity = 0.9
|
||||
transform/pos = Vector2( 160, 320 )
|
||||
transform/scale = Vector2( 0.474074, 0.481203 )
|
||||
normal = ExtResource( 9 )
|
||||
pressed = null
|
||||
bitmask = null
|
||||
shape = null
|
||||
shape_centered = true
|
||||
shape_visible = true
|
||||
passby_press = true
|
||||
action = ""
|
||||
visibility_mode = 0
|
||||
|
||||
[node name="Bttn_A" type="TouchScreenButton" parent="Control/Buttons" groups=[
|
||||
"onscreen_controls",
|
||||
]]
|
||||
|
||||
visibility/opacity = 0.8
|
||||
transform/pos = Vector2( 1088, 576 )
|
||||
transform/scale = Vector2( 0.474074, 0.481203 )
|
||||
normal = ExtResource( 10 )
|
||||
pressed = null
|
||||
bitmask = null
|
||||
shape = null
|
||||
shape_centered = true
|
||||
shape_visible = true
|
||||
passby_press = true
|
||||
action = ""
|
||||
visibility_mode = 0
|
||||
|
||||
[node name="Bttn_AS" type="TouchScreenButton" parent="Control/Buttons" groups=[
|
||||
"onscreen_controls",
|
||||
]]
|
||||
|
||||
visibility/opacity = 0.8
|
||||
transform/pos = Vector2( 1088, 384 )
|
||||
transform/scale = Vector2( 0.474074, 0.481203 )
|
||||
normal = ExtResource( 11 )
|
||||
pressed = null
|
||||
bitmask = null
|
||||
shape = null
|
||||
shape_centered = true
|
||||
shape_visible = true
|
||||
passby_press = true
|
||||
action = ""
|
||||
visibility_mode = 0
|
||||
|
||||
[node name="Bttn_S" type="TouchScreenButton" parent="Control/Buttons" groups=[
|
||||
"onscreen_controls",
|
||||
]]
|
||||
|
||||
visibility/opacity = 0.9
|
||||
transform/pos = Vector2( 896, 576 )
|
||||
transform/scale = Vector2( 0.474074, 0.481203 )
|
||||
normal = ExtResource( 12 )
|
||||
pressed = null
|
||||
bitmask = null
|
||||
shape = null
|
||||
shape_centered = true
|
||||
shape_visible = true
|
||||
passby_press = true
|
||||
action = ""
|
||||
visibility_mode = 0
|
||||
|
||||
[node name="Bttn_D" type="TouchScreenButton" parent="Control/Buttons" groups=[
|
||||
"onscreen_controls",
|
||||
]]
|
||||
|
||||
visibility/opacity = 0.9
|
||||
transform/pos = Vector2( 288, 704 )
|
||||
transform/rot = 180.0
|
||||
transform/scale = Vector2( 0.474074, 0.481203 )
|
||||
normal = ExtResource( 9 )
|
||||
pressed = null
|
||||
bitmask = null
|
||||
shape = null
|
||||
shape_centered = true
|
||||
shape_visible = true
|
||||
passby_press = true
|
||||
action = ""
|
||||
visibility_mode = 0
|
||||
|
||||
[node name="Bttn_DR" type="TouchScreenButton" parent="Control/Buttons" groups=[
|
||||
"onscreen_controls",
|
||||
]]
|
||||
|
||||
visibility/opacity = 0.0
|
||||
transform/pos = Vector2( 288, 576 )
|
||||
transform/scale = Vector2( 0.474074, 0.481203 )
|
||||
normal = ExtResource( 9 )
|
||||
pressed = null
|
||||
bitmask = null
|
||||
shape = null
|
||||
shape_centered = true
|
||||
shape_visible = true
|
||||
passby_press = true
|
||||
action = ""
|
||||
visibility_mode = 0
|
||||
|
||||
[node name="Bttn_DL" type="TouchScreenButton" parent="Control/Buttons" groups=[
|
||||
"onscreen_controls",
|
||||
]]
|
||||
|
||||
visibility/opacity = 0.0
|
||||
transform/pos = Vector2( 32, 576 )
|
||||
transform/scale = Vector2( 0.474074, 0.481203 )
|
||||
normal = ExtResource( 9 )
|
||||
pressed = null
|
||||
bitmask = null
|
||||
shape = null
|
||||
shape_centered = true
|
||||
shape_visible = true
|
||||
passby_press = true
|
||||
action = ""
|
||||
visibility_mode = 0
|
||||
|
||||
[node name="Bttn_R" type="TouchScreenButton" parent="Control/Buttons" groups=[
|
||||
"onscreen_controls",
|
||||
]]
|
||||
|
||||
visibility/opacity = 0.9
|
||||
transform/pos = Vector2( 416, 448 )
|
||||
transform/rot = -90.0
|
||||
transform/scale = Vector2( 0.474074, 0.481203 )
|
||||
normal = ExtResource( 9 )
|
||||
pressed = null
|
||||
bitmask = null
|
||||
shape = null
|
||||
shape_centered = true
|
||||
shape_visible = true
|
||||
passby_press = true
|
||||
action = ""
|
||||
visibility_mode = 0
|
||||
|
||||
[node name="Bttn_L" type="TouchScreenButton" parent="Control/Buttons" groups=[
|
||||
"onscreen_controls",
|
||||
]]
|
||||
|
||||
visibility/opacity = 0.9
|
||||
transform/pos = Vector2( 32, 576 )
|
||||
transform/rot = 90.0
|
||||
transform/scale = Vector2( 0.474074, 0.481203 )
|
||||
normal = ExtResource( 9 )
|
||||
pressed = null
|
||||
bitmask = null
|
||||
shape = null
|
||||
shape_centered = true
|
||||
shape_visible = true
|
||||
passby_press = true
|
||||
action = ""
|
||||
visibility_mode = 0
|
||||
|
||||
[node name="Milk_Bar" type="Node2D" parent="Control" groups=[
|
||||
"milk_hud",
|
||||
]]
|
||||
|
||||
transform/pos = Vector2( 1205, 73 )
|
||||
transform/scale = Vector2( 2, 2 )
|
||||
script/script = ExtResource( 13 )
|
||||
each_bottle_value = 33.0
|
||||
bottle_inter_distance = 32
|
||||
initial_bottle_pos = Vector2( -10, -20 )
|
||||
sprite1 = ExtResource( 14 )
|
||||
sprite2 = ExtResource( 15 )
|
||||
sprite3 = ExtResource( 16 )
|
||||
|
||||
[node name="Cowbells" type="Node2D" parent="Control" groups=[
|
||||
"cowbell_hud",
|
||||
]]
|
||||
|
||||
editor/display_folded = true
|
||||
transform/pos = Vector2( 3, 21 )
|
||||
script/script = ExtResource( 17 )
|
||||
|
||||
[node name="Counter" type="RichTextLabel" parent="Control/Cowbells"]
|
||||
|
||||
focus/ignore_mouse = false
|
||||
focus/stop_mouse = true
|
||||
size_flags/horizontal = 2
|
||||
size_flags/vertical = 2
|
||||
margin/left = 630.0
|
||||
margin/top = 30.0
|
||||
margin/right = 876.0
|
||||
margin/bottom = 81.0
|
||||
custom_fonts/normal_font = ExtResource( 18 )
|
||||
bbcode/enabled = true
|
||||
bbcode/bbcode = "0"
|
||||
visible_characters = -1
|
||||
percent_visible = 1.0
|
||||
|
||||
[node name="bonus_instancer" type="Node2D" parent="Control/Cowbells"]
|
||||
|
||||
transform/pos = Vector2( 642, 43 )
|
||||
|
||||
[node name="next_cowbell_timer" type="Timer" parent="Control/Cowbells"]
|
||||
|
||||
process_mode = 1
|
||||
wait_time = 0.6
|
||||
one_shot = true
|
||||
autostart = false
|
||||
|
||||
[node name="cold_down_timer" type="Timer" parent="Control/Cowbells"]
|
||||
|
||||
process_mode = 1
|
||||
wait_time = 0.005
|
||||
one_shot = false
|
||||
autostart = false
|
||||
|
||||
[node name="Sprite" type="Sprite" parent="Control/Cowbells"]
|
||||
|
||||
material/material = SubResource( 3 )
|
||||
transform/pos = Vector2( 586, 45 )
|
||||
transform/scale = Vector2( 3, 3 )
|
||||
texture = ExtResource( 19 )
|
||||
hframes = 3
|
||||
|
||||
[node name="Animation" type="AnimationPlayer" parent="Control/Cowbells/Sprite"]
|
||||
|
||||
playback/process_mode = 0
|
||||
playback/default_blend_time = 0.0
|
||||
root/root = NodePath("..")
|
||||
anims/cowbell_animation_one_shot = ExtResource( 20 )
|
||||
anims/cowbell_animations = ExtResource( 21 )
|
||||
playback/active = false
|
||||
playback/speed = 2.0
|
||||
blend_times = [ ]
|
||||
autoplay = ""
|
||||
|
||||
[node name="Back" parent="Control" instance=ExtResource( 22 )]
|
||||
|
||||
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/Back" instance=ExtResource( 23 )]
|
||||
|
||||
visibility/visible = false
|
||||
margin/left = -36.0
|
||||
margin/top = -34.0
|
||||
margin/right = 1244.0
|
||||
margin/bottom = 686.0
|
||||
|
||||
[node name="Control" parent="Control" instance=ExtResource( 24 )]
|
||||
|
||||
[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"]
|
||||
|
||||
[connection signal="pressed" from="Control/Buttons/Bttn_A" to="Control/Buttons" method="_on_Bttn_A_pressed"]
|
||||
|
||||
[connection signal="released" from="Control/Buttons/Bttn_A" to="Control/Buttons" method="_on_Bttn_A_released"]
|
||||
|
||||
[connection signal="pressed" from="Control/Buttons/Bttn_AS" to="Control/Buttons" method="_on_Bttn_AS_pressed"]
|
||||
|
||||
[connection signal="released" from="Control/Buttons/Bttn_AS" to="Control/Buttons" method="_on_Bttn_AS_released"]
|
||||
|
||||
[connection signal="pressed" from="Control/Buttons/Bttn_S" to="Control/Buttons" method="_on_Bttn_S_pressed"]
|
||||
|
||||
[connection signal="released" from="Control/Buttons/Bttn_S" to="Control/Buttons" method="_on_Bttn_S_released"]
|
||||
|
||||
[connection signal="pressed" from="Control/Buttons/Bttn_D" to="Control/Buttons" method="_on_Bttn_D_pressed"]
|
||||
|
||||
[connection signal="released" from="Control/Buttons/Bttn_D" to="Control/Buttons" method="_on_Bttn_D_released"]
|
||||
|
||||
[connection signal="pressed" from="Control/Buttons/Bttn_DR" to="Control/Buttons" method="_on_Bttn_DR_pressed"]
|
||||
|
||||
[connection signal="released" from="Control/Buttons/Bttn_DR" to="Control/Buttons" method="_on_Bttn_DR_released"]
|
||||
|
||||
[connection signal="pressed" from="Control/Buttons/Bttn_DL" to="Control/Buttons" method="_on_Bttn_DL_pressed"]
|
||||
|
||||
[connection signal="released" from="Control/Buttons/Bttn_DL" to="Control/Buttons" method="_on_Bttn_DL_released"]
|
||||
|
||||
[connection signal="pressed" from="Control/Buttons/Bttn_R" to="Control/Buttons" method="_on_Bttn_R_pressed"]
|
||||
|
||||
[connection signal="released" from="Control/Buttons/Bttn_R" to="Control/Buttons" method="_on_Bttn_R_released"]
|
||||
|
||||
[connection signal="pressed" from="Control/Buttons/Bttn_L" to="Control/Buttons" method="_on_Bttn_L_pressed"]
|
||||
|
||||
[connection signal="released" from="Control/Buttons/Bttn_L" to="Control/Buttons" method="_on_Bttn_L_released"]
|
||||
|
||||
[connection signal="timeout" from="Control/Cowbells/next_cowbell_timer" to="Control/Cowbells" method="_on_next_cowbell_timer_timeout"]
|
||||
|
||||
[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"]
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -2,9 +2,8 @@ extends Button
|
|||
|
||||
export(PackedScene) var scene
|
||||
|
||||
func _ready():
|
||||
connect("pressed", self, "_on_Button_pressed")
|
||||
set_process_input(true)
|
||||
func _ready():
|
||||
set_process_input(true)
|
||||
|
||||
func _on_Button_pressed():
|
||||
get_tree().set_pause(false)
|
||||
|
|
|
|||
|
|
@ -4,4 +4,6 @@ func _ready():
|
|||
grab_focus()
|
||||
|
||||
func _on_Button_pressed():
|
||||
get_parent().get_parent().queue_free()
|
||||
get_tree().change_scene("res://Scenes/Menu/level_selector.tscn")
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
extends Node2D
|
||||
|
||||
func _ready():
|
||||
print ("a")
|
||||
pass
|
||||
|
||||
func _on_reset_pressed():
|
||||
|
|
|
|||
|
|
@ -2,8 +2,8 @@ extends Node
|
|||
|
||||
const MENU_MUSIC = preload ("res://Music/dangerous_hills.ogg")
|
||||
|
||||
var base_price_heart = 1000
|
||||
var base_price_milk = 1000
|
||||
var base_price_heart = 500
|
||||
var base_price_milk = 500
|
||||
|
||||
var increment_price_heart = 2
|
||||
var increment_price_milk = 2
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
[ext_resource path="res://Scenes/Menu/main_menu.tscn" type="PackedScene" id=1]
|
||||
[ext_resource path="res://Fonts/pixelated_title.fnt" type="BitmapFont" id=2]
|
||||
|
||||
[sub_resource type="GDScript" id=2]
|
||||
[sub_resource type="GDScript" id=1]
|
||||
|
||||
script/source = "extends Control
|
||||
|
||||
|
|
@ -19,9 +19,8 @@ func show():
|
|||
|
||||
func hide():
|
||||
set_hidden(true)
|
||||
get_tree().set_pause(false)
|
||||
get_tree().set_pause(false)
|
||||
get_tree().get_nodes_in_group(\"player\")[0].reset_inputs()
|
||||
|
||||
|
||||
func _input(ev):
|
||||
if (ev.is_action_pressed(\"ui_cancel\")):
|
||||
|
|
@ -34,12 +33,16 @@ func _on_Resume_pressed():
|
|||
hide()
|
||||
|
||||
func _on_Reset_pressed():
|
||||
get_tree().get_nodes_in_group(\"level_selector\")[0].reset_level()
|
||||
get_tree().get_current_scene().queue_free()
|
||||
#get_tree().get_nodes_in_group(\"level_selector\")[0].reset_level()
|
||||
hide()
|
||||
|
||||
func _on_Exit_pressed():
|
||||
func _on_Exit_pressed():
|
||||
hide()
|
||||
get_tree().change_scene_to(scene)
|
||||
print(\"asdasdasd\")
|
||||
#get_tree().get_current_scene().queue_free()
|
||||
|
||||
"
|
||||
|
||||
[node name="in_game_menu" type="Control"]
|
||||
|
|
@ -53,7 +56,7 @@ margin/left = 0.0
|
|||
margin/top = 0.0
|
||||
margin/right = 1280.0
|
||||
margin/bottom = 720.0
|
||||
script/script = SubResource( 2 )
|
||||
script/script = SubResource( 1 )
|
||||
scene = ExtResource( 1 )
|
||||
|
||||
[node name="Panel" type="Panel" parent="."]
|
||||
|
|
|
|||
|
|
@ -2,6 +2,8 @@
|
|||
|
||||
name="Cow's Revenge"
|
||||
main_scene="res://Scenes/Menu/main_menu.tscn"
|
||||
crash_handler_message="Please include this when reporting the bug on https://github.com/godotengine/godot/issues"
|
||||
auto_accept_quit=true
|
||||
icon="res://Sprites/GUI/Buttons/btn_shoot.png"
|
||||
|
||||
[autoload]
|
||||
|
|
@ -52,11 +54,12 @@ fixed_fps=60
|
|||
|
||||
[physics_2d]
|
||||
|
||||
thread_model=2
|
||||
default_gravity=98
|
||||
thread_model=1
|
||||
|
||||
[rasterizer]
|
||||
|
||||
shadow_filter=0
|
||||
low_memory_2d_mode=true
|
||||
|
||||
[rasterizer.Android]
|
||||
|
|
@ -65,5 +68,5 @@ fp16_framebuffer=true
|
|||
|
||||
[render]
|
||||
|
||||
thread_model=2
|
||||
thread_model=1
|
||||
mipmap_policy=2
|
||||
|
|
|
|||
|
|
@ -60,5 +60,5 @@ func _on_Area2D_body_enter( body ):
|
|||
set_process_input(true)
|
||||
|
||||
func _on_Area2D_body_exit(body):
|
||||
if (body.is_in_group("player")):
|
||||
if (body != null and body.is_in_group("player")):
|
||||
set_process_input(false)
|
||||
Loading…
Add table
Add a link
Reference in a new issue