The beginning of public history
This commit is contained in:
		
							
								
								
									
										30
									
								
								Nodes/Animations/SlashAnimation.tscn
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										30
									
								
								Nodes/Animations/SlashAnimation.tscn
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,30 @@
 | 
			
		||||
[gd_scene load_steps=8 format=2]
 | 
			
		||||
 | 
			
		||||
[ext_resource path="res://Art/slash_effect2.png" type="Texture" id=1]
 | 
			
		||||
[ext_resource path="res://Art/slash_effect3.png" type="Texture" id=2]
 | 
			
		||||
[ext_resource path="res://Art/slash_effect4.png" type="Texture" id=3]
 | 
			
		||||
[ext_resource path="res://Art/slash_effect5.png" type="Texture" id=4]
 | 
			
		||||
[ext_resource path="res://Art/slash_effect1.png" type="Texture" id=5]
 | 
			
		||||
[ext_resource path="res://Scripts/destroy_after_animation.gd" type="Script" id=6]
 | 
			
		||||
 | 
			
		||||
[sub_resource type="SpriteFrames" id=1]
 | 
			
		||||
animations = [ {
 | 
			
		||||
"frames": [ ExtResource( 1 ), ExtResource( 2 ), ExtResource( 3 ), ExtResource( 4 ) ],
 | 
			
		||||
"loop": true,
 | 
			
		||||
"name": "destroy",
 | 
			
		||||
"speed": 100.0
 | 
			
		||||
}, {
 | 
			
		||||
"frames": [ ExtResource( 5 ) ],
 | 
			
		||||
"loop": true,
 | 
			
		||||
"name": "spawn",
 | 
			
		||||
"speed": 5.0
 | 
			
		||||
} ]
 | 
			
		||||
 | 
			
		||||
[node name="SlashAnimation" type="Node2D"]
 | 
			
		||||
 | 
			
		||||
[node name="AnimatedSprite" type="AnimatedSprite" parent="."]
 | 
			
		||||
frames = SubResource( 1 )
 | 
			
		||||
animation = "destroy"
 | 
			
		||||
frame = 2
 | 
			
		||||
playing = true
 | 
			
		||||
script = ExtResource( 6 )
 | 
			
		||||
							
								
								
									
										42
									
								
								Nodes/Dev/Test Zone.tscn
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										42
									
								
								Nodes/Dev/Test Zone.tscn
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,42 @@
 | 
			
		||||
[gd_scene load_steps=6 format=2]
 | 
			
		||||
 | 
			
		||||
[ext_resource path="res://Nodes/Player.tscn" type="PackedScene" id=1]
 | 
			
		||||
[ext_resource path="res://Nodes/Tiles.tres" type="TileSet" id=2]
 | 
			
		||||
[ext_resource path="res://Nodes/Exit.tscn" type="PackedScene" id=3]
 | 
			
		||||
[ext_resource path="res://Nodes/Enemies/Basic.tscn" type="PackedScene" id=4]
 | 
			
		||||
 | 
			
		||||
[sub_resource type="GDScript" id=1]
 | 
			
		||||
script/source = "extends Node2D
 | 
			
		||||
 | 
			
		||||
# Declare member variables here. Examples:
 | 
			
		||||
# var a = 2
 | 
			
		||||
# var b = \"text\"
 | 
			
		||||
 | 
			
		||||
# Called when the node enters the scene tree for the first time.
 | 
			
		||||
func _ready():
 | 
			
		||||
	$Player/Camera2D.current = true
 | 
			
		||||
 | 
			
		||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
 | 
			
		||||
#func _process(delta):
 | 
			
		||||
#	pass
 | 
			
		||||
"
 | 
			
		||||
 | 
			
		||||
[node name="World" type="Node2D"]
 | 
			
		||||
script = SubResource( 1 )
 | 
			
		||||
 | 
			
		||||
[node name="Player" parent="." instance=ExtResource( 1 )]
 | 
			
		||||
 | 
			
		||||
[node name="TileMap" type="TileMap" parent="."]
 | 
			
		||||
tile_set = ExtResource( 2 )
 | 
			
		||||
cell_size = Vector2( 16, 16 )
 | 
			
		||||
format = 1
 | 
			
		||||
tile_data = PoolIntArray( 49, 0, 0, 65585, 0, 0, 131072, 0, 0, 131121, 0, 0, 131122, 0, 0, 196608, 0, 0, 196657, 0, 0, 196658, 0, 0, 262144, 0, 0, 262145, 0, 0, 262193, 0, 0, 262194, 0, 0, 327680, 0, 0, 327681, 0, 0, 327729, 0, 0, 327730, 0, 0, 393216, 0, 0, 393217, 0, 0, 393265, 0, 0, 393266, 0, 0, 458752, 0, 0, 458753, 0, 0, 458778, 1, 0, 458779, 1, 0, 458780, 1, 0, 458781, 1, 0, 458782, 1, 0, 458801, 0, 0, 458802, 0, 0, 524288, 0, 0, 524289, 0, 0, 524337, 0, 0, 524338, 0, 0, 655359, 0, 0, 589824, 0, 0, 589873, 0, 0, 589874, 0, 0, 655360, 0, 0, 655410, 0, 0, 720896, 0, 0, 720919, 0, 0, 720920, 0, 0, 720921, 0, 0, 720922, 0, 0, 720923, 0, 0, 720924, 0, 0, 720925, 0, 0, 720926, 0, 0, 720927, 0, 0, 720928, 0, 0, 720929, 0, 0, 720946, 0, 0, 786432, 0, 0, 786436, 0, 0, 786451, 0, 0, 786452, 0, 0, 786453, 0, 0, 786454, 0, 0, 786455, 0, 0, 786456, 0, 0, 786457, 0, 0, 786458, 0, 0, 786459, 0, 0, 786460, 0, 0, 786461, 0, 0, 786462, 0, 0, 786463, 0, 0, 786464, 0, 0, 786465, 0, 0, 786466, 0, 0, 786467, 0, 0, 786468, 0, 0, 786469, 0, 0, 786470, 0, 0, 786471, 0, 0, 786472, 0, 0, 786473, 0, 0, 786474, 0, 0, 786475, 0, 0, 786476, 0, 0, 786477, 0, 0, 786478, 0, 0, 786479, 0, 0, 786480, 0, 0, 786481, 0, 0, 786482, 0, 0, 851968, 0, 0, 851969, 0, 0, 851970, 0, 0, 851971, 0, 0, 851972, 0, 0, 851973, 0, 0, 851974, 0, 0, 851975, 0, 0, 851976, 0, 0, 851977, 0, 0, 851978, 0, 0, 851979, 0, 0, 851980, 0, 0, 851981, 0, 0, 851982, 0, 0, 851983, 0, 0, 851984, 0, 0, 851985, 0, 0, 851986, 0, 0, 851987, 0, 0, 851988, 0, 0, 851989, 0, 0, 851990, 0, 0, 851991, 0, 0, 851992, 0, 0, 851993, 0, 0, 851994, 0, 0, 851995, 0, 0, 851996, 0, 0, 851997, 0, 0, 851998, 0, 0, 851999, 0, 0, 852000, 0, 0, 852001, 0, 0, 852002, 0, 0, 852003, 0, 0, 852004, 0, 0, 852005, 0, 0, 852006, 0, 0, 852007, 0, 0, 852008, 0, 0, 852009, 0, 0, 852010, 0, 0, 852011, 0, 0, 852012, 0, 0, 852013, 0, 0, 852014, 0, 0, 852015, 0, 0, 852016, 0, 0, 852017, 0, 0, 852018, 0, 0, 917504, 0, 0, 917505, 0, 0, 917506, 0, 0, 917507, 0, 0, 917508, 0, 0, 917509, 0, 0, 917510, 0, 0, 917511, 0, 0, 917512, 0, 0, 917513, 0, 0, 917514, 0, 0, 917515, 0, 0, 917516, 0, 0, 917517, 0, 0, 917518, 0, 0, 917519, 0, 0, 917520, 0, 0, 917521, 0, 0, 917522, 0, 0, 917523, 0, 0, 917524, 0, 0, 917525, 0, 0, 917526, 0, 0, 917527, 0, 0, 917528, 0, 0, 917529, 0, 0, 917530, 0, 0, 917531, 0, 0, 917532, 0, 0, 917533, 0, 0, 917534, 0, 0, 917535, 0, 0, 917536, 0, 0, 917537, 0, 0, 917538, 0, 0, 917539, 0, 0, 917540, 0, 0, 917541, 0, 0, 917542, 0, 0, 917543, 0, 0, 917544, 0, 0, 917545, 0, 0, 917546, 0, 0, 917547, 0, 0, 917548, 0, 0, 917549, 0, 0, 917550, 0, 0, 917551, 0, 0, 917552, 0, 0, 917553, 0, 0, 983054, 0, 0, 983055, 0, 0, 983056, 0, 0, 983057, 0, 0, 983058, 0, 0, 983059, 0, 0, 983060, 0, 0, 983061, 0, 0, 983062, 0, 0, 983063, 0, 0, 983064, 0, 0, 983065, 0, 0, 983066, 0, 0, 983067, 0, 0, 983068, 0, 0, 983069, 0, 0, 983070, 0, 0, 983071, 0, 0, 983072, 0, 0, 983073, 0, 0, 983074, 0, 0, 983075, 0, 0, 983076, 0, 0, 983077, 0, 0, 983078, 0, 0, 983079, 0, 0, 983080, 0, 0, 983081, 0, 0, 983082, 0, 0, 983083, 0, 0, 983084, 0, 0, 983085, 0, 0, 983086, 0, 0, 983087, 0, 0, 983088, 0, 0, 1048615, 0, 0, 1048616, 0, 0, 1048617, 0, 0, 1048618, 0, 0, 1048619, 0, 0 )
 | 
			
		||||
 | 
			
		||||
[node name="Exit" parent="." instance=ExtResource( 3 )]
 | 
			
		||||
position = Vector2( 733.415, 183.644 )
 | 
			
		||||
 | 
			
		||||
[node name="CanvasModulate" type="CanvasModulate" parent="."]
 | 
			
		||||
color = Color( 0.713726, 0.713726, 0.713726, 1 )
 | 
			
		||||
 | 
			
		||||
[node name="Basic Enemy" parent="." instance=ExtResource( 4 )]
 | 
			
		||||
position = Vector2( 388.203, 157.958 )
 | 
			
		||||
							
								
								
									
										157
									
								
								Nodes/Enemies/Basic.tscn
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										157
									
								
								Nodes/Enemies/Basic.tscn
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,157 @@
 | 
			
		||||
[gd_scene load_steps=11 format=2]
 | 
			
		||||
 | 
			
		||||
[ext_resource path="res://Scripts/BaddieManager.gd" type="Script" id=1]
 | 
			
		||||
[ext_resource path="res://Art/Enemies/basic_enemy3.png" type="Texture" id=2]
 | 
			
		||||
[ext_resource path="res://Art/Enemies/basic_enemy1.png" type="Texture" id=3]
 | 
			
		||||
[ext_resource path="res://Art/Enemies/basic_enemy2.png" type="Texture" id=4]
 | 
			
		||||
[ext_resource path="res://Art/Enemies/basic_enemy4.png" type="Texture" id=5]
 | 
			
		||||
[ext_resource path="res://Art/light.png" type="Texture" id=6]
 | 
			
		||||
 | 
			
		||||
[sub_resource type="GDScript" id=1]
 | 
			
		||||
script/source = "extends KinematicBody2D
 | 
			
		||||
 | 
			
		||||
const UP = Vector2(0, -1)
 | 
			
		||||
const BASE_GRAVITY = 20
 | 
			
		||||
 | 
			
		||||
export var active_distance = 32
 | 
			
		||||
export var angry_distance = 100
 | 
			
		||||
 | 
			
		||||
export var speed = 25
 | 
			
		||||
 | 
			
		||||
export var attack_speed = 1
 | 
			
		||||
 | 
			
		||||
var angry = false
 | 
			
		||||
 | 
			
		||||
var knockback = 0
 | 
			
		||||
var player
 | 
			
		||||
 | 
			
		||||
const UPDATE_ANGRY_TIME = 0.25
 | 
			
		||||
 | 
			
		||||
var motion = Vector2(0, 0)
 | 
			
		||||
var TIMER
 | 
			
		||||
 | 
			
		||||
func _ready():
 | 
			
		||||
	$AnimatedSprite.play(\"default\")
 | 
			
		||||
	$Area2D.connect(\"body_entered\", self, \"collision_method\")
 | 
			
		||||
	var alarmRoot = get_parent().get_parent()
 | 
			
		||||
	if alarmRoot.has_node(\"BaddieAlarm\"):
 | 
			
		||||
		for node in alarmRoot.get_children():
 | 
			
		||||
			if node.name == \"BaddieAlarm\":
 | 
			
		||||
				node.connect(\"timeout\", self, \"update_angry\")
 | 
			
		||||
				TIMER = node
 | 
			
		||||
				break
 | 
			
		||||
	else:
 | 
			
		||||
		var node = Timer.new()
 | 
			
		||||
		node.name = \"BaddieAlarm\"
 | 
			
		||||
		node.connect(\"timeout\", self, \"update_angry\")
 | 
			
		||||
		alarmRoot.add_child(node)
 | 
			
		||||
		node.start(UPDATE_ANGRY_TIME)
 | 
			
		||||
		TIMER = node
 | 
			
		||||
	
 | 
			
		||||
func collision_method(body):
 | 
			
		||||
	if body.has_method(\"deal_damage\"):
 | 
			
		||||
		body.deal_damage()
 | 
			
		||||
		knockback += 100
 | 
			
		||||
 | 
			
		||||
func take_damage(dmg):
 | 
			
		||||
	knockback += 75 * dmg
 | 
			
		||||
	get_parent().take_damage(dmg)
 | 
			
		||||
 | 
			
		||||
func update_angry():
 | 
			
		||||
	if angry && global_position.distance_to(player.global_position) > angry_distance:
 | 
			
		||||
		angry = false
 | 
			
		||||
	elif global_position.distance_to(player.global_position) < active_distance:
 | 
			
		||||
		angry = true
 | 
			
		||||
	if(TIMER.wait_time <= 0):
 | 
			
		||||
		TIMER.start(UPDATE_ANGRY_TIME)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
func _physics_process(delta):
 | 
			
		||||
	#Implement the force of gravity!
 | 
			
		||||
	motion.y += BASE_GRAVITY
 | 
			
		||||
 | 
			
		||||
	if is_on_floor():
 | 
			
		||||
		motion.y = 0
 | 
			
		||||
		
 | 
			
		||||
	if knockback > 0:
 | 
			
		||||
		motion.y -= knockback/2
 | 
			
		||||
		if(player.global_position.x > global_position.x):
 | 
			
		||||
			motion.x -= knockback
 | 
			
		||||
		else:
 | 
			
		||||
			motion.x += knockback
 | 
			
		||||
		knockback -= 30
 | 
			
		||||
	else:
 | 
			
		||||
		if !player:
 | 
			
		||||
			player = get_node(\"/root/World/Player\")
 | 
			
		||||
		else:
 | 
			
		||||
 | 
			
		||||
				
 | 
			
		||||
			if angry:
 | 
			
		||||
				angry = true
 | 
			
		||||
				if($AnimatedSprite.animation != \"run\"):
 | 
			
		||||
					$AnimatedSprite.play(\"run\")
 | 
			
		||||
				if player.global_position.distance_to(global_position) > 24:
 | 
			
		||||
					if(player.global_position.x > global_position.x):
 | 
			
		||||
						motion.x += speed
 | 
			
		||||
						$AnimatedSprite.flip_h = false
 | 
			
		||||
						$Area2D.rotation = 0
 | 
			
		||||
					else:
 | 
			
		||||
						motion.x -= speed
 | 
			
		||||
						$AnimatedSprite.flip_h = true
 | 
			
		||||
						$Area2D.rotation = PI
 | 
			
		||||
				else:
 | 
			
		||||
					knockback += 60
 | 
			
		||||
			else:
 | 
			
		||||
				$AnimatedSprite.play(\"default\")
 | 
			
		||||
		
 | 
			
		||||
	motion = move_and_slide(motion, UP)"
 | 
			
		||||
 | 
			
		||||
[sub_resource type="SpriteFrames" id=2]
 | 
			
		||||
animations = [ {
 | 
			
		||||
"frames": [ ExtResource( 2 ) ],
 | 
			
		||||
"loop": true,
 | 
			
		||||
"name": "default",
 | 
			
		||||
"speed": 5.0
 | 
			
		||||
}, {
 | 
			
		||||
"frames": [ ExtResource( 3 ), ExtResource( 4 ), ExtResource( 2 ), ExtResource( 5 ) ],
 | 
			
		||||
"loop": true,
 | 
			
		||||
"name": "run",
 | 
			
		||||
"speed": 5.0
 | 
			
		||||
} ]
 | 
			
		||||
 | 
			
		||||
[sub_resource type="CapsuleShape2D" id=3]
 | 
			
		||||
 | 
			
		||||
[sub_resource type="RectangleShape2D" id=4]
 | 
			
		||||
 | 
			
		||||
[node name="Basic Enemy" type="Node2D"]
 | 
			
		||||
modulate = Color( 1, 1, 0, 1 )
 | 
			
		||||
script = ExtResource( 1 )
 | 
			
		||||
__meta__ = {
 | 
			
		||||
"_edit_group_": true
 | 
			
		||||
}
 | 
			
		||||
HP = 3
 | 
			
		||||
 | 
			
		||||
[node name="KinematicBody2D" type="KinematicBody2D" parent="."]
 | 
			
		||||
script = SubResource( 1 )
 | 
			
		||||
active_distance = 128
 | 
			
		||||
 | 
			
		||||
[node name="AnimatedSprite" type="AnimatedSprite" parent="KinematicBody2D"]
 | 
			
		||||
frames = SubResource( 2 )
 | 
			
		||||
playing = true
 | 
			
		||||
 | 
			
		||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="KinematicBody2D"]
 | 
			
		||||
scale = Vector2( 0.35, 0.45 )
 | 
			
		||||
shape = SubResource( 3 )
 | 
			
		||||
 | 
			
		||||
[node name="Area2D" type="Area2D" parent="KinematicBody2D"]
 | 
			
		||||
 | 
			
		||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="KinematicBody2D/Area2D"]
 | 
			
		||||
position = Vector2( 5, -2 )
 | 
			
		||||
scale = Vector2( 0.5, 0.25 )
 | 
			
		||||
shape = SubResource( 4 )
 | 
			
		||||
one_way_collision_margin = 30.0
 | 
			
		||||
 | 
			
		||||
[node name="Light2D" type="Light2D" parent="KinematicBody2D"]
 | 
			
		||||
texture = ExtResource( 6 )
 | 
			
		||||
texture_scale = 1.5
 | 
			
		||||
energy = 0.25
 | 
			
		||||
							
								
								
									
										17
									
								
								Nodes/Equipment/Line2D.gd
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								Nodes/Equipment/Line2D.gd
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,17 @@
 | 
			
		||||
extends Line2D
 | 
			
		||||
 | 
			
		||||
var target
 | 
			
		||||
var point
 | 
			
		||||
export(NodePath) var targetPath
 | 
			
		||||
export var trailLength = 0
 | 
			
		||||
 | 
			
		||||
func _ready():
 | 
			
		||||
	target = get_node(targetPath)
 | 
			
		||||
 | 
			
		||||
func _process(delta):
 | 
			
		||||
	global_position = Vector2(0,0)
 | 
			
		||||
	global_rotation = 0
 | 
			
		||||
	point = target.global_position
 | 
			
		||||
	add_point(point)
 | 
			
		||||
	while get_point_count() > trailLength:
 | 
			
		||||
		remove_point(0)
 | 
			
		||||
							
								
								
									
										8
									
								
								Nodes/Equipment/none.tscn
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								Nodes/Equipment/none.tscn
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,8 @@
 | 
			
		||||
[gd_scene load_steps=2 format=2]
 | 
			
		||||
 | 
			
		||||
[ext_resource path="res://Art/player_arms.png" type="Texture" id=1]
 | 
			
		||||
 | 
			
		||||
[node name="Arms" type="Node2D"]
 | 
			
		||||
 | 
			
		||||
[node name="Sprite" type="Sprite" parent="."]
 | 
			
		||||
texture = ExtResource( 1 )
 | 
			
		||||
							
								
								
									
										74
									
								
								Nodes/Equipment/saber.tscn
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										74
									
								
								Nodes/Equipment/saber.tscn
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,74 @@
 | 
			
		||||
[gd_scene load_steps=22 format=2]
 | 
			
		||||
 | 
			
		||||
[ext_resource path="res://Scripts/Equipment/saber.gd" type="Script" id=1]
 | 
			
		||||
[ext_resource path="res://Art/player_saber.png" type="Texture" id=2]
 | 
			
		||||
[ext_resource path="res://Art/player_saber9.png" type="Texture" id=3]
 | 
			
		||||
[ext_resource path="res://Art/player_saber8.png" type="Texture" id=4]
 | 
			
		||||
[ext_resource path="res://Art/player_saber7.png" type="Texture" id=5]
 | 
			
		||||
[ext_resource path="res://Art/player_saber6.png" type="Texture" id=6]
 | 
			
		||||
[ext_resource path="res://Art/player_saber5.png" type="Texture" id=7]
 | 
			
		||||
[ext_resource path="res://Art/player_saber4.png" type="Texture" id=8]
 | 
			
		||||
[ext_resource path="res://Art/player_saber3.png" type="Texture" id=9]
 | 
			
		||||
[ext_resource path="res://Art/player_saber2.png" type="Texture" id=10]
 | 
			
		||||
[ext_resource path="res://Art/player_saber1.png" type="Texture" id=11]
 | 
			
		||||
[ext_resource path="res://Art/player_saber_attack1.png" type="Texture" id=12]
 | 
			
		||||
[ext_resource path="res://Art/player_saber_attack2.png" type="Texture" id=13]
 | 
			
		||||
[ext_resource path="res://Art/player_saber_attack3.png" type="Texture" id=14]
 | 
			
		||||
[ext_resource path="res://Art/player_saber_attack4.png" type="Texture" id=15]
 | 
			
		||||
[ext_resource path="res://Art/player_saber_attack5.png" type="Texture" id=16]
 | 
			
		||||
[ext_resource path="res://Art/trail.png" type="Texture" id=17]
 | 
			
		||||
[ext_resource path="res://Nodes/Equipment/Line2D.gd" type="Script" id=18]
 | 
			
		||||
[ext_resource path="res://Art/light.png" type="Texture" id=19]
 | 
			
		||||
 | 
			
		||||
[sub_resource type="SpriteFrames" id=1]
 | 
			
		||||
animations = [ {
 | 
			
		||||
"frames": [ ExtResource( 2 ) ],
 | 
			
		||||
"loop": true,
 | 
			
		||||
"name": "idle",
 | 
			
		||||
"speed": 5.0
 | 
			
		||||
}, {
 | 
			
		||||
"frames": [ ExtResource( 3 ), ExtResource( 4 ), ExtResource( 5 ), ExtResource( 6 ), ExtResource( 7 ), ExtResource( 8 ), ExtResource( 9 ), ExtResource( 10 ), ExtResource( 11 ) ],
 | 
			
		||||
"loop": false,
 | 
			
		||||
"name": "Spawn",
 | 
			
		||||
"speed": 10.0
 | 
			
		||||
}, {
 | 
			
		||||
"frames": [ ExtResource( 12 ), ExtResource( 13 ), ExtResource( 14 ), ExtResource( 15 ), ExtResource( 16 ), ExtResource( 16 ), ExtResource( 16 ), ExtResource( 16 ), ExtResource( 16 ), ExtResource( 13 ), ExtResource( 12 ) ],
 | 
			
		||||
"loop": false,
 | 
			
		||||
"name": "Attack",
 | 
			
		||||
"speed": 30.0
 | 
			
		||||
} ]
 | 
			
		||||
 | 
			
		||||
[sub_resource type="CapsuleShape2D" id=2]
 | 
			
		||||
 | 
			
		||||
[node name="Arms" type="Node2D"]
 | 
			
		||||
script = ExtResource( 1 )
 | 
			
		||||
 | 
			
		||||
[node name="AnimatedSprite" type="AnimatedSprite" parent="."]
 | 
			
		||||
frames = SubResource( 1 )
 | 
			
		||||
animation = "Attack"
 | 
			
		||||
frame = 1
 | 
			
		||||
 | 
			
		||||
[node name="Line2D" type="Line2D" parent="AnimatedSprite"]
 | 
			
		||||
z_index = -10
 | 
			
		||||
z_as_relative = false
 | 
			
		||||
points = PoolVector2Array( 27.1471, 15.6522 )
 | 
			
		||||
default_color = Color( 0.596078, 0.596078, 0.596078, 0.65098 )
 | 
			
		||||
texture = ExtResource( 17 )
 | 
			
		||||
texture_mode = 2
 | 
			
		||||
script = ExtResource( 18 )
 | 
			
		||||
targetPath = NodePath("..")
 | 
			
		||||
trailLength = 8
 | 
			
		||||
 | 
			
		||||
[node name="Light2D" type="Light2D" parent="AnimatedSprite"]
 | 
			
		||||
texture = ExtResource( 19 )
 | 
			
		||||
texture_scale = 1.5
 | 
			
		||||
color = Color( 0.643137, 1, 0.956863, 1 )
 | 
			
		||||
energy = 1.25
 | 
			
		||||
shadow_enabled = true
 | 
			
		||||
 | 
			
		||||
[node name="Area2D" type="Area2D" parent="AnimatedSprite"]
 | 
			
		||||
 | 
			
		||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="AnimatedSprite/Area2D"]
 | 
			
		||||
position = Vector2( 5, 0 )
 | 
			
		||||
scale = Vector2( 0.5, 0.5 )
 | 
			
		||||
shape = SubResource( 2 )
 | 
			
		||||
							
								
								
									
										39
									
								
								Nodes/Exit.tscn
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										39
									
								
								Nodes/Exit.tscn
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,39 @@
 | 
			
		||||
[gd_scene load_steps=9 format=2]
 | 
			
		||||
 | 
			
		||||
[ext_resource path="res://Scripts/Exit.gd" type="Script" id=1]
 | 
			
		||||
[ext_resource path="res://Art/Exit/Exit1.png" type="Texture" id=2]
 | 
			
		||||
[ext_resource path="res://Art/Exit/Exit2.png" type="Texture" id=3]
 | 
			
		||||
[ext_resource path="res://Art/Exit/Exit3.png" type="Texture" id=4]
 | 
			
		||||
[ext_resource path="res://Art/Exit/Exit4.png" type="Texture" id=5]
 | 
			
		||||
[ext_resource path="res://Art/light.png" type="Texture" id=6]
 | 
			
		||||
 | 
			
		||||
[sub_resource type="SpriteFrames" id=1]
 | 
			
		||||
animations = [ {
 | 
			
		||||
"frames": [ ExtResource( 2 ), ExtResource( 3 ), ExtResource( 4 ), ExtResource( 5 ) ],
 | 
			
		||||
"loop": true,
 | 
			
		||||
"name": "default",
 | 
			
		||||
"speed": 12.0
 | 
			
		||||
} ]
 | 
			
		||||
 | 
			
		||||
[sub_resource type="RectangleShape2D" id=2]
 | 
			
		||||
extents = Vector2( 7.00912, 7.45768 )
 | 
			
		||||
 | 
			
		||||
[node name="Exit" type="Node2D"]
 | 
			
		||||
script = ExtResource( 1 )
 | 
			
		||||
 | 
			
		||||
[node name="AnimatedSprite" type="AnimatedSprite" parent="."]
 | 
			
		||||
z_index = -1
 | 
			
		||||
frames = SubResource( 1 )
 | 
			
		||||
frame = 2
 | 
			
		||||
playing = true
 | 
			
		||||
 | 
			
		||||
[node name="Area2D" type="Area2D" parent="."]
 | 
			
		||||
editor/display_folded = true
 | 
			
		||||
 | 
			
		||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
 | 
			
		||||
position = Vector2( 0, 0.5 )
 | 
			
		||||
shape = SubResource( 2 )
 | 
			
		||||
 | 
			
		||||
[node name="Light2D" type="Light2D" parent="."]
 | 
			
		||||
texture = ExtResource( 6 )
 | 
			
		||||
color = Color( 0.486275, 1, 0.25098, 1 )
 | 
			
		||||
							
								
								
									
										94
									
								
								Nodes/Game.tscn
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										94
									
								
								Nodes/Game.tscn
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,94 @@
 | 
			
		||||
[gd_scene load_steps=6 format=2]
 | 
			
		||||
 | 
			
		||||
[ext_resource path="res://Scripts/MapGeneration.gd" type="Script" id=1]
 | 
			
		||||
[ext_resource path="res://general_theme.tres" type="Theme" id=2]
 | 
			
		||||
[ext_resource path="res://Nodes/Tiles.tres" type="TileSet" id=3]
 | 
			
		||||
 | 
			
		||||
[sub_resource type="GDScript" id=1]
 | 
			
		||||
script/source = "extends Node
 | 
			
		||||
 | 
			
		||||
var WAIT_TIME = 1
 | 
			
		||||
var timer #Timer object
 | 
			
		||||
 | 
			
		||||
func _ready():
 | 
			
		||||
	start_timer(WAIT_TIME)
 | 
			
		||||
	
 | 
			
		||||
 | 
			
		||||
	
 | 
			
		||||
func start_timer(seconds):
 | 
			
		||||
	timer = Timer.new()
 | 
			
		||||
	add_child(timer)
 | 
			
		||||
	timer.connect(\"timeout\", self, \"get_the_timeout\")
 | 
			
		||||
	timer.start(seconds)
 | 
			
		||||
 | 
			
		||||
func get_the_timeout():
 | 
			
		||||
	get_parent().defaultGenerator()
 | 
			
		||||
	timer.queue_free()
 | 
			
		||||
	
 | 
			
		||||
func hideSelf():
 | 
			
		||||
	queue_free()"
 | 
			
		||||
 | 
			
		||||
[sub_resource type="GDScript" id=2]
 | 
			
		||||
script/source = "extends Camera2D
 | 
			
		||||
 | 
			
		||||
var speed = 2
 | 
			
		||||
 | 
			
		||||
func _process(delta):
 | 
			
		||||
	var cameraMoveDir = Vector2(0,0)
 | 
			
		||||
	if(Input.is_action_pressed(\"right\")):
 | 
			
		||||
		cameraMoveDir += Vector2(speed,0)
 | 
			
		||||
	if(Input.is_action_pressed(\"left\")):
 | 
			
		||||
		cameraMoveDir -= Vector2(speed,0)
 | 
			
		||||
	
 | 
			
		||||
	if(Input.is_action_pressed(\"up\")):
 | 
			
		||||
		cameraMoveDir -= Vector2(0,speed)
 | 
			
		||||
	if(Input.is_action_pressed(\"down\")):
 | 
			
		||||
		cameraMoveDir += Vector2(0,speed)
 | 
			
		||||
	
 | 
			
		||||
	global_translate(cameraMoveDir)"
 | 
			
		||||
 | 
			
		||||
[node name="World" type="Node2D"]
 | 
			
		||||
script = ExtResource( 1 )
 | 
			
		||||
 | 
			
		||||
[node name="LoadingScreen" type="CanvasLayer" parent="."]
 | 
			
		||||
script = SubResource( 1 )
 | 
			
		||||
 | 
			
		||||
[node name="ColorRect" type="ColorRect" parent="LoadingScreen"]
 | 
			
		||||
anchor_right = 1.0
 | 
			
		||||
anchor_bottom = 1.0
 | 
			
		||||
color = Color( 0, 0, 0, 1 )
 | 
			
		||||
 | 
			
		||||
[node name="Label" type="Label" parent="LoadingScreen"]
 | 
			
		||||
anchor_left = 0.5
 | 
			
		||||
anchor_top = 0.5
 | 
			
		||||
anchor_right = 0.5
 | 
			
		||||
anchor_bottom = 0.5
 | 
			
		||||
margin_left = -117.226
 | 
			
		||||
margin_top = -39.4122
 | 
			
		||||
margin_right = 176.774
 | 
			
		||||
margin_bottom = -23.4122
 | 
			
		||||
theme = ExtResource( 2 )
 | 
			
		||||
text = "Generating a new map..."
 | 
			
		||||
 | 
			
		||||
[node name="GenerationProgress" type="Label" parent="LoadingScreen"]
 | 
			
		||||
anchor_top = 1.0
 | 
			
		||||
anchor_bottom = 1.0
 | 
			
		||||
margin_left = 13.604
 | 
			
		||||
margin_top = -22.878
 | 
			
		||||
margin_right = 307.604
 | 
			
		||||
margin_bottom = -6.87799
 | 
			
		||||
theme = ExtResource( 2 )
 | 
			
		||||
 | 
			
		||||
[node name="TileMap" type="TileMap" parent="."]
 | 
			
		||||
tile_set = ExtResource( 3 )
 | 
			
		||||
cell_size = Vector2( 16, 16 )
 | 
			
		||||
collision_layer = 7
 | 
			
		||||
format = 1
 | 
			
		||||
 | 
			
		||||
[node name="Camera2D" type="Camera2D" parent="."]
 | 
			
		||||
scale = Vector2( 10, 10 )
 | 
			
		||||
current = true
 | 
			
		||||
script = SubResource( 2 )
 | 
			
		||||
 | 
			
		||||
[node name="CanvasModulate" type="CanvasModulate" parent="."]
 | 
			
		||||
color = Color( 0.713726, 0.713726, 0.713726, 1 )
 | 
			
		||||
							
								
								
									
										47
									
								
								Nodes/Intro.tscn
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										47
									
								
								Nodes/Intro.tscn
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,47 @@
 | 
			
		||||
[gd_scene load_steps=4 format=2]
 | 
			
		||||
 | 
			
		||||
[ext_resource path="res://Fonts/pixelmix/pixelmix.ttf" type="DynamicFontData" id=1]
 | 
			
		||||
[ext_resource path="res://Scripts/MangeIntro.gd" type="Script" id=2]
 | 
			
		||||
 | 
			
		||||
[sub_resource type="DynamicFont" id=1]
 | 
			
		||||
font_data = ExtResource( 1 )
 | 
			
		||||
 | 
			
		||||
[node name="Control" type="Control"]
 | 
			
		||||
anchor_right = 1.0
 | 
			
		||||
anchor_bottom = 1.0
 | 
			
		||||
 | 
			
		||||
[node name="ColorRect" type="ColorRect" parent="."]
 | 
			
		||||
anchor_right = 1.0
 | 
			
		||||
anchor_bottom = 1.0
 | 
			
		||||
color = Color( 0, 0, 0, 1 )
 | 
			
		||||
 | 
			
		||||
[node name="Label" type="Label" parent="."]
 | 
			
		||||
margin_right = 1024.0
 | 
			
		||||
margin_bottom = 2030.0
 | 
			
		||||
size_flags_horizontal = 3
 | 
			
		||||
size_flags_vertical = 7
 | 
			
		||||
custom_fonts/font = SubResource( 1 )
 | 
			
		||||
custom_colors/font_color = Color( 0.6, 0.898039, 0.313726, 1 )
 | 
			
		||||
text = "gis init
 | 
			
		||||
Gathering resources...
 | 
			
		||||
Gathered: Humanskeleton.yaml
 | 
			
		||||
Gathered: Joints.yaml
 | 
			
		||||
Gathered: Ligaments.yaml
 | 
			
		||||
Gathered: Muscularsystem.yaml
 | 
			
		||||
Gathered: Tendons.yaml
 | 
			
		||||
Gathered: Digestivesystem.yaml
 | 
			
		||||
Gathered: Mouth.yaml
 | 
			
		||||
Gathered: Teeth.yaml
 | 
			
		||||
Gathered: Tongue.yaml
 | 
			
		||||
Gathered: Pharynx.yaml
 | 
			
		||||
Gathered Nervoussystem.yaml
 | 
			
		||||
Supressing: Frontallobe.yaml
 | 
			
		||||
Gathered: Esophagus.yaml
 | 
			
		||||
Gathered: Stomach.yaml
 | 
			
		||||
Gathered: Smallintestine.yaml
 | 
			
		||||
Gathered: Liver.yaml
 | 
			
		||||
Gathered: Gallbladder.yaml
 | 
			
		||||
Gathered: Pancreas.yaml
 | 
			
		||||
 | 
			
		||||
Intializing..."
 | 
			
		||||
script = ExtResource( 2 )
 | 
			
		||||
							
								
								
									
										14
									
								
								Nodes/Light.tscn
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								Nodes/Light.tscn
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,14 @@
 | 
			
		||||
[gd_scene load_steps=3 format=2]
 | 
			
		||||
 | 
			
		||||
[ext_resource path="res://Art/basic_light.png" type="Texture" id=1]
 | 
			
		||||
[ext_resource path="res://Art/light.png" type="Texture" id=2]
 | 
			
		||||
 | 
			
		||||
[node name="Light" type="Node2D"]
 | 
			
		||||
 | 
			
		||||
[node name="Sprite" type="Sprite" parent="."]
 | 
			
		||||
texture = ExtResource( 1 )
 | 
			
		||||
 | 
			
		||||
[node name="Light2D" type="Light2D" parent="."]
 | 
			
		||||
position = Vector2( 0, -2 )
 | 
			
		||||
texture = ExtResource( 2 )
 | 
			
		||||
texture_scale = 1.5
 | 
			
		||||
							
								
								
									
										7
									
								
								Nodes/MusicPlayer.tscn
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								Nodes/MusicPlayer.tscn
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,7 @@
 | 
			
		||||
[gd_scene load_steps=2 format=2]
 | 
			
		||||
 | 
			
		||||
[ext_resource path="res://Music/DOS-88/DOS-88 - Automatav2.ogg" type="AudioStream" id=1]
 | 
			
		||||
 | 
			
		||||
[node name="MusicPlayer" type="AudioStreamPlayer"]
 | 
			
		||||
stream = ExtResource( 1 )
 | 
			
		||||
bus = "Music"
 | 
			
		||||
							
								
								
									
										41
									
								
								Nodes/Pickup.tscn
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										41
									
								
								Nodes/Pickup.tscn
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,41 @@
 | 
			
		||||
[gd_scene load_steps=6 format=2]
 | 
			
		||||
 | 
			
		||||
[ext_resource path="res://Art/pickup1.png" type="Texture" id=1]
 | 
			
		||||
[ext_resource path="res://Art/pickup2.png" type="Texture" id=2]
 | 
			
		||||
 | 
			
		||||
[sub_resource type="GDScript" id=1]
 | 
			
		||||
script/source = "extends Area2D
 | 
			
		||||
 | 
			
		||||
func _ready():
 | 
			
		||||
	connect(\"body_entered\", self, \"_collide\")
 | 
			
		||||
	
 | 
			
		||||
func _collide(body):
 | 
			
		||||
	if body.has_method(\"pickupCoin\"):
 | 
			
		||||
		body.pickupCoin()
 | 
			
		||||
		queue_free()"
 | 
			
		||||
 | 
			
		||||
[sub_resource type="RectangleShape2D" id=2]
 | 
			
		||||
extents = Vector2( 6, 6 )
 | 
			
		||||
 | 
			
		||||
[sub_resource type="SpriteFrames" id=3]
 | 
			
		||||
animations = [ {
 | 
			
		||||
"frames": [ ExtResource( 1 ), ExtResource( 2 ) ],
 | 
			
		||||
"loop": true,
 | 
			
		||||
"name": "default",
 | 
			
		||||
"speed": 10.0
 | 
			
		||||
} ]
 | 
			
		||||
 | 
			
		||||
[node name="Pickup" type="Node2D"]
 | 
			
		||||
 | 
			
		||||
[node name="Area2D" type="Area2D" parent="."]
 | 
			
		||||
gravity = 0.0
 | 
			
		||||
angular_damp = 0.0
 | 
			
		||||
script = SubResource( 1 )
 | 
			
		||||
 | 
			
		||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
 | 
			
		||||
shape = SubResource( 2 )
 | 
			
		||||
 | 
			
		||||
[node name="AnimatedSprite" type="AnimatedSprite" parent="Area2D/CollisionShape2D"]
 | 
			
		||||
frames = SubResource( 3 )
 | 
			
		||||
frame = 1
 | 
			
		||||
playing = true
 | 
			
		||||
							
								
								
									
										192
									
								
								Nodes/Player.tscn
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										192
									
								
								Nodes/Player.tscn
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,192 @@
 | 
			
		||||
[gd_scene load_steps=24 format=2]
 | 
			
		||||
 | 
			
		||||
[ext_resource path="res://Scripts/PlayerManager.gd" type="Script" id=1]
 | 
			
		||||
[ext_resource path="res://Art/player_idle1.png" type="Texture" id=2]
 | 
			
		||||
[ext_resource path="res://Art/player_idle2.png" type="Texture" id=3]
 | 
			
		||||
[ext_resource path="res://Art/player_walk1.png" type="Texture" id=4]
 | 
			
		||||
[ext_resource path="res://Art/player_walk2.png" type="Texture" id=5]
 | 
			
		||||
[ext_resource path="res://Art/player_walk3.png" type="Texture" id=6]
 | 
			
		||||
[ext_resource path="res://Art/player_jump.png" type="Texture" id=7]
 | 
			
		||||
[ext_resource path="res://general_theme.tres" type="Theme" id=8]
 | 
			
		||||
[ext_resource path="res://Art/cornerGUI.png" type="Texture" id=9]
 | 
			
		||||
[ext_resource path="res://Fonts/pixelmix/pixelmix.ttf" type="DynamicFontData" id=10]
 | 
			
		||||
[ext_resource path="res://Art/pickup-outline.png" type="Texture" id=11]
 | 
			
		||||
[ext_resource path="res://Art/health-bar2.png" type="Texture" id=12]
 | 
			
		||||
[ext_resource path="res://Art/health-bar1.png" type="Texture" id=13]
 | 
			
		||||
[ext_resource path="res://Fonts/pixelmix/pixelmix_bold.ttf" type="DynamicFontData" id=14]
 | 
			
		||||
[ext_resource path="res://Art/light.png" type="Texture" id=15]
 | 
			
		||||
 | 
			
		||||
[sub_resource type="SpriteFrames" id=1]
 | 
			
		||||
animations = [ {
 | 
			
		||||
"frames": [ ExtResource( 2 ), ExtResource( 3 ) ],
 | 
			
		||||
"loop": true,
 | 
			
		||||
"name": "idle",
 | 
			
		||||
"speed": 3.0
 | 
			
		||||
}, {
 | 
			
		||||
"frames": [ ExtResource( 4 ), ExtResource( 5 ), ExtResource( 6 ) ],
 | 
			
		||||
"loop": true,
 | 
			
		||||
"name": "walk",
 | 
			
		||||
"speed": 7.0
 | 
			
		||||
}, {
 | 
			
		||||
"frames": [ ExtResource( 7 ) ],
 | 
			
		||||
"loop": true,
 | 
			
		||||
"name": "jump",
 | 
			
		||||
"speed": 5.0
 | 
			
		||||
} ]
 | 
			
		||||
 | 
			
		||||
[sub_resource type="CapsuleShape2D" id=2]
 | 
			
		||||
radius = 3.71548
 | 
			
		||||
height = 8.49548
 | 
			
		||||
 | 
			
		||||
[sub_resource type="DynamicFont" id=3]
 | 
			
		||||
outline_size = 4
 | 
			
		||||
outline_color = Color( 0, 0, 0, 1 )
 | 
			
		||||
font_data = ExtResource( 10 )
 | 
			
		||||
 | 
			
		||||
[sub_resource type="StyleBoxTexture" id=4]
 | 
			
		||||
texture = ExtResource( 12 )
 | 
			
		||||
region_rect = Rect2( 0, 0, 64, 16 )
 | 
			
		||||
 | 
			
		||||
[sub_resource type="StyleBoxTexture" id=5]
 | 
			
		||||
texture = ExtResource( 13 )
 | 
			
		||||
region_rect = Rect2( 0, 0, 64, 16 )
 | 
			
		||||
 | 
			
		||||
[sub_resource type="DynamicFont" id=6]
 | 
			
		||||
outline_size = 2
 | 
			
		||||
outline_color = Color( 0, 0, 0, 1 )
 | 
			
		||||
font_data = ExtResource( 10 )
 | 
			
		||||
 | 
			
		||||
[sub_resource type="DynamicFont" id=7]
 | 
			
		||||
size = 32
 | 
			
		||||
font_data = ExtResource( 14 )
 | 
			
		||||
 | 
			
		||||
[sub_resource type="GDScript" id=8]
 | 
			
		||||
script/source = "extends Button
 | 
			
		||||
 | 
			
		||||
# Declare member variables here. Examples:
 | 
			
		||||
# var a = 2
 | 
			
		||||
# var b = \"text\"
 | 
			
		||||
 | 
			
		||||
# Called when the node enters the scene tree for the first time.
 | 
			
		||||
func _ready():
 | 
			
		||||
	connect(\"button_down\", self, \"on_button\")
 | 
			
		||||
 | 
			
		||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
 | 
			
		||||
#func _process(delta):
 | 
			
		||||
#	pass
 | 
			
		||||
func on_button():
 | 
			
		||||
	get_tree().change_scene(\"res://Nodes/Title.tscn\")"
 | 
			
		||||
 | 
			
		||||
[node name="Player" type="KinematicBody2D"]
 | 
			
		||||
script = ExtResource( 1 )
 | 
			
		||||
 | 
			
		||||
[node name="Camera2D" type="Camera2D" parent="."]
 | 
			
		||||
zoom = Vector2( 0.5, 0.5 )
 | 
			
		||||
 | 
			
		||||
[node name="AnimatedSprite" type="AnimatedSprite" parent="."]
 | 
			
		||||
frames = SubResource( 1 )
 | 
			
		||||
animation = "idle"
 | 
			
		||||
playing = true
 | 
			
		||||
 | 
			
		||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
 | 
			
		||||
shape = SubResource( 2 )
 | 
			
		||||
 | 
			
		||||
[node name="Equipment" type="Node2D" parent="."]
 | 
			
		||||
 | 
			
		||||
[node name="CanvasLayer" type="CanvasLayer" parent="."]
 | 
			
		||||
editor/display_folded = true
 | 
			
		||||
 | 
			
		||||
[node name="GUI" type="Control" parent="CanvasLayer"]
 | 
			
		||||
editor/display_folded = true
 | 
			
		||||
anchor_right = 1.0
 | 
			
		||||
anchor_bottom = 1.0
 | 
			
		||||
theme = ExtResource( 8 )
 | 
			
		||||
 | 
			
		||||
[node name="TextureRect" type="TextureRect" parent="CanvasLayer/GUI"]
 | 
			
		||||
anchor_right = 1.0
 | 
			
		||||
margin_right = -904.0
 | 
			
		||||
margin_bottom = 31.0
 | 
			
		||||
texture = ExtResource( 9 )
 | 
			
		||||
expand = true
 | 
			
		||||
 | 
			
		||||
[node name="Label" type="Label" parent="CanvasLayer/GUI"]
 | 
			
		||||
margin_left = 36.4586
 | 
			
		||||
margin_top = 11.069
 | 
			
		||||
margin_right = 160.459
 | 
			
		||||
margin_bottom = 42.069
 | 
			
		||||
custom_fonts/font = SubResource( 3 )
 | 
			
		||||
custom_colors/font_color = Color( 1, 1, 1, 1 )
 | 
			
		||||
text = "0"
 | 
			
		||||
valign = 1
 | 
			
		||||
clip_text = true
 | 
			
		||||
 | 
			
		||||
[node name="TextureRect2" type="TextureRect" parent="CanvasLayer/GUI"]
 | 
			
		||||
margin_left = 13.7422
 | 
			
		||||
margin_top = 16.7484
 | 
			
		||||
margin_right = 33.7422
 | 
			
		||||
margin_bottom = 36.7484
 | 
			
		||||
texture = ExtResource( 11 )
 | 
			
		||||
expand = true
 | 
			
		||||
 | 
			
		||||
[node name="Healthbar" type="ProgressBar" parent="CanvasLayer/GUI"]
 | 
			
		||||
anchor_left = 0.5
 | 
			
		||||
anchor_top = 1.0
 | 
			
		||||
anchor_right = 0.5
 | 
			
		||||
anchor_bottom = 1.0
 | 
			
		||||
margin_left = -92.5
 | 
			
		||||
margin_top = -50.0
 | 
			
		||||
margin_right = 92.5
 | 
			
		||||
margin_bottom = -14.0
 | 
			
		||||
custom_styles/fg = SubResource( 4 )
 | 
			
		||||
custom_styles/bg = SubResource( 5 )
 | 
			
		||||
custom_fonts/font = SubResource( 6 )
 | 
			
		||||
step = 1.0
 | 
			
		||||
value = 100.0
 | 
			
		||||
 | 
			
		||||
[node name="SlideRect" type="ColorRect" parent="CanvasLayer/GUI"]
 | 
			
		||||
anchor_right = 1.0
 | 
			
		||||
color = Color( 0, 0, 0, 1 )
 | 
			
		||||
 | 
			
		||||
[node name="GameOver" type="Control" parent="CanvasLayer"]
 | 
			
		||||
editor/display_folded = true
 | 
			
		||||
visible = false
 | 
			
		||||
anchor_right = 1.0
 | 
			
		||||
anchor_bottom = 1.0
 | 
			
		||||
theme = ExtResource( 8 )
 | 
			
		||||
 | 
			
		||||
[node name="ColorRect" type="ColorRect" parent="CanvasLayer/GameOver"]
 | 
			
		||||
anchor_right = 1.0
 | 
			
		||||
anchor_bottom = 1.0
 | 
			
		||||
color = Color( 0, 0, 0, 0.352941 )
 | 
			
		||||
 | 
			
		||||
[node name="Label" type="Label" parent="CanvasLayer/GameOver"]
 | 
			
		||||
anchor_left = 0.5
 | 
			
		||||
anchor_top = 0.5
 | 
			
		||||
anchor_right = 0.5
 | 
			
		||||
anchor_bottom = 0.5
 | 
			
		||||
margin_left = -227.5
 | 
			
		||||
margin_top = -50.0
 | 
			
		||||
margin_right = 227.5
 | 
			
		||||
margin_bottom = 50.0
 | 
			
		||||
custom_fonts/font = SubResource( 7 )
 | 
			
		||||
custom_colors/font_color = Color( 0.6, 0.898039, 0.313726, 1 )
 | 
			
		||||
text = "Unit Lost..."
 | 
			
		||||
align = 1
 | 
			
		||||
valign = 1
 | 
			
		||||
 | 
			
		||||
[node name="MainMenu" type="Button" parent="CanvasLayer/GameOver"]
 | 
			
		||||
anchor_left = 0.5
 | 
			
		||||
anchor_top = 1.0
 | 
			
		||||
anchor_right = 0.5
 | 
			
		||||
anchor_bottom = 1.0
 | 
			
		||||
margin_left = -82.5
 | 
			
		||||
margin_top = -80.0
 | 
			
		||||
margin_right = 82.5
 | 
			
		||||
margin_bottom = -40.0
 | 
			
		||||
text = "Main Menu"
 | 
			
		||||
script = SubResource( 8 )
 | 
			
		||||
 | 
			
		||||
[node name="Light2D" type="Light2D" parent="."]
 | 
			
		||||
texture = ExtResource( 15 )
 | 
			
		||||
texture_scale = 1.5
 | 
			
		||||
energy = 0.5
 | 
			
		||||
							
								
								
									
										20
									
								
								Nodes/PlayerGreetings.tscn
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								Nodes/PlayerGreetings.tscn
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,20 @@
 | 
			
		||||
[gd_scene load_steps=5 format=2]
 | 
			
		||||
 | 
			
		||||
[ext_resource path="res://general_theme.tres" type="Theme" id=1]
 | 
			
		||||
[ext_resource path="res://Fonts/pixelmix/pixelmix.ttf" type="DynamicFontData" id=2]
 | 
			
		||||
[ext_resource path="res://Scripts/RunLabel.gd" type="Script" id=3]
 | 
			
		||||
 | 
			
		||||
[sub_resource type="DynamicFont" id=1]
 | 
			
		||||
size = 8
 | 
			
		||||
font_data = ExtResource( 2 )
 | 
			
		||||
 | 
			
		||||
[node name="Node2D" type="Node2D"]
 | 
			
		||||
 | 
			
		||||
[node name="Label" type="Label" parent="."]
 | 
			
		||||
margin_right = 40.0
 | 
			
		||||
margin_bottom = 14.0
 | 
			
		||||
theme = ExtResource( 1 )
 | 
			
		||||
custom_fonts/font = SubResource( 1 )
 | 
			
		||||
custom_colors/font_color = Color( 0.6, 0.898039, 0.313726, 1 )
 | 
			
		||||
text = "test"
 | 
			
		||||
script = ExtResource( 3 )
 | 
			
		||||
							
								
								
									
										86
									
								
								Nodes/Tiles.tres
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										86
									
								
								Nodes/Tiles.tres
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,86 @@
 | 
			
		||||
[gd_resource type="TileSet" load_steps=8 format=2]
 | 
			
		||||
 | 
			
		||||
[ext_resource path="res://Art/Tiles/computer_tile1.png" type="Texture" id=1]
 | 
			
		||||
[ext_resource path="res://Art/Tiles/platform_tile.png" type="Texture" id=2]
 | 
			
		||||
[ext_resource path="res://Art/Tiles/computer_tile_safe.png" type="Texture" id=3]
 | 
			
		||||
 | 
			
		||||
[sub_resource type="ConvexPolygonShape2D" id=1]
 | 
			
		||||
points = PoolVector2Array( 0, 0, 16, 0, 16, 16, 0, 16 )
 | 
			
		||||
 | 
			
		||||
[sub_resource type="ConvexPolygonShape2D" id=2]
 | 
			
		||||
points = PoolVector2Array( 0, 0, 16, 0, 15.7026, 3.83265, 0, 3.92611 )
 | 
			
		||||
 | 
			
		||||
[sub_resource type="NavigationPolygon" id=3]
 | 
			
		||||
vertices = PoolVector2Array( 0, 0, 16, 0, 16, 16, 0, 16 )
 | 
			
		||||
polygons = [ PoolIntArray( 0, 1, 2, 3 ) ]
 | 
			
		||||
 | 
			
		||||
[sub_resource type="ConvexPolygonShape2D" id=4]
 | 
			
		||||
points = PoolVector2Array( 0, 0, 16, 0, 16, 16, 0, 16 )
 | 
			
		||||
 | 
			
		||||
[resource]
 | 
			
		||||
0/name = "block"
 | 
			
		||||
0/texture = ExtResource( 1 )
 | 
			
		||||
0/tex_offset = Vector2( 0, 0 )
 | 
			
		||||
0/modulate = Color( 1, 1, 1, 1 )
 | 
			
		||||
0/region = Rect2( 0, 0, 16, 16 )
 | 
			
		||||
0/tile_mode = 1
 | 
			
		||||
0/autotile/bitmask_mode = 0
 | 
			
		||||
0/autotile/bitmask_flags = [  ]
 | 
			
		||||
0/autotile/icon_coordinate = Vector2( 0, 0 )
 | 
			
		||||
0/autotile/tile_size = Vector2( 16, 16 )
 | 
			
		||||
0/autotile/spacing = 0
 | 
			
		||||
0/autotile/occluder_map = [  ]
 | 
			
		||||
0/autotile/navpoly_map = [  ]
 | 
			
		||||
0/autotile/priority_map = [  ]
 | 
			
		||||
0/autotile/z_index_map = [  ]
 | 
			
		||||
0/occluder_offset = Vector2( 0, 0 )
 | 
			
		||||
0/navigation_offset = Vector2( 0, 0 )
 | 
			
		||||
0/shapes = [ {
 | 
			
		||||
"autotile_coord": Vector2( 0, 0 ),
 | 
			
		||||
"one_way": false,
 | 
			
		||||
"one_way_margin": 1.0,
 | 
			
		||||
"shape": SubResource( 1 ),
 | 
			
		||||
"shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 )
 | 
			
		||||
} ]
 | 
			
		||||
0/z_index = 0
 | 
			
		||||
1/name = "platform_tile.png 1"
 | 
			
		||||
1/texture = ExtResource( 2 )
 | 
			
		||||
1/tex_offset = Vector2( 0, 0 )
 | 
			
		||||
1/modulate = Color( 1, 1, 1, 1 )
 | 
			
		||||
1/region = Rect2( 0, 0, 16, 16 )
 | 
			
		||||
1/tile_mode = 0
 | 
			
		||||
1/occluder_offset = Vector2( 0, 0 )
 | 
			
		||||
1/navigation_offset = Vector2( 0, 0 )
 | 
			
		||||
1/shapes = [ {
 | 
			
		||||
"autotile_coord": Vector2( 0, 0 ),
 | 
			
		||||
"one_way": true,
 | 
			
		||||
"one_way_margin": 1.0,
 | 
			
		||||
"shape": SubResource( 2 ),
 | 
			
		||||
"shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 )
 | 
			
		||||
} ]
 | 
			
		||||
1/z_index = 0
 | 
			
		||||
2/name = "computer_tile_safe.png 2"
 | 
			
		||||
2/texture = ExtResource( 3 )
 | 
			
		||||
2/tex_offset = Vector2( 0, 0 )
 | 
			
		||||
2/modulate = Color( 1, 1, 1, 1 )
 | 
			
		||||
2/region = Rect2( 0, 0, 16, 16 )
 | 
			
		||||
2/tile_mode = 1
 | 
			
		||||
2/autotile/bitmask_mode = 0
 | 
			
		||||
2/autotile/bitmask_flags = [  ]
 | 
			
		||||
2/autotile/icon_coordinate = Vector2( 0, 0 )
 | 
			
		||||
2/autotile/tile_size = Vector2( 16, 16 )
 | 
			
		||||
2/autotile/spacing = 0
 | 
			
		||||
2/autotile/occluder_map = [  ]
 | 
			
		||||
2/autotile/navpoly_map = [ Vector2( 0, 0 ), SubResource( 3 ) ]
 | 
			
		||||
2/autotile/priority_map = [  ]
 | 
			
		||||
2/autotile/z_index_map = [  ]
 | 
			
		||||
2/occluder_offset = Vector2( 0, 0 )
 | 
			
		||||
2/navigation_offset = Vector2( 0, 0 )
 | 
			
		||||
2/shapes = [ {
 | 
			
		||||
"autotile_coord": Vector2( 0, 0 ),
 | 
			
		||||
"one_way": false,
 | 
			
		||||
"one_way_margin": 1.0,
 | 
			
		||||
"shape": SubResource( 4 ),
 | 
			
		||||
"shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 )
 | 
			
		||||
} ]
 | 
			
		||||
2/z_index = 0
 | 
			
		||||
							
								
								
									
										165
									
								
								Nodes/Title.tscn
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										165
									
								
								Nodes/Title.tscn
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,165 @@
 | 
			
		||||
[gd_scene load_steps=12 format=2]
 | 
			
		||||
 | 
			
		||||
[ext_resource path="res://general_theme.tres" type="Theme" id=1]
 | 
			
		||||
[ext_resource path="res://Scripts/Title.gd" type="Script" id=2]
 | 
			
		||||
[ext_resource path="res://Art/general_bkg.png" type="Texture" id=3]
 | 
			
		||||
[ext_resource path="res://Art/Grid/agrid1.png" type="Texture" id=4]
 | 
			
		||||
[ext_resource path="res://Art/Grid/agrid2.png" type="Texture" id=5]
 | 
			
		||||
[ext_resource path="res://Art/Grid/agrid3.png" type="Texture" id=6]
 | 
			
		||||
[ext_resource path="res://Art/Grid/agrid4.png" type="Texture" id=7]
 | 
			
		||||
[ext_resource path="res://Art/Grid/agrid5.png" type="Texture" id=8]
 | 
			
		||||
[ext_resource path="res://Art/logo.png" type="Texture" id=9]
 | 
			
		||||
 | 
			
		||||
[sub_resource type="AnimatedTexture" id=1]
 | 
			
		||||
frames = 5
 | 
			
		||||
fps = 10.0
 | 
			
		||||
frame_0/texture = ExtResource( 4 )
 | 
			
		||||
frame_1/texture = ExtResource( 5 )
 | 
			
		||||
frame_1/delay_sec = 0.0
 | 
			
		||||
frame_2/texture = ExtResource( 6 )
 | 
			
		||||
frame_2/delay_sec = 0.0
 | 
			
		||||
frame_3/texture = ExtResource( 7 )
 | 
			
		||||
frame_3/delay_sec = 0.0
 | 
			
		||||
frame_4/texture = ExtResource( 8 )
 | 
			
		||||
frame_4/delay_sec = 0.0
 | 
			
		||||
 | 
			
		||||
[sub_resource type="GDScript" id=2]
 | 
			
		||||
script/source = "extends Control
 | 
			
		||||
 | 
			
		||||
func _ready():
 | 
			
		||||
	$BackButton.connect(\"button_down\", self, \"on_button_down\")
 | 
			
		||||
	
 | 
			
		||||
func on_button_down():
 | 
			
		||||
	hide()"
 | 
			
		||||
 | 
			
		||||
[node name="Title" type="Control"]
 | 
			
		||||
anchor_right = 1.0
 | 
			
		||||
anchor_bottom = 1.0
 | 
			
		||||
theme = ExtResource( 1 )
 | 
			
		||||
script = ExtResource( 2 )
 | 
			
		||||
 | 
			
		||||
[node name="ColorRect" type="ColorRect" parent="."]
 | 
			
		||||
anchor_right = 1.0
 | 
			
		||||
anchor_bottom = 1.0
 | 
			
		||||
color = Color( 0, 0, 0, 1 )
 | 
			
		||||
 | 
			
		||||
[node name="Staticbkg" type="TextureRect" parent="."]
 | 
			
		||||
modulate = Color( 0.509804, 0.509804, 0.509804, 1 )
 | 
			
		||||
anchor_right = 1.0
 | 
			
		||||
anchor_bottom = 1.0
 | 
			
		||||
texture = ExtResource( 3 )
 | 
			
		||||
expand = true
 | 
			
		||||
 | 
			
		||||
[node name="Animatedbkg" type="TextureRect" parent="."]
 | 
			
		||||
modulate = Color( 0.423529, 0.423529, 0.423529, 1 )
 | 
			
		||||
anchor_right = 1.0
 | 
			
		||||
anchor_bottom = 1.0
 | 
			
		||||
texture = SubResource( 1 )
 | 
			
		||||
expand = true
 | 
			
		||||
stretch_mode = 5
 | 
			
		||||
 | 
			
		||||
[node name="New Game" type="Button" parent="."]
 | 
			
		||||
anchor_left = 0.5
 | 
			
		||||
anchor_top = 0.5
 | 
			
		||||
anchor_right = 0.5
 | 
			
		||||
anchor_bottom = 0.5
 | 
			
		||||
margin_left = -59.6334
 | 
			
		||||
margin_top = -28.0
 | 
			
		||||
margin_right = 58.3666
 | 
			
		||||
margin_bottom = 7.0
 | 
			
		||||
text = "[Start Game]"
 | 
			
		||||
 | 
			
		||||
[node name="Credits" type="Button" parent="."]
 | 
			
		||||
anchor_left = 0.5
 | 
			
		||||
anchor_top = 0.5
 | 
			
		||||
anchor_right = 0.5
 | 
			
		||||
anchor_bottom = 0.5
 | 
			
		||||
margin_left = -59.6334
 | 
			
		||||
margin_top = 20.0
 | 
			
		||||
margin_right = 58.3666
 | 
			
		||||
margin_bottom = 55.0
 | 
			
		||||
text = "[Credits]"
 | 
			
		||||
 | 
			
		||||
[node name="Quit" type="Button" parent="."]
 | 
			
		||||
anchor_left = 0.5
 | 
			
		||||
anchor_top = 0.5
 | 
			
		||||
anchor_right = 0.5
 | 
			
		||||
anchor_bottom = 0.5
 | 
			
		||||
margin_left = -59.6334
 | 
			
		||||
margin_top = 68.0
 | 
			
		||||
margin_right = 58.3666
 | 
			
		||||
margin_bottom = 103.0
 | 
			
		||||
text = "[Quit]"
 | 
			
		||||
 | 
			
		||||
[node name="Label" type="Label" parent="."]
 | 
			
		||||
anchor_top = 1.0
 | 
			
		||||
anchor_bottom = 1.0
 | 
			
		||||
margin_top = -16.0
 | 
			
		||||
margin_right = 80.0
 | 
			
		||||
text = "develop"
 | 
			
		||||
valign = 2
 | 
			
		||||
 | 
			
		||||
[node name="TextureRect" type="TextureRect" parent="."]
 | 
			
		||||
anchor_left = 0.5
 | 
			
		||||
anchor_right = 0.5
 | 
			
		||||
margin_left = -216.5
 | 
			
		||||
margin_top = 16.0
 | 
			
		||||
margin_right = 216.5
 | 
			
		||||
margin_bottom = 227.0
 | 
			
		||||
texture = ExtResource( 9 )
 | 
			
		||||
expand = true
 | 
			
		||||
 | 
			
		||||
[node name="CreditsMenu" type="Control" parent="."]
 | 
			
		||||
anchor_right = 1.0
 | 
			
		||||
anchor_bottom = 1.0
 | 
			
		||||
script = SubResource( 2 )
 | 
			
		||||
 | 
			
		||||
[node name="ColorRect" type="ColorRect" parent="CreditsMenu"]
 | 
			
		||||
anchor_right = 1.0
 | 
			
		||||
anchor_bottom = 1.0
 | 
			
		||||
color = Color( 0, 0, 0, 1 )
 | 
			
		||||
 | 
			
		||||
[node name="TextureRect2" type="TextureRect" parent="CreditsMenu"]
 | 
			
		||||
anchor_left = 0.5
 | 
			
		||||
anchor_right = 0.5
 | 
			
		||||
margin_left = -216.5
 | 
			
		||||
margin_top = 16.0
 | 
			
		||||
margin_right = 216.5
 | 
			
		||||
margin_bottom = 227.0
 | 
			
		||||
texture = ExtResource( 9 )
 | 
			
		||||
expand = true
 | 
			
		||||
 | 
			
		||||
[node name="BackButton" type="Button" parent="CreditsMenu"]
 | 
			
		||||
anchor_left = 1.0
 | 
			
		||||
anchor_top = 1.0
 | 
			
		||||
anchor_right = 1.0
 | 
			
		||||
anchor_bottom = 1.0
 | 
			
		||||
margin_left = -144.0
 | 
			
		||||
margin_top = -56.0
 | 
			
		||||
margin_right = -26.0
 | 
			
		||||
margin_bottom = -21.0
 | 
			
		||||
text = "[Back]"
 | 
			
		||||
 | 
			
		||||
[node name="Label" type="Label" parent="CreditsMenu"]
 | 
			
		||||
anchor_left = 0.5
 | 
			
		||||
anchor_top = 0.5
 | 
			
		||||
anchor_right = 0.5
 | 
			
		||||
anchor_bottom = 0.5
 | 
			
		||||
margin_left = -254.0
 | 
			
		||||
margin_top = -36.5
 | 
			
		||||
margin_right = 254.0
 | 
			
		||||
margin_bottom = 36.5
 | 
			
		||||
text = "Art, Concept, and Development - Joseph Manley
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
Music  Provided by DOS-88
 | 
			
		||||
 | 
			
		||||
Sound Provdided by danereid1024"
 | 
			
		||||
align = 1
 | 
			
		||||
 | 
			
		||||
[node name="Fader" type="ColorRect" parent="."]
 | 
			
		||||
modulate = Color( 1, 1, 1, 0 )
 | 
			
		||||
anchor_right = 1.0
 | 
			
		||||
anchor_bottom = 1.0
 | 
			
		||||
mouse_filter = 2
 | 
			
		||||
color = Color( 0, 0, 0, 1 )
 | 
			
		||||
							
								
								
									
										122
									
								
								Nodes/Victory.tscn
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										122
									
								
								Nodes/Victory.tscn
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,122 @@
 | 
			
		||||
[gd_scene load_steps=6 format=2]
 | 
			
		||||
 | 
			
		||||
[ext_resource path="res://general_theme.tres" type="Theme" id=1]
 | 
			
		||||
[ext_resource path="res://Fonts/pixelmix/pixelmix_bold.ttf" type="DynamicFontData" id=2]
 | 
			
		||||
[ext_resource path="res://Scripts/Console.gd" type="Script" id=3]
 | 
			
		||||
 | 
			
		||||
[sub_resource type="DynamicFont" id=1]
 | 
			
		||||
size = 48
 | 
			
		||||
font_data = ExtResource( 2 )
 | 
			
		||||
 | 
			
		||||
[sub_resource type="GDScript" id=2]
 | 
			
		||||
script/source = "extends ColorRect
 | 
			
		||||
 | 
			
		||||
# Declare member variables here. Examples:
 | 
			
		||||
# var a = 2
 | 
			
		||||
# var b = \"text\"
 | 
			
		||||
 | 
			
		||||
# Called when the node enters the scene tree for the first time.
 | 
			
		||||
func _ready():
 | 
			
		||||
	show()
 | 
			
		||||
	fade_in()
 | 
			
		||||
	pass # Replace with function body.
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
const VICTORY_SCREEN = \"res://Nodes/Victory.tscn\"
 | 
			
		||||
var progress = 255
 | 
			
		||||
var fade_timer
 | 
			
		||||
const FADE_SPEED = 0.0125
 | 
			
		||||
const FADE_RATE = 8
 | 
			
		||||
func fade_in():
 | 
			
		||||
	modulate.a = progress/255.0
 | 
			
		||||
	if progress > 0:
 | 
			
		||||
		progress -= FADE_RATE
 | 
			
		||||
		if(!fade_timer):
 | 
			
		||||
			fade_timer = Timer.new()
 | 
			
		||||
			add_child(fade_timer)
 | 
			
		||||
			fade_timer.connect(\"timeout\", self, \"fade_in\")
 | 
			
		||||
		fade_timer.start(FADE_SPEED)
 | 
			
		||||
	else:
 | 
			
		||||
		fade_timer.queue_free()
 | 
			
		||||
		
 | 
			
		||||
		
 | 
			
		||||
var prog_two = 0
 | 
			
		||||
func fade_out():
 | 
			
		||||
	modulate.a = prog_two/255.0
 | 
			
		||||
	if prog_two < 255:
 | 
			
		||||
		prog_two += FADE_RATE
 | 
			
		||||
		if(!fade_timer):
 | 
			
		||||
			fade_timer = Timer.new()
 | 
			
		||||
			add_child(fade_timer)
 | 
			
		||||
			fade_timer.connect(\"timeout\", self, \"fade_out\")
 | 
			
		||||
		fade_timer.start(FADE_SPEED)
 | 
			
		||||
	else:
 | 
			
		||||
		fade_timer.queue_free()"
 | 
			
		||||
 | 
			
		||||
[node name="Control" type="Control"]
 | 
			
		||||
anchor_right = 1.0
 | 
			
		||||
anchor_bottom = 1.0
 | 
			
		||||
theme = ExtResource( 1 )
 | 
			
		||||
 | 
			
		||||
[node name="CanvasLayer" type="CanvasLayer" parent="."]
 | 
			
		||||
 | 
			
		||||
[node name="Control" type="Control" parent="CanvasLayer"]
 | 
			
		||||
anchor_right = 1.0
 | 
			
		||||
anchor_bottom = 1.0
 | 
			
		||||
theme = ExtResource( 1 )
 | 
			
		||||
 | 
			
		||||
[node name="Level Complete" type="Label" parent="CanvasLayer/Control"]
 | 
			
		||||
margin_left = 20.0
 | 
			
		||||
margin_top = 15.0
 | 
			
		||||
margin_right = 691.0
 | 
			
		||||
margin_bottom = 88.0
 | 
			
		||||
custom_fonts/font = SubResource( 1 )
 | 
			
		||||
custom_colors/font_color = Color( 0.6, 0.898039, 0.313726, 1 )
 | 
			
		||||
text = "LEVEL COMPLETE!"
 | 
			
		||||
 | 
			
		||||
[node name="Console" type="Control" parent="CanvasLayer/Control"]
 | 
			
		||||
anchor_right = 1.0
 | 
			
		||||
anchor_bottom = 1.0
 | 
			
		||||
script = ExtResource( 3 )
 | 
			
		||||
 | 
			
		||||
[node name="Display" type="Label" parent="CanvasLayer/Control/Console"]
 | 
			
		||||
margin_left = 20.0
 | 
			
		||||
margin_top = 70.0
 | 
			
		||||
margin_right = 550.0
 | 
			
		||||
margin_bottom = 480.0
 | 
			
		||||
custom_colors/font_color = Color( 0.6, 0.898039, 0.313726, 1 )
 | 
			
		||||
text = "Running debugger...
 | 
			
		||||
 | 
			
		||||
Debugging complete!"
 | 
			
		||||
 | 
			
		||||
[node name="Buttons" type="HBoxContainer" parent="CanvasLayer/Control/Console"]
 | 
			
		||||
margin_left = 20.0
 | 
			
		||||
margin_top = 480.0
 | 
			
		||||
margin_right = 550.0
 | 
			
		||||
margin_bottom = 520.0
 | 
			
		||||
grow_horizontal = 2
 | 
			
		||||
grow_vertical = 2
 | 
			
		||||
alignment = 1
 | 
			
		||||
 | 
			
		||||
[node name="Button2" type="Button" parent="CanvasLayer/Control/Console/Buttons"]
 | 
			
		||||
margin_left = 241.0
 | 
			
		||||
margin_right = 289.0
 | 
			
		||||
margin_bottom = 40.0
 | 
			
		||||
text = "Test"
 | 
			
		||||
 | 
			
		||||
[node name="ColorRect" type="ColorRect" parent="CanvasLayer/Control/Console"]
 | 
			
		||||
margin_left = 20.0
 | 
			
		||||
margin_top = 475.0
 | 
			
		||||
margin_right = 550.0
 | 
			
		||||
margin_bottom = 485.0
 | 
			
		||||
rect_scale = Vector2( 1, 0.5 )
 | 
			
		||||
color = Color( 0.6, 0.898039, 0.313726, 1 )
 | 
			
		||||
 | 
			
		||||
[node name="FadeRect" type="ColorRect" parent="CanvasLayer"]
 | 
			
		||||
visible = false
 | 
			
		||||
anchor_right = 1.0
 | 
			
		||||
anchor_bottom = 1.0
 | 
			
		||||
mouse_filter = 2
 | 
			
		||||
color = Color( 0, 0, 0, 1 )
 | 
			
		||||
script = SubResource( 2 )
 | 
			
		||||
							
								
								
									
										31
									
								
								Nodes/jump_platform.tscn
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										31
									
								
								Nodes/jump_platform.tscn
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,31 @@
 | 
			
		||||
[gd_scene load_steps=9 format=2]
 | 
			
		||||
 | 
			
		||||
[ext_resource path="res://Art/jump_platform1.png" type="Texture" id=1]
 | 
			
		||||
[ext_resource path="res://Art/jump_platform2.png" type="Texture" id=2]
 | 
			
		||||
[ext_resource path="res://Art/jump_platform3.png" type="Texture" id=3]
 | 
			
		||||
[ext_resource path="res://Art/jump_platform4.png" type="Texture" id=4]
 | 
			
		||||
[ext_resource path="res://Art/jump_platform5.png" type="Texture" id=5]
 | 
			
		||||
[ext_resource path="res://Art/jump_platform6.png" type="Texture" id=6]
 | 
			
		||||
[ext_resource path="res://Scripts/destroy_after_animation.gd" type="Script" id=7]
 | 
			
		||||
 | 
			
		||||
[sub_resource type="SpriteFrames" id=1]
 | 
			
		||||
animations = [ {
 | 
			
		||||
"frames": [ ExtResource( 1 ), ExtResource( 2 ), ExtResource( 3 ), ExtResource( 4 ), ExtResource( 5 ), ExtResource( 6 ) ],
 | 
			
		||||
"loop": false,
 | 
			
		||||
"name": "spawn",
 | 
			
		||||
"speed": 10.0
 | 
			
		||||
}, {
 | 
			
		||||
"frames": [ ExtResource( 6 ), ExtResource( 5 ), ExtResource( 4 ), ExtResource( 3 ), ExtResource( 2 ), ExtResource( 1 ) ],
 | 
			
		||||
"loop": false,
 | 
			
		||||
"name": "destroy",
 | 
			
		||||
"speed": 20.0
 | 
			
		||||
} ]
 | 
			
		||||
 | 
			
		||||
[node name="Platform" type="Node2D"]
 | 
			
		||||
 | 
			
		||||
[node name="AnimatedSprite" type="AnimatedSprite" parent="."]
 | 
			
		||||
frames = SubResource( 1 )
 | 
			
		||||
animation = "spawn"
 | 
			
		||||
frame = 5
 | 
			
		||||
playing = true
 | 
			
		||||
script = ExtResource( 7 )
 | 
			
		||||
		Reference in New Issue
	
	Block a user