mirror of
https://github.com/Dariasteam/Cows-Revenge.git
synced 2026-01-23 02:15:17 +00:00
Proyecto organizado 2
This commit is contained in:
parent
534dfda7ee
commit
39ded3ace6
41 changed files with 166 additions and 488 deletions
|
|
@ -1,10 +0,0 @@
|
|||
extends Node2D
|
||||
# class member variables go here, for example:
|
||||
# var a = 2
|
||||
# var b = "textvar"
|
||||
|
||||
func _on_button_pressed():
|
||||
pritn("asd")
|
||||
|
||||
func _ready():
|
||||
get_node("Bttn_U").connect("pressed",self,"_on_button_pressed")
|
||||
1
Music/LICENSE
Normal file
1
Music/LICENSE
Normal file
|
|
@ -0,0 +1 @@
|
|||
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
|
||||
|
|
@ -1,8 +1,10 @@
|
|||
[gd_scene load_steps=4 format=1]
|
||||
|
||||
[ext_resource path="res://manzana.gd" type="Script" id=1]
|
||||
[ext_resource path="res://Scenes/Events/apple.gd" type="Script" id=1]
|
||||
[ext_resource path="res://Sprites/Charasets/manzana.png" type="Texture" id=2]
|
||||
|
||||
|
||||
|
||||
[sub_resource type="RectangleShape2D" id=1]
|
||||
|
||||
custom_solver_bias = 0.0
|
||||
38
Scenes/Events/death_line.tscn
Normal file
38
Scenes/Events/death_line.tscn
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
[gd_scene load_steps=3 format=1]
|
||||
|
||||
[ext_resource path="res://Scenes/Events/death_line.gd" type="Script" id=1]
|
||||
|
||||
[sub_resource type="LineShape2D" id=1]
|
||||
|
||||
custom_solver_bias = 0.0
|
||||
normal = Vector2( 0, -1 )
|
||||
d = 0.0
|
||||
|
||||
[node name="DeathLine" type="Area2D"]
|
||||
|
||||
editor/display_folded = true
|
||||
transform/pos = Vector2( 288, -192 )
|
||||
transform/scale = Vector2( 83, 1 )
|
||||
input/pickable = true
|
||||
shapes/0/shape = SubResource( 1 )
|
||||
shapes/0/transform = Matrix32( 0.798988, 0, 0, 1, 12.9332, -32 )
|
||||
shapes/0/trigger = false
|
||||
gravity_vec = Vector2( 0, 1 )
|
||||
gravity = 0.0
|
||||
linear_damp = 0.1
|
||||
angular_damp = 1.0
|
||||
collision/layers = 2
|
||||
collision/mask = 2
|
||||
script/script = ExtResource( 1 )
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
|
||||
transform/pos = Vector2( 12.9332, -32 )
|
||||
transform/scale = Vector2( 0.798988, 1 )
|
||||
shape = SubResource( 1 )
|
||||
trigger = false
|
||||
_update_shape_index = 0
|
||||
|
||||
[connection signal="body_enter" from="." to="." method="_on_DeathLine_body_enter"]
|
||||
|
||||
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
[gd_scene load_steps=22 format=1]
|
||||
|
||||
[ext_resource path="res://enemy_1.gd" type="Script" id=1]
|
||||
[ext_resource path="res://Scenes/Events/enemy_1.gd" type="Script" id=1]
|
||||
[ext_resource path="res://Sprites/Charasets/Enemy_1/enemy_walk1.png" type="Texture" id=2]
|
||||
[ext_resource path="res://Sprites/Charasets/Enemy_1/enemy_walk10.png" type="Texture" id=3]
|
||||
[ext_resource path="res://Sprites/Charasets/Enemy_1/enemy_walk2.png" type="Texture" id=4]
|
||||
|
|
@ -13,6 +13,8 @@
|
|||
[ext_resource path="res://Sprites/Charasets/Enemy_1/enemy_walk9.png" type="Texture" id=11]
|
||||
[ext_resource path="res://Sprites/Effects/sangre.png" type="Texture" id=12]
|
||||
|
||||
|
||||
|
||||
[sub_resource type="ConvexPolygonShape2D" id=1]
|
||||
|
||||
custom_solver_bias = 0.0
|
||||
|
|
@ -157,7 +159,7 @@ trigger = true
|
|||
transform/pos = Vector2( 3.8147e-06, 0 )
|
||||
frames = SubResource( 8 )
|
||||
animation = "walking"
|
||||
frame = 2
|
||||
frame = 8
|
||||
playing = true
|
||||
|
||||
[node name="hit_ray_particle" type="Particles2D" parent="."]
|
||||
|
|
@ -29,11 +29,11 @@ func _ready():
|
|||
yield(t, "timeout")
|
||||
end = true
|
||||
|
||||
func _on_RigidBody2D_body_enter( body ):
|
||||
if (end):
|
||||
destroy()
|
||||
elif (body.is_in_group("enemy")):
|
||||
func _on_RigidBody2D_body_enter( body ):
|
||||
if (body.is_in_group("enemy")):
|
||||
body.decrease_life(1)
|
||||
destroy()
|
||||
elif (end):
|
||||
destroy()
|
||||
|
||||
|
||||
|
|
@ -1,8 +1,9 @@
|
|||
[gd_scene load_steps=5 format=1]
|
||||
|
||||
[ext_resource path="res://bullet.gd" type="Script" id=1]
|
||||
[ext_resource path="res://Scenes/Events/milk_bullet.gd" type="Script" id=1]
|
||||
[ext_resource path="res://Sprites/Effects/leche.png" type="Texture" id=2]
|
||||
[ext_resource path="res://Splash.tscn" type="PackedScene" id=3]
|
||||
[ext_resource path="res://Scenes/Events/milk_splash.tscn" type="PackedScene" id=3]
|
||||
|
||||
|
||||
[sub_resource type="CircleShape2D" id=1]
|
||||
|
||||
32
Scenes/Events/milk_splash.tscn
Normal file
32
Scenes/Events/milk_splash.tscn
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
[gd_scene load_steps=2 format=1]
|
||||
|
||||
[ext_resource path="res://Sprites/Effects/leche.png" type="Texture" id=1]
|
||||
|
||||
[node name="Splash" type="Particles2D"]
|
||||
|
||||
config/amount = 30
|
||||
config/lifetime = 0.2
|
||||
config/preprocess = 1282.8
|
||||
config/emit_timeout = 0.2
|
||||
config/emitting = false
|
||||
config/process_mode = 0
|
||||
config/local_space = false
|
||||
config/texture = ExtResource( 1 )
|
||||
params/direction = 0.0
|
||||
params/spread = 180.0
|
||||
params/linear_velocity = 200.0
|
||||
params/spin_velocity = 0.0
|
||||
params/orbit_velocity = 0.0
|
||||
params/gravity_direction = 0.0
|
||||
params/gravity_strength = 9.8
|
||||
params/radial_accel = 0.0
|
||||
params/tangential_accel = 0.0
|
||||
params/damping = 0.0
|
||||
params/initial_angle = 0.0
|
||||
params/initial_size = 1.0
|
||||
params/final_size = 0.0
|
||||
params/hue_variation = 0.0
|
||||
params/anim_speed_scale = 1.0
|
||||
params/anim_initial_pos = 0.0
|
||||
|
||||
|
||||
|
|
@ -1,8 +1,8 @@
|
|||
[gd_scene load_steps=27 format=1]
|
||||
|
||||
[ext_resource path="res://player.gd" type="Script" id=1]
|
||||
[ext_resource path="res://shooter.gd" type="Script" id=2]
|
||||
[ext_resource path="res://ray_milk.tscn" type="PackedScene" id=3]
|
||||
[ext_resource path="res://Scenes/Events/player.gd" type="Script" id=1]
|
||||
[ext_resource path="res://Scenes/Events/shooter.gd" type="Script" id=2]
|
||||
[ext_resource path="res://Scenes/Events/ray_milk.tscn" type="PackedScene" id=3]
|
||||
[ext_resource path="res://Sprites/Charasets/Player/walk/player_walk1.png" type="Texture" id=4]
|
||||
[ext_resource path="res://Sprites/Charasets/Player/walk/player_walk2.png" type="Texture" id=5]
|
||||
[ext_resource path="res://Sprites/Charasets/Player/walk/player_walk3.png" type="Texture" id=6]
|
||||
|
|
@ -24,6 +24,9 @@
|
|||
[ext_resource path="res://Sprites/Charasets/Player/idle/player_idle3.png" type="Texture" id=22]
|
||||
[ext_resource path="res://Sprites/Charasets/Player/idle/player_idle4.png" type="Texture" id=23]
|
||||
|
||||
|
||||
|
||||
|
||||
[sub_resource type="ConvexPolygonShape2D" id=1]
|
||||
|
||||
custom_solver_bias = 0.0
|
||||
|
|
@ -1,10 +1,11 @@
|
|||
[gd_scene load_steps=6 format=1]
|
||||
|
||||
[ext_resource path="res://rayo_leche.gd" type="Script" id=1]
|
||||
[ext_resource path="res://Splash.tscn" type="PackedScene" id=2]
|
||||
[ext_resource path="res://ray_milk_end.tres.gd" type="Script" id=3]
|
||||
[ext_resource path="res://Scenes/Events/milk_ray.gd" type="Script" id=1]
|
||||
[ext_resource path="res://Scenes/Events/milk_splash.tscn" type="PackedScene" id=2]
|
||||
[ext_resource path="res://Scenes/Events/ray_milk_end.tres.gd" type="Script" id=3]
|
||||
[ext_resource path="res://Sprites/Effects/milk_ray.png" type="Texture" id=4]
|
||||
|
||||
|
||||
[sub_resource type="RectangleShape2D" id=1]
|
||||
|
||||
custom_solver_bias = 0.0
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
extends Node2D
|
||||
|
||||
const BULLET = preload("res://bullet.tscn")
|
||||
const BULLET = preload("res://Scenes/Events/milk_bullet.tscn")
|
||||
export var SHOOT_CADENCE = 0.001
|
||||
|
||||
signal change_milk_bottle
|
||||
File diff suppressed because one or more lines are too long
|
|
@ -8,102 +8,102 @@
|
|||
[ext_resource path="res://Sprites/Tilesets/dirt_single.png" type="Texture" id=6]
|
||||
[ext_resource path="res://Sprites/Tilesets/dirt_alone.png" type="Texture" id=7]
|
||||
|
||||
[sub_resource type="ConvexPolygonShape2D" id=24]
|
||||
[sub_resource type="ConvexPolygonShape2D" id=1]
|
||||
|
||||
custom_solver_bias = 0.0
|
||||
points = Vector2Array( -21.2298, -23.8952, -16.2848, -26.453, -9.37893, -26.9645, 32, -28, 32, 32, -27, 32, -26.601, -15.7957, -24.4696, -20.3144 )
|
||||
|
||||
[sub_resource type="ConvexPolygonShape2D" id=25]
|
||||
[sub_resource type="ConvexPolygonShape2D" id=2]
|
||||
|
||||
custom_solver_bias = 0.0
|
||||
points = Vector2Array( -32, -28, 32, -28, 32, 32, -32, 32 )
|
||||
|
||||
[sub_resource type="ConvexPolygonShape2D" id=26]
|
||||
[sub_resource type="ConvexPolygonShape2D" id=3]
|
||||
|
||||
custom_solver_bias = 0.0
|
||||
points = Vector2Array( -32, -28, 13.8965, -27.135, 19.9498, -24.2363, 24.2127, -19.4618, 25.4063, -15.7105, 26, 32, -32, 32 )
|
||||
|
||||
[sub_resource type="ConvexPolygonShape2D" id=27]
|
||||
[sub_resource type="ConvexPolygonShape2D" id=4]
|
||||
|
||||
custom_solver_bias = 0.0
|
||||
points = Vector2Array( 32, -32, 32, 32, -28, 32, -27.4817, -32.0967 )
|
||||
|
||||
[sub_resource type="ConvexPolygonShape2D" id=21]
|
||||
[sub_resource type="ConvexPolygonShape2D" id=5]
|
||||
|
||||
custom_solver_bias = 0.0
|
||||
points = Vector2Array( 32, -32, 32, 32, -32, 32, -32, -32 )
|
||||
|
||||
[sub_resource type="ConvexPolygonShape2D" id=22]
|
||||
[sub_resource type="ConvexPolygonShape2D" id=6]
|
||||
|
||||
custom_solver_bias = 0.0
|
||||
points = Vector2Array( 27, -32, 27, 32, -32, 32, -32, -32 )
|
||||
|
||||
[sub_resource type="ConvexPolygonShape2D" id=23]
|
||||
[sub_resource type="ConvexPolygonShape2D" id=7]
|
||||
|
||||
custom_solver_bias = 0.0
|
||||
points = Vector2Array( 32.0174, -32.3287, 32.2493, 27.9823, -9.96833, 27.1704, -21.5666, 24.9667, -24.4662, 22.763, -27, 17, -26.9018, -31.7488 )
|
||||
|
||||
[sub_resource type="ConvexPolygonShape2D" id=4]
|
||||
[sub_resource type="ConvexPolygonShape2D" id=8]
|
||||
|
||||
custom_solver_bias = 0.0
|
||||
points = Vector2Array( 32, -32, 32, 28, -32, 28, -32, -32 )
|
||||
|
||||
[sub_resource type="ConvexPolygonShape2D" id=5]
|
||||
[sub_resource type="ConvexPolygonShape2D" id=9]
|
||||
|
||||
custom_solver_bias = 0.0
|
||||
points = Vector2Array( 27, -32, 27, 15, 25, 21, 21.115, 25.3147, 11.2565, 26.8224, -32, 28, -32, -32 )
|
||||
|
||||
[sub_resource type="ConvexPolygonShape2D" id=6]
|
||||
[sub_resource type="ConvexPolygonShape2D" id=10]
|
||||
|
||||
custom_solver_bias = 0.0
|
||||
points = Vector2Array( 32, -32, 32, 32, -32, 32, -31.8891, -27.3414, -29, -30 )
|
||||
|
||||
[sub_resource type="ConvexPolygonShape2D" id=7]
|
||||
[sub_resource type="ConvexPolygonShape2D" id=11]
|
||||
|
||||
custom_solver_bias = 0.0
|
||||
points = Vector2Array( -27, -32, 32, -32, -29, -30 )
|
||||
|
||||
[sub_resource type="ConvexPolygonShape2D" id=8]
|
||||
[sub_resource type="ConvexPolygonShape2D" id=12]
|
||||
|
||||
custom_solver_bias = 0.0
|
||||
points = Vector2Array( -31, -32, 33, -32, 33, 32, -27, 32, -29, 30, -31, 28 )
|
||||
|
||||
[sub_resource type="ConvexPolygonShape2D" id=9]
|
||||
[sub_resource type="ConvexPolygonShape2D" id=13]
|
||||
|
||||
custom_solver_bias = 0.0
|
||||
points = Vector2Array( -32, -32, 32, -32, 32, 28, 30, 30, 28, 32, -32, 32 )
|
||||
|
||||
[sub_resource type="ConvexPolygonShape2D" id=10]
|
||||
[sub_resource type="ConvexPolygonShape2D" id=14]
|
||||
|
||||
custom_solver_bias = 0.0
|
||||
points = Vector2Array( -32, -32, 28, -32, 32, -28, 32.0174, 32.0416, -32, 32 )
|
||||
|
||||
[sub_resource type="ConvexPolygonShape2D" id=11]
|
||||
[sub_resource type="ConvexPolygonShape2D" id=15]
|
||||
|
||||
custom_solver_bias = 0.0
|
||||
points = Vector2Array( -13, -27, 13, -27, 20.1871, -23.398, 26, -16, 26, 18, 22, 24, 12, 27, -11.8241, 27.0544, -22.7264, 24.6188, -27, 19, -26.9018, -15.1633, -21.7986, -22.5862, -18, -25 )
|
||||
|
||||
[sub_resource type="ConvexPolygonShape2D" id=12]
|
||||
[sub_resource type="ConvexPolygonShape2D" id=16]
|
||||
|
||||
custom_solver_bias = 0.0
|
||||
points = Vector2Array( -27, 32, 32, -28, 32.0174, 31.9257 )
|
||||
|
||||
[sub_resource type="ConvexPolygonShape2D" id=13]
|
||||
[sub_resource type="ConvexPolygonShape2D" id=17]
|
||||
|
||||
custom_solver_bias = 0.0
|
||||
points = Vector2Array( -32, -28, -29, -25, 28, 32, -32, 32 )
|
||||
|
||||
[sub_resource type="ConvexPolygonShape2D" id=14]
|
||||
[sub_resource type="ConvexPolygonShape2D" id=18]
|
||||
|
||||
custom_solver_bias = 0.0
|
||||
points = Vector2Array( -32, -32, 27, -32, -32, 28 )
|
||||
|
||||
[sub_resource type="ConvexPolygonShape2D" id=15]
|
||||
[sub_resource type="ConvexPolygonShape2D" id=19]
|
||||
|
||||
custom_solver_bias = 0.0
|
||||
points = Vector2Array( 32, -32, 32, 28, -28, -32 )
|
||||
|
||||
[sub_resource type="ConvexPolygonShape2D" id=16]
|
||||
[sub_resource type="ConvexPolygonShape2D" id=20]
|
||||
|
||||
custom_solver_bias = 0.0
|
||||
points = Vector2Array( 16, 16, 22, 22, 22, 26, 18, 32, -20, 32, -23, 27, -23, 23, -18, 16 )
|
||||
|
|
@ -123,7 +123,7 @@ region_rect = Rect2( 0, 0, 64, 64 )
|
|||
[node name="StaticBody2D" type="StaticBody2D" parent="Arriba_Izquierda1"]
|
||||
|
||||
input/pickable = false
|
||||
shapes/0/shape = SubResource( 24 )
|
||||
shapes/0/shape = SubResource( 1 )
|
||||
shapes/0/transform = Matrix32( 1, 0, 0, 1, 0, 0 )
|
||||
shapes/0/trigger = false
|
||||
collision/layers = 2
|
||||
|
|
@ -151,7 +151,7 @@ region_rect = Rect2( 64, 0, 64, 64 )
|
|||
|
||||
transform/pos = Vector2( -0.0852547, -0.0852585 )
|
||||
input/pickable = false
|
||||
shapes/0/shape = SubResource( 25 )
|
||||
shapes/0/shape = SubResource( 2 )
|
||||
shapes/0/transform = Matrix32( 1, 0, 0, 1, 0.0852547, 0.0852585 )
|
||||
shapes/0/trigger = false
|
||||
collision/layers = 2
|
||||
|
|
@ -182,7 +182,7 @@ region_rect = Rect2( 128, 0, 64, 64 )
|
|||
|
||||
transform/pos = Vector2( -0.0852547, -0.0852585 )
|
||||
input/pickable = false
|
||||
shapes/0/shape = SubResource( 26 )
|
||||
shapes/0/shape = SubResource( 3 )
|
||||
shapes/0/transform = Matrix32( 1, 0, 0, 1, 0.0852547, 0.0852585 )
|
||||
shapes/0/trigger = false
|
||||
collision/layers = 2
|
||||
|
|
@ -213,7 +213,7 @@ region_rect = Rect2( 0, 64, 64, 64 )
|
|||
|
||||
transform/pos = Vector2( -0.0852547, -0.0852585 )
|
||||
input/pickable = false
|
||||
shapes/0/shape = SubResource( 27 )
|
||||
shapes/0/shape = SubResource( 4 )
|
||||
shapes/0/transform = Matrix32( 1, 0, 0, 1, 0.0852547, 0.0852585 )
|
||||
shapes/0/trigger = false
|
||||
collision/layers = 2
|
||||
|
|
@ -244,7 +244,7 @@ region_rect = Rect2( 64, 64, 64, 64 )
|
|||
|
||||
transform/pos = Vector2( -0.0852547, -0.0852585 )
|
||||
input/pickable = false
|
||||
shapes/0/shape = SubResource( 21 )
|
||||
shapes/0/shape = SubResource( 5 )
|
||||
shapes/0/transform = Matrix32( 1, 0, 0, 1, 0.0852547, 0.0852585 )
|
||||
shapes/0/trigger = false
|
||||
collision/layers = 2
|
||||
|
|
@ -275,7 +275,7 @@ region_rect = Rect2( 128, 64, 64, 64 )
|
|||
|
||||
transform/pos = Vector2( -0.0852547, -0.0852585 )
|
||||
input/pickable = false
|
||||
shapes/0/shape = SubResource( 22 )
|
||||
shapes/0/shape = SubResource( 6 )
|
||||
shapes/0/transform = Matrix32( 1, 0, 0, 1, 0.0852547, 0.0852585 )
|
||||
shapes/0/trigger = false
|
||||
collision/layers = 2
|
||||
|
|
@ -306,7 +306,7 @@ region_rect = Rect2( 0, 128, 64, 64 )
|
|||
|
||||
transform/pos = Vector2( -0.0852547, -0.0852585 )
|
||||
input/pickable = false
|
||||
shapes/0/shape = SubResource( 23 )
|
||||
shapes/0/shape = SubResource( 7 )
|
||||
shapes/0/transform = Matrix32( 1, 0, 0, 1, 0.0852547, 0.0852585 )
|
||||
shapes/0/trigger = false
|
||||
collision/layers = 2
|
||||
|
|
@ -337,7 +337,7 @@ region_rect = Rect2( 64, 128, 64, 64 )
|
|||
|
||||
transform/pos = Vector2( -0.0852547, -0.0852585 )
|
||||
input/pickable = false
|
||||
shapes/0/shape = SubResource( 4 )
|
||||
shapes/0/shape = SubResource( 8 )
|
||||
shapes/0/transform = Matrix32( 1, 0, 0, 1, 0.0852547, 0.0852585 )
|
||||
shapes/0/trigger = false
|
||||
collision/layers = 2
|
||||
|
|
@ -368,7 +368,7 @@ region_rect = Rect2( 128, 128, 64, 64 )
|
|||
|
||||
transform/pos = Vector2( -0.0852547, -0.0852585 )
|
||||
input/pickable = false
|
||||
shapes/0/shape = SubResource( 5 )
|
||||
shapes/0/shape = SubResource( 9 )
|
||||
shapes/0/transform = Matrix32( 1, 0, 0, 1, 0.0852547, 0.0852585 )
|
||||
shapes/0/trigger = false
|
||||
collision/layers = 2
|
||||
|
|
@ -400,10 +400,10 @@ region_rect = Rect2( 256, 256, 64, 64 )
|
|||
visibility/visible = false
|
||||
transform/pos = Vector2( -0.0852547, -0.0852585 )
|
||||
input/pickable = false
|
||||
shapes/0/shape = SubResource( 6 )
|
||||
shapes/0/shape = SubResource( 10 )
|
||||
shapes/0/transform = Matrix32( 1, 0, 0, 1, 0.0852547, 0.0852585 )
|
||||
shapes/0/trigger = false
|
||||
shapes/1/shape = SubResource( 7 )
|
||||
shapes/1/shape = SubResource( 11 )
|
||||
shapes/1/transform = Matrix32( 1, 0, 0, 1, 0.0852547, 0.0852585 )
|
||||
shapes/1/trigger = false
|
||||
collision/layers = 2
|
||||
|
|
@ -436,7 +436,7 @@ region_rect = Rect2( 256, 192, 64, 64 )
|
|||
visibility/visible = false
|
||||
transform/pos = Vector2( -0.0852547, -0.0852585 )
|
||||
input/pickable = false
|
||||
shapes/0/shape = SubResource( 8 )
|
||||
shapes/0/shape = SubResource( 12 )
|
||||
shapes/0/transform = Matrix32( 1, 0, 0, 1, -0.914745, 0.0852585 )
|
||||
shapes/0/trigger = false
|
||||
collision/layers = 2
|
||||
|
|
@ -468,7 +468,7 @@ region_rect = Rect2( 192, 192, 64, 64 )
|
|||
|
||||
transform/pos = Vector2( -0.0852547, -0.0852585 )
|
||||
input/pickable = false
|
||||
shapes/0/shape = SubResource( 9 )
|
||||
shapes/0/shape = SubResource( 13 )
|
||||
shapes/0/transform = Matrix32( 1, 0, 0, 1, 0.0852547, 0.0852585 )
|
||||
shapes/0/trigger = false
|
||||
collision/layers = 2
|
||||
|
|
@ -498,7 +498,7 @@ region_rect = Rect2( 192, 256, 64, 64 )
|
|||
|
||||
transform/pos = Vector2( -0.0852547, -0.0852585 )
|
||||
input/pickable = false
|
||||
shapes/0/shape = SubResource( 10 )
|
||||
shapes/0/shape = SubResource( 14 )
|
||||
shapes/0/transform = Matrix32( 1, 0, 0, 1, 0.0852547, 0.0852585 )
|
||||
shapes/0/trigger = false
|
||||
collision/layers = 2
|
||||
|
|
@ -529,7 +529,7 @@ region_rect = Rect2( 192, 64, 64, 64 )
|
|||
|
||||
transform/pos = Vector2( -0.0852547, -0.0852585 )
|
||||
input/pickable = false
|
||||
shapes/0/shape = SubResource( 11 )
|
||||
shapes/0/shape = SubResource( 15 )
|
||||
shapes/0/transform = Matrix32( 1, 0, 0, 1, 0.0852547, 0.0852585 )
|
||||
shapes/0/trigger = false
|
||||
collision/layers = 2
|
||||
|
|
@ -560,7 +560,7 @@ region_rect = Rect2( 0, 192, 64, 64 )
|
|||
|
||||
transform/pos = Vector2( -0.0852547, -0.0852585 )
|
||||
input/pickable = false
|
||||
shapes/0/shape = SubResource( 12 )
|
||||
shapes/0/shape = SubResource( 16 )
|
||||
shapes/0/transform = Matrix32( 1, 0, 0, 1, 0.0852547, 0.0852585 )
|
||||
shapes/0/trigger = false
|
||||
collision/layers = 2
|
||||
|
|
@ -590,7 +590,7 @@ region_rect = Rect2( 64, 192, 64, 64 )
|
|||
|
||||
transform/pos = Vector2( -0.0852547, -0.0852585 )
|
||||
input/pickable = false
|
||||
shapes/0/shape = SubResource( 13 )
|
||||
shapes/0/shape = SubResource( 17 )
|
||||
shapes/0/transform = Matrix32( 1, 0, 0, 1, 0.0852547, 0.0852585 )
|
||||
shapes/0/trigger = false
|
||||
collision/layers = 2
|
||||
|
|
@ -621,7 +621,7 @@ region_rect = Rect2( 64, 256, 64, 64 )
|
|||
|
||||
transform/pos = Vector2( -0.0852547, -0.0852585 )
|
||||
input/pickable = false
|
||||
shapes/0/shape = SubResource( 14 )
|
||||
shapes/0/shape = SubResource( 18 )
|
||||
shapes/0/transform = Matrix32( 1, 0, 0, 1, 0.0852547, 0.0852585 )
|
||||
shapes/0/trigger = false
|
||||
collision/layers = 2
|
||||
|
|
@ -652,7 +652,7 @@ region_rect = Rect2( 0, 256, 64, 64 )
|
|||
|
||||
transform/pos = Vector2( -0.0852547, -0.0852585 )
|
||||
input/pickable = false
|
||||
shapes/0/shape = SubResource( 15 )
|
||||
shapes/0/shape = SubResource( 19 )
|
||||
shapes/0/transform = Matrix32( 1, 0, 0, 1, 0.0852547, 0.0852585 )
|
||||
shapes/0/trigger = false
|
||||
collision/layers = 2
|
||||
|
|
@ -683,7 +683,7 @@ region_rect = Rect2( 0, 256, 64, 64 )
|
|||
|
||||
transform/pos = Vector2( -0.0852547, -0.0852585 )
|
||||
input/pickable = false
|
||||
shapes/0/shape = SubResource( 16 )
|
||||
shapes/0/shape = SubResource( 20 )
|
||||
shapes/0/transform = Matrix32( 1, 0, 0, 1, 0.0852547, 0.0852585 )
|
||||
shapes/0/trigger = false
|
||||
collision/layers = 2
|
||||
|
|
@ -1,19 +1,21 @@
|
|||
[gd_scene load_steps=16 format=1]
|
||||
|
||||
[ext_resource path="res://top.tscn" type="PackedScene" id=1]
|
||||
[ext_resource path="res://life_hud.gd" type="Script" id=2]
|
||||
[ext_resource path="res://corazon2.tex" type="Texture" id=3]
|
||||
[ext_resource path="res://buttons_hud.gd" type="Script" id=4]
|
||||
[ext_resource path="res://Scenes/Maps/map_1.tscn" type="PackedScene" id=1]
|
||||
[ext_resource path="res://Scenes/Menu/life_hud.gd" type="Script" id=2]
|
||||
[ext_resource path="res://Sprites/GUI/HUD/heart_full.png" type="Texture" id=3]
|
||||
[ext_resource path="res://Scenes/Menu/buttons_hud.gd" type="Script" id=4]
|
||||
[ext_resource path="res://Sprites/GUI/Buttons/bttn_arrow.png" type="Texture" id=5]
|
||||
[ext_resource path="res://Sprites/GUI/Buttons/bttn_jump.png" type="Texture" id=6]
|
||||
[ext_resource path="res://Sprites/GUI/Buttons/bttn.png" type="Texture" id=7]
|
||||
[ext_resource path="res://Sprites/GUI/Buttons/btn_shoot.png" type="Texture" id=8]
|
||||
[ext_resource path="res://milk_botte_hud.gd" type="Script" id=9]
|
||||
[ext_resource path="res://Scenes/Menu/milk_botte_hud.gd" type="Script" id=9]
|
||||
[ext_resource path="res://Sprites/GUI/HUD/milbar_outter_2.png" type="Texture" id=10]
|
||||
[ext_resource path="res://Sprites/GUI/HUD/milkbar_outter_3.png" type="Texture" id=11]
|
||||
[ext_resource path="res://Sprites/GUI/HUD/milkbar_outter_1.png" type="Texture" id=12]
|
||||
[ext_resource path="res://Sprites/GUI/HUD/milkbar_inner.png" type="Texture" id=13]
|
||||
|
||||
|
||||
|
||||
[sub_resource type="Environment" id=1]
|
||||
|
||||
ambient_light/enabled = false
|
||||
|
|
@ -79,7 +81,6 @@ margin/bottom = 768.0
|
|||
|
||||
[node name="Viewport" type="Viewport" parent="Control"]
|
||||
|
||||
editor/display_folded = true
|
||||
rect = Rect2( 0, 0, 1280, 768 )
|
||||
own_world = false
|
||||
world = SubResource( 2 )
|
||||
|
|
@ -95,7 +96,7 @@ audio_listener/enable_3d = false
|
|||
physics/object_picking = false
|
||||
gui/disable_input = false
|
||||
|
||||
[node name="Node2D" parent="Control/Viewport" instance=ExtResource( 1 )]
|
||||
[node name="Level" parent="Control/Viewport" instance=ExtResource( 1 )]
|
||||
|
||||
[node name="Life" type="Node2D" parent="Control" groups=[
|
||||
"life_hud",
|
||||
5
Scenes/Menu/bttn_play.gd
Normal file
5
Scenes/Menu/bttn_play.gd
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
extends Button
|
||||
|
||||
func _on_Button_pressed():
|
||||
global.level = "res://Scenes/Menu/HUD.tscn"
|
||||
get_tree().change_scene("res://Scenes/Menu/HUD.tscn")
|
||||
|
|
@ -1,6 +1,7 @@
|
|||
[gd_scene load_steps=2 format=1]
|
||||
|
||||
[ext_resource path="res://game_over.gd" type="Script" id=1]
|
||||
[ext_resource path="res://Scenes/Menu/game_over.gd" type="Script" id=1]
|
||||
|
||||
|
||||
[node name="Node2D" type="Node2D"]
|
||||
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
[gd_scene load_steps=2 format=1]
|
||||
|
||||
[ext_resource path="res://bttn_jugar.gd" type="Script" id=1]
|
||||
[ext_resource path="res://Scenes/Menu/bttn_play.gd" type="Script" id=1]
|
||||
|
||||
[node name="Node2D" type="Node2D"]
|
||||
|
||||
|
|
@ -28,4 +28,6 @@ text = "Jugar"
|
|||
flat = false
|
||||
script/script = ExtResource( 1 )
|
||||
|
||||
[connection signal="pressed" from="Button" to="Button" method="_on_Button_pressed"]
|
||||
|
||||
|
||||
1
Sprites/LICENSE
Normal file
1
Sprites/LICENSE
Normal file
|
|
@ -0,0 +1 @@
|
|||
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
extends Button
|
||||
|
||||
func on_Bttn_press():
|
||||
global.level = "res://All.tscn"
|
||||
get_tree().change_scene("res://All.tscn")
|
||||
|
||||
func _ready():
|
||||
connect("pressed", self, "on_Bttn_press")
|
||||
|
||||
BIN
corazon2.tex
BIN
corazon2.tex
Binary file not shown.
|
|
@ -1,12 +1,12 @@
|
|||
[application]
|
||||
|
||||
name="Cow's Revenge"
|
||||
main_scene="res://menu.tscn"
|
||||
main_scene="res://Scenes/Menu/main_menu.tscn"
|
||||
icon="res://Sprites/GUI/Buttons/btn_shoot.png"
|
||||
|
||||
[autoload]
|
||||
|
||||
global="*res://global.gd"
|
||||
global="*res://Scenes/Menu/global.gd"
|
||||
|
||||
[debug]
|
||||
|
||||
|
|
|
|||
91
map_1.tscn
91
map_1.tscn
|
|
@ -1,91 +0,0 @@
|
|||
[gd_scene load_steps=6 format=1]
|
||||
|
||||
[ext_resource path="res://tileset.xml" type="TileSet" id=1]
|
||||
[ext_resource path="res://player.tscn" type="PackedScene" id=2]
|
||||
[ext_resource path="res://enemy_1.tscn" type="PackedScene" id=3]
|
||||
[ext_resource path="res://tile.png" type="Texture" id=4]
|
||||
|
||||
[sub_resource type="CanvasItemMaterial" id=1]
|
||||
|
||||
shader/shading_mode = 0
|
||||
|
||||
[node name="Level" type="Node2D"]
|
||||
|
||||
[node name="TileMap" type="TileMap" parent="."]
|
||||
|
||||
mode = 0
|
||||
tile_set = ExtResource( 1 )
|
||||
cell/size = Vector2( 64, 64 )
|
||||
cell/quadrant_size = 32
|
||||
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 = 1
|
||||
collision/mask = 1
|
||||
occluder/light_mask = 1
|
||||
tile_data = IntArray( -2031636, 1, -1966074, 1610612737, -1966073, 1610612737, -1966072, 1610612737, -1966071, 1610612737, -1966070, 1610612737, -1835025, 1, -1835007, 1610612737, -1835006, 1610612737, -1835005, 1610612737, -1835004, 1610612737, -1703949, 1, -1638420, 1, -1638413, 1, -1638405, 1610612740, -1638404, 1610612737, -1638403, 1610612737, -1638402, 1610612737, -1572877, 1, -1572870, 1610612740, -1507341, 1, -1507335, 1610612740, -1441812, 1, -1441811, 1, -1441810, 1, -1441809, 1, -1441808, 1, -1441807, 1, -1441806, 1, -1441805, 1, -1441800, 1610612740, -1376269, 1, -1376265, 1610612740, -1441788, 1, -1441784, 1, -1441781, 1, -1441778, 1, -1441775, 1, -1441773, 1, -1441771, 1, -1441765, 1, -1310745, 1, -1310733, 1, -1245189, 1, -1310719, 1, -1310690, 1, -1179676, 1, -1179670, 1, -1179669, 1, -1179668, 1, -1179667, 1, -1179666, 1, -1179665, 1, -1179664, 1, -1179663, 1, -1179662, 1, -1179661, 1, -1179660, 1, -1179659, 1, -1179658, 1, -1179657, 1, -1179656, 1, -1179655, 1, -1179654, 1, -1179653, 1, -1179652, 1, -1179651, 1, -1179650, 1, -1179649, 1, -1245184, 1, -1245183, 1, -1179615, 1, -1048607, 1, -1048596, 0, -1048595, 0, -1048594, 0, -1048593, 0, -1048592, 0, -1048591, 0, -1048590, 0, -1048589, 0, -1048588, 0, -1048587, 0, -1048586, 0, -1048585, 0, -1048584, 0, -1048583, 0, -1048582, 0, -983022, 1, -983018, 1, -983014, 1, -983010, 1, -983009, 1, -983001, 1, -852001, 1, -852000, 1, -851999, 1, -851998, 1, -851997, 1, -851996, 1, -851995, 1, -917466, 1, -917465, 1, -786459, 1, -786458, 1, -851930, 1, -720922, 1, -720921, 1, -720920, 1, -786395, 1, -786394, 1, -655384, 1, -655383, 1, -655382, 1, -655381, 1, -655380, 1, -655379, 1, -720859, 1, -589843, 1, -589842, 1, -655324, 1, -655323, 1, -524306, 1, -524305, 1, -524304, 1, -524303, 1, -524302, 1, -524301, 1, -524300, 1, -524299, 1, -524298, 1, -524297, 1, -524296, 1, -589790, 1, -589789, 1, -589788, 1, -458759, 1, -458758, 1, -458757, 1, -458756, 1, -458755, 1, -458754, 1, -458753, 1, -524288, 1, -524287, 1, -524286, 1, -524285, 1, -524284, 1, -524283, 1, -524282, 1, -524281, 1, -524254, 1, -458745, 1, -458744, 1, -458743, 1, -458742, 1, -458741, 1, -458740, 1, -458739, 1, -458738, 1, -458737, 1, -458736, 1, -458735, 1, -458734, 1, -458733, 1, -458732, 1, -458731, 1, -458730, 1, -458729, 1, -458728, 1, -458727, 1, -458726, 1, -458725, 1, -458724, 1, -458723, 1, -458722, 1, -458721, 1, -458720, 1, -458719, 1, 65535, 0, 0, 1, 589829, 1610612737, 589830, 1610612737, 589831, 1610612737, 589832, 1610612737, 589833, 1610612737, 589834, 1610612737, 589836, 1610612737, 589837, 1610612737, 589838, 1610612737, 589839, 1610612737, 589840, 1610612737, 589841, 1610612737, 589842, 1610612737, 589843, 1610612737, 589844, 1610612737, 589845, 1610612737, 589846, 1610612737, 589847, 1610612737, 589848, 1610612737, 589849, 1610612737 )
|
||||
|
||||
[node name="Player" parent="." groups=[
|
||||
"player",
|
||||
] instance=ExtResource( 2 )]
|
||||
|
||||
editor/display_folded = true
|
||||
JUMP_SPEED = 500
|
||||
|
||||
[node name="Enemy" parent="." instance=ExtResource( 3 )]
|
||||
|
||||
transform/pos = Vector2( -128, -896 )
|
||||
|
||||
[node name="Enemy1" parent="." instance=ExtResource( 3 )]
|
||||
|
||||
transform/pos = Vector2( -64, -896 )
|
||||
|
||||
[node name="Enemy2" parent="." instance=ExtResource( 3 )]
|
||||
|
||||
transform/pos = Vector2( 0, -960 )
|
||||
|
||||
[node name="Enemy3" parent="." instance=ExtResource( 3 )]
|
||||
|
||||
transform/pos = Vector2( -480, -928 )
|
||||
|
||||
[node name="CanvasLayer" type="CanvasLayer" parent="."]
|
||||
|
||||
layer = 1
|
||||
offset = Vector2( 0, 0 )
|
||||
rotation = 0.0
|
||||
scale = Vector2( 1, 1 )
|
||||
|
||||
[node name="ParallaxBackground" type="ParallaxBackground" parent="CanvasLayer"]
|
||||
|
||||
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( 0, 0 )
|
||||
scroll/limit_end = Vector2( 0, 0 )
|
||||
scroll/ignore_camera_zoom = true
|
||||
|
||||
[node name="ParallaxLayer" type="ParallaxLayer" parent="CanvasLayer/ParallaxBackground"]
|
||||
|
||||
visibility/visible = false
|
||||
visibility/behind_parent = true
|
||||
material/material = SubResource( 1 )
|
||||
z/z = -1
|
||||
motion/scale = Vector2( 1.2, 0 )
|
||||
motion/offset = Vector2( 0, 0 )
|
||||
motion/mirroring = Vector2( 0, 1 )
|
||||
|
||||
[node name="Sprite" type="Sprite" parent="CanvasLayer/ParallaxBackground/ParallaxLayer"]
|
||||
|
||||
visibility/visible = false
|
||||
transform/scale = Vector2( 5, 5 )
|
||||
texture = ExtResource( 4 )
|
||||
|
||||
|
||||
|
|
@ -1,16 +0,0 @@
|
|||
extends Area2D
|
||||
|
||||
# class member variables go here, for example:
|
||||
# var a = 2
|
||||
# var b = "textvar"
|
||||
|
||||
signal damage
|
||||
|
||||
func _ready():
|
||||
print ("as")
|
||||
connect("damage", get_tree().get_root().get_node("Node2D"), "on_damage")
|
||||
|
||||
func _on_Area2D_body_enter( body ):
|
||||
print ("asdasd")
|
||||
if(body.is_in_group("player")):
|
||||
emit_signal("damage", 3)
|
||||
|
|
@ -1,29 +0,0 @@
|
|||
[gd_scene load_steps=3 format=1]
|
||||
|
||||
[ext_resource path="res://tile.png" type="Texture" id=1]
|
||||
[ext_resource path="res://map_damage_limits.gd" type="Script" id=2]
|
||||
|
||||
[node name="Muerte" type="Sprite"]
|
||||
|
||||
visibility/self_opacity = 0.0
|
||||
transform/pos = Vector2( 32, 32 )
|
||||
transform/scale = Vector2( 4, 4 )
|
||||
texture = ExtResource( 1 )
|
||||
region = true
|
||||
region_rect = Rect2( 128, 256, 32, 32 )
|
||||
|
||||
[node name="Area2D" type="Area2D" parent="."]
|
||||
|
||||
transform/scale = Vector2( 0.5, 0.5 )
|
||||
input/pickable = true
|
||||
gravity_vec = Vector2( 0, 1 )
|
||||
gravity = 98.0
|
||||
linear_damp = 0.1
|
||||
angular_damp = 1.0
|
||||
collision/layers = 0
|
||||
collision/mask = 0
|
||||
script/script = ExtResource( 2 )
|
||||
|
||||
[connection signal="body_enter" from="Area2D" to="Area2D" method="_on_Area2D_body_enter"]
|
||||
|
||||
|
||||
|
|
@ -1,146 +0,0 @@
|
|||
[gd_scene load_steps=5 format=1]
|
||||
|
||||
[ext_resource path="res://tile full.tex" type="Texture" id=1]
|
||||
[ext_resource path="res://tileset.xml" type="TileSet" id=2]
|
||||
[ext_resource path="res://icon.png" type="Texture" id=3]
|
||||
|
||||
[sub_resource type="GDScript" id=1]
|
||||
|
||||
script/source = "extends Control
|
||||
|
||||
|
||||
const GRAVITY = Vector2(0, 98)
|
||||
|
||||
onready var sprite = get_node(\"hero\")
|
||||
|
||||
var TileMap_data # pixel data of our TileMap
|
||||
var TileMap_rect # useful area in our image
|
||||
|
||||
var collision_pixel = Vector2(2, 32) # collision pixel offset in sprite
|
||||
|
||||
var explosion = preload(\"res://explosion.png\")
|
||||
var explosion_data
|
||||
var explosion_size
|
||||
|
||||
|
||||
func _ready():
|
||||
TileMap_data = get_node(\"TileMap\").get_texture().get_data()
|
||||
TileMap_rect = TileMap_data.get_used_rect()
|
||||
|
||||
explosion_data = explosion.get_data()
|
||||
explosion_size = explosion.get_size()
|
||||
|
||||
set_process_input(true)
|
||||
|
||||
set_process(true)
|
||||
|
||||
func pixel_in_TileMap(pixel):
|
||||
return TileMap_rect.has_point(pixel)
|
||||
|
||||
func _input(event):
|
||||
var data_modified = false
|
||||
if(event.type == InputEvent.MOUSE_BUTTON):
|
||||
var mouse_pos = get_global_mouse_pos() - get_node(\"TileMap\").get_pos() - (explosion_size / 2)
|
||||
for x in range(0, explosion_size.width):
|
||||
for y in range(0, explosion_size.height):
|
||||
if explosion_data.get_pixel(x, y).a > 0 and pixel_in_TileMap(Vector2(mouse_pos.x + x, mouse_pos.y + y)):
|
||||
TileMap_data.put_pixel(mouse_pos.x + x, mouse_pos.y + y, Color(0, 0, 0, 0))
|
||||
data_modified = true
|
||||
if data_modified:
|
||||
get_node(\"TileMap\").get_texture().set_data(TileMap_data)
|
||||
|
||||
func _process(delta):
|
||||
var fall = false
|
||||
var counter = 0
|
||||
var end = 5
|
||||
var aux_collision_pixel = collision_pixel
|
||||
for i in range(0, end):
|
||||
aux_collision_pixel.x += i * 2
|
||||
var pixel_pos = sprite.get_pos() + aux_collision_pixel - get_node(\"TileMap\").get_pos() # normalize pixel position for texture checking
|
||||
var c = Color(0, 0, 0, 0) # settup transparent color
|
||||
if pixel_in_TileMap(pixel_pos):
|
||||
c = TileMap_data.get_pixel(pixel_pos.x, pixel_pos.y) # if our collision pixel on TileMap, check it's value
|
||||
if (c.a == 0):
|
||||
counter += 1
|
||||
|
||||
if (counter == end):
|
||||
sprite.set_global_pos(sprite.get_global_pos() + GRAVITY * delta) # if it's transparent, keep on falling
|
||||
"
|
||||
|
||||
[node name="Control" 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 = 40.0
|
||||
margin/bottom = 40.0
|
||||
script/script = SubResource( 1 )
|
||||
|
||||
[node name="Camera2D" type="Camera2D" parent="."]
|
||||
|
||||
transform/pos = Vector2( 342.851, 239.154 )
|
||||
anchor_mode = 1
|
||||
rotating = false
|
||||
current = false
|
||||
zoom = Vector2( 1, 1 )
|
||||
limit/left = -10000000
|
||||
limit/top = -10000000
|
||||
limit/right = 10000000
|
||||
limit/bottom = 10000000
|
||||
drag_margin/h_enabled = true
|
||||
drag_margin/v_enabled = true
|
||||
smoothing/enable = false
|
||||
smoothing/speed = 5.0
|
||||
drag_margin/left = 0.2
|
||||
drag_margin/top = 0.2
|
||||
drag_margin/right = 0.2
|
||||
drag_margin/bottom = 0.2
|
||||
|
||||
[node name="background" type="TextureFrame" parent="."]
|
||||
|
||||
visibility/visible = false
|
||||
anchor/left = 3
|
||||
anchor/top = 3
|
||||
anchor/right = 3
|
||||
anchor/bottom = 3
|
||||
focus/ignore_mouse = true
|
||||
focus/stop_mouse = true
|
||||
size_flags/horizontal = 2
|
||||
size_flags/vertical = 2
|
||||
margin/left = -407.0
|
||||
margin/top = -178.0
|
||||
margin/right = -727.0
|
||||
margin/bottom = -498.0
|
||||
texture = ExtResource( 1 )
|
||||
stretch_mode = 4
|
||||
|
||||
[node name="TileMap" type="TileMap" parent="."]
|
||||
|
||||
transform/pos = Vector2( 491.372, 52.4613 )
|
||||
mode = 0
|
||||
tile_set = ExtResource( 2 )
|
||||
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 = 1
|
||||
collision/mask = 1
|
||||
occluder/light_mask = 1
|
||||
tile_data = IntArray( 262142, 4, 262143, 4, 196608, 4, 196609, 4, 196610, 4, 196611, 4, 196612, 4 )
|
||||
|
||||
[node name="hero" type="Sprite" parent="."]
|
||||
|
||||
visibility/self_opacity = 0.5
|
||||
transform/pos = Vector2( 491.372, 52.4613 )
|
||||
texture = ExtResource( 3 )
|
||||
centered = false
|
||||
|
||||
|
||||
22
ray.gd
22
ray.gd
|
|
@ -1,22 +0,0 @@
|
|||
extends RayCast2D
|
||||
|
||||
# class member variables go here, for example:
|
||||
# var a = 2
|
||||
# var b = "textvar"
|
||||
|
||||
|
||||
func _ready():
|
||||
set_process_input(true)
|
||||
pass
|
||||
|
||||
func _fixed_process(delta):
|
||||
if (is_colliding()):
|
||||
print ("Colliding")
|
||||
else:
|
||||
print ("Not colliding")
|
||||
|
||||
func _input(event):
|
||||
print ("asd")
|
||||
if event.type == InputEvent.MOUSE_MOTION:
|
||||
print ("asd")
|
||||
|
||||
60
try.tscn
60
try.tscn
|
|
@ -1,60 +0,0 @@
|
|||
[gd_scene load_steps=2 format=1]
|
||||
|
||||
[ext_resource path="res://tile.png" type="Texture" id=1]
|
||||
|
||||
[node name="CanvasLayer" type="CanvasLayer"]
|
||||
|
||||
layer = 1
|
||||
offset = Vector2( 0, 0 )
|
||||
rotation = 0.0
|
||||
scale = Vector2( 1, 1 )
|
||||
|
||||
[node name="ParallaxBackground" type="ParallaxBackground" parent="."]
|
||||
|
||||
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( 0, 0 )
|
||||
scroll/limit_end = Vector2( 0, 0 )
|
||||
scroll/ignore_camera_zoom = true
|
||||
|
||||
[node name="ParallaxLayer" type="ParallaxLayer" parent="ParallaxBackground"]
|
||||
|
||||
transform/pos = Vector2( 72, 48 )
|
||||
transform/scale = Vector2( 1.75, 1.5 )
|
||||
motion/scale = Vector2( 1, 1 )
|
||||
motion/offset = Vector2( 0, 0 )
|
||||
motion/mirroring = Vector2( 0, 0 )
|
||||
|
||||
[node name="Sprite" type="Sprite" parent="ParallaxBackground/ParallaxLayer"]
|
||||
|
||||
transform/pos = Vector2( 256, 256 )
|
||||
transform/scale = Vector2( 100, 100 )
|
||||
texture = ExtResource( 1 )
|
||||
|
||||
[node name="Camera2D" type="Camera2D" parent="."]
|
||||
|
||||
transform/pos = Vector2( 512, 416 )
|
||||
transform/scale = Vector2( 16.375, 9.25 )
|
||||
anchor_mode = 1
|
||||
rotating = false
|
||||
current = false
|
||||
zoom = Vector2( 1, 1 )
|
||||
limit/left = -10000000
|
||||
limit/top = -10000000
|
||||
limit/right = 10000000
|
||||
limit/bottom = 10000000
|
||||
drag_margin/h_enabled = true
|
||||
drag_margin/v_enabled = true
|
||||
smoothing/enable = false
|
||||
smoothing/speed = 5.0
|
||||
drag_margin/left = 0.2
|
||||
drag_margin/top = 0.2
|
||||
drag_margin/right = 0.2
|
||||
drag_margin/bottom = 0.2
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue