Skip to content

Commit

Permalink
khatam tata bye bye
Browse files Browse the repository at this point in the history
  • Loading branch information
angad-k committed Dec 27, 2021
1 parent d52ba89 commit c53d459
Show file tree
Hide file tree
Showing 14 changed files with 169 additions and 14 deletions.
Binary file added assets/images/Bga1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
35 changes: 35 additions & 0 deletions assets/images/Bga1.png.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
[remap]

importer="texture"
type="StreamTexture"
path="res://.import/Bga1.png-3c7bfa09208d511177e8463b91f1c5f5.stex"
metadata={
"vram_texture": false
}

[deps]

source_file="res://assets/images/Bga1.png"
dest_files=[ "res://.import/Bga1.png-3c7bfa09208d511177e8463b91f1c5f5.stex" ]

[params]

compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
process/normal_map_invert_y=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0
Binary file added assets/images/Bga6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
35 changes: 35 additions & 0 deletions assets/images/Bga6.png.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
[remap]

importer="texture"
type="StreamTexture"
path="res://.import/Bga6.png-b0c45b66a4523d9ca223c29f7c4b81bd.stex"
metadata={
"vram_texture": false
}

[deps]

source_file="res://assets/images/Bga6.png"
dest_files=[ "res://.import/Bga6.png-b0c45b66a4523d9ca223c29f7c4b81bd.stex" ]

[params]

compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
process/normal_map_invert_y=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0
26 changes: 26 additions & 0 deletions set_scenes/forest_set.gd
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ extends Node2D
var stump = preload("res://utility_scenes/obstacles/stump.tscn")
var thorns = preload("res://utility_scenes/obstacles/thorns.tscn")
var logs = preload("res://utility_scenes/obstacles/logs.tscn")

var tree1 = preload("res://utility_scenes/trees/tree1.tscn")
var tree2 = preload("res://utility_scenes/trees/tree2.tscn")
var tree3 = preload("res://utility_scenes/trees/tree3.tscn")
var tree4 = preload("res://utility_scenes/trees/tree4.tscn")

# Called when the node enters the scene tree for the first time.
func _ready():
for sp in $obstacle_spawn_points.get_children():
Expand All @@ -26,6 +32,26 @@ func _ready():
s.position = sp.position
$obstacle_spawn_points.add_child(s)
pass # Replace with function body.
for sp in $tree_spawn_points.get_children():
if(randf()<0.6):
var randval = randf()
if(randval < 0.25):
var s = tree1.instance()
s.position = sp.position
$tree_spawn_points.add_child(s)
elif(randval < 0.5):
var s = tree2.instance()
s.position = sp.position
$tree_spawn_points.add_child(s)
elif(randval < 0.75):
var s = tree3.instance()
s.position = sp.position
$tree_spawn_points.add_child(s)
else:
var s = tree4.instance()
s.position = sp.position
$tree_spawn_points.add_child(s)
pass


# Called every frame. 'delta' is the elapsed time since the previous frame.
Expand Down
14 changes: 14 additions & 0 deletions set_scenes/forest_set.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,20 @@ position = Vector2( 505, -20 )
[node name="spawn_point11" type="Node2D" parent="obstacle_spawn_points"]
position = Vector2( 823, -18 )

[node name="tree_spawn_points" type="Node2D" parent="."]

[node name="spawn_point" type="Node2D" parent="tree_spawn_points"]
position = Vector2( 89, -1 )

[node name="spawn_point2" type="Node2D" parent="tree_spawn_points"]
position = Vector2( 353, 1 )

[node name="spawn_point3" type="Node2D" parent="tree_spawn_points"]
position = Vector2( 665, 0 )

[node name="spawn_point4" type="Node2D" parent="tree_spawn_points"]
position = Vector2( 906, -2 )

[node name="endpointer" parent="." instance=ExtResource( 2 )]
position = Vector2( 1024, 0 )

Expand Down
16 changes: 8 additions & 8 deletions set_scenes/swing_set.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ position = Vector2( 2923, -2 )
position = Vector2( 630, -171 )

[node name="Sprite" type="Sprite" parent="swings/swing"]
position = Vector2( 3.05176e-05, -550 )
position = Vector2( 0.199982, -552.65 )
scale = Vector2( 1.7, 1.7 )
texture = ExtResource( 3 )

Expand All @@ -46,7 +46,7 @@ shape = SubResource( 2 )
position = Vector2( 938, -172 )

[node name="Sprite" type="Sprite" parent="swings/swing2"]
position = Vector2( 2, -551 )
position = Vector2( 2.19995, -553.65 )
scale = Vector2( 1.7, 1.7 )
texture = ExtResource( 3 )

Expand All @@ -58,7 +58,7 @@ shape = SubResource( 2 )
position = Vector2( 1246, -173 )

[node name="Sprite" type="Sprite" parent="swings/swing3"]
position = Vector2( 2.00006, -550 )
position = Vector2( 2.20001, -552.65 )
scale = Vector2( 1.7, 1.7 )
texture = ExtResource( 3 )

Expand All @@ -70,7 +70,7 @@ shape = SubResource( 2 )
position = Vector2( 1552, -173 )

[node name="Sprite" type="Sprite" parent="swings/swing4"]
position = Vector2( 6.10352e-05, -551 )
position = Vector2( 0.200012, -553.65 )
scale = Vector2( 1.7, 1.7 )
texture = ExtResource( 3 )

Expand All @@ -82,7 +82,7 @@ shape = SubResource( 2 )
position = Vector2( 1857, -173 )

[node name="Sprite" type="Sprite" parent="swings/swing5"]
position = Vector2( 3, -550 )
position = Vector2( 3.19995, -552.65 )
scale = Vector2( 1.7, 1.7 )
texture = ExtResource( 3 )

Expand All @@ -94,7 +94,7 @@ shape = SubResource( 2 )
position = Vector2( 2162, -169 )

[node name="Sprite" type="Sprite" parent="swings/swing6"]
position = Vector2( 1, -551 )
position = Vector2( 1.19995, -553.65 )
scale = Vector2( 1.7, 1.7 )
texture = ExtResource( 3 )

Expand All @@ -106,7 +106,7 @@ shape = SubResource( 2 )
position = Vector2( 2456, -165 )

[node name="Sprite" type="Sprite" parent="swings/swing7"]
position = Vector2( 1, -551 )
position = Vector2( 1.19995, -553.65 )
scale = Vector2( 1.7, 1.7 )
texture = ExtResource( 3 )

Expand All @@ -118,7 +118,7 @@ shape = SubResource( 2 )
position = Vector2( 2769, -159 )

[node name="Sprite" type="Sprite" parent="swings/swing8"]
position = Vector2( 0, -550 )
position = Vector2( 0.199951, -552.65 )
scale = Vector2( 1.7, 1.7 )
texture = ExtResource( 3 )

Expand Down
2 changes: 1 addition & 1 deletion utility_scenes/down_ramp.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
[node name="StaticBody2D" type="StaticBody2D"]

[node name="Sprite" type="Sprite" parent="."]
position = Vector2( 231.5, -84 )
position = Vector2( 231, -88 )
scale = Vector2( 1.71923, 1.70526 )
texture = ExtResource( 1 )

Expand Down
6 changes: 3 additions & 3 deletions utility_scenes/player.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
[ext_resource path="res://utility_scenes/animationtree.tres" type="AnimationNodeStateMachine" id=6]

[sub_resource type="CapsuleShape2D" id=1]
radius = 16.0
height = 52.0
radius = 9.0
height = 58.0

[sub_resource type="CircleShape2D" id=2]
radius = 608.938
Expand Down Expand Up @@ -115,7 +115,7 @@ modulate = Color( 0.0666667, 0.0862745, 0.545098, 1 )
script = ExtResource( 1 )

[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
visible = false
position = Vector2( 0, 1 )
shape = SubResource( 1 )

[node name="RayCast2D" type="RayCast2D" parent="."]
Expand Down
11 changes: 11 additions & 0 deletions utility_scenes/trees/tree1.tscn
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[gd_scene load_steps=2 format=2]

[ext_resource path="res://assets/images/Bga3.png" type="Texture" id=1]

[node name="Node2D" type="Node2D"]

[node name="Sprite" type="Sprite" parent="."]
position = Vector2( 4, -117 )
scale = Vector2( 0.125, 0.125 )
z_index = -1
texture = ExtResource( 1 )
11 changes: 11 additions & 0 deletions utility_scenes/trees/tree2.tscn
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[gd_scene load_steps=2 format=2]

[ext_resource path="res://assets/images/Bga5.png" type="Texture" id=1]

[node name="Node2D" type="Node2D"]

[node name="Sprite" type="Sprite" parent="."]
position = Vector2( 4, -117 )
scale = Vector2( 0.125, 0.125 )
z_index = -1
texture = ExtResource( 1 )
12 changes: 12 additions & 0 deletions utility_scenes/trees/tree3.tscn
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[gd_scene load_steps=2 format=2]

[ext_resource path="res://assets/images/Bga4.png" type="Texture" id=1]

[node name="Node2D" type="Node2D"]

[node name="Sprite" type="Sprite" parent="."]
modulate = Color( 1, 1, 1, 0.74902 )
position = Vector2( 4, -117 )
scale = Vector2( 0.125, 0.125 )
z_index = -1
texture = ExtResource( 1 )
12 changes: 12 additions & 0 deletions utility_scenes/trees/tree4.tscn
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[gd_scene load_steps=2 format=2]

[ext_resource path="res://assets/images/Bga6.png" type="Texture" id=1]

[node name="Node2D" type="Node2D"]

[node name="Sprite" type="Sprite" parent="."]
modulate = Color( 1, 1, 1, 0.74902 )
position = Vector2( 7, -95 )
scale = Vector2( 0.15, 0.15 )
z_index = -1
texture = ExtResource( 1 )
3 changes: 1 addition & 2 deletions utility_scenes/up_ramp.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@
[node name="StaticBody2D" type="StaticBody2D"]

[node name="Sprite" type="Sprite" parent="."]
position = Vector2( 233, -84 )
position = Vector2( 233, -87 )
scale = Vector2( 1.77692, 1.78947 )
texture = ExtResource( 1 )

[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="."]
visible = false
polygon = PoolVector2Array( 0, 0, 24, -9, 78, -26, 112, -37, 146, -48, 173, -59, 203, -72, 228, -85, 254, -100, 275, -110, 287, -116, 318, -130, 346, -142, 375, -155, 383, -158, 392, -161, 402, -163, 432, -167, 445, -168, 460, -168, 461, -167, 462, -165, 462, -161, 443, -135, 401, -14, 402, -5, 395, -1 )

0 comments on commit c53d459

Please sign in to comment.