Initial commit
This commit is contained in:
8
scenes/killzone.tscn
Normal file
8
scenes/killzone.tscn
Normal file
@@ -0,0 +1,8 @@
|
||||
[gd_scene load_steps=2 format=3 uid="uid://bvnjq1jbeabd4"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://dlx37dl8br661" path="res://scripts/killzone.gd" id="1_xlapc"]
|
||||
|
||||
[node name="Killzone" type="Area2D"]
|
||||
script = ExtResource("1_xlapc")
|
||||
|
||||
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
|
||||
27
scenes/level.tscn
Normal file
27
scenes/level.tscn
Normal file
@@ -0,0 +1,27 @@
|
||||
[gd_scene load_steps=5 format=3 uid="uid://df7ey4cfprjit"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://07yvalnsoex7" path="res://scenes/player.tscn" id="1_2q6dc"]
|
||||
[ext_resource type="Script" uid="uid://bpuudy2mj7fjd" path="res://scripts/platform_handler.gd" id="1_w7c3h"]
|
||||
[ext_resource type="PackedScene" uid="uid://bvnjq1jbeabd4" path="res://scenes/killzone.tscn" id="3_w8frs"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_mx8sn"]
|
||||
size = Vector2(877, 113)
|
||||
|
||||
[node name="Level" type="Node2D"]
|
||||
|
||||
[node name="PlatformHandler" type="Node" parent="."]
|
||||
script = ExtResource("1_w7c3h")
|
||||
|
||||
[node name="Camera2D" type="Camera2D" parent="."]
|
||||
anchor_mode = 0
|
||||
|
||||
[node name="Player" parent="." instance=ExtResource("1_2q6dc")]
|
||||
unique_name_in_owner = true
|
||||
position = Vector2(215, 854)
|
||||
|
||||
[node name="Killzone" parent="." instance=ExtResource("3_w8frs")]
|
||||
position = Vector2(228, 1267)
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Killzone"]
|
||||
position = Vector2(154, -5)
|
||||
shape = SubResource("RectangleShape2D_mx8sn")
|
||||
15
scenes/level.tscn4204592114.tmp
Normal file
15
scenes/level.tscn4204592114.tmp
Normal file
@@ -0,0 +1,15 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://df7ey4cfprjit"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://07yvalnsoex7" path="res://scenes/player.tscn" id="1_2q6dc"]
|
||||
[ext_resource type="Script" uid="uid://bpuudy2mj7fjd" path="res://scripts/platform_handler.gd" id="1_w7c3h"]
|
||||
|
||||
[node name="Level" type="Node2D"]
|
||||
|
||||
[node name="PlatformHandler" type="Node" parent="."]
|
||||
script = ExtResource("1_w7c3h")
|
||||
|
||||
[node name="Camera2D" type="Camera2D" parent="."]
|
||||
anchor_mode = 0
|
||||
|
||||
[node name="Player" parent="." instance=ExtResource("1_2q6dc")]
|
||||
position = Vector2(354, 464)
|
||||
15
scenes/level.tscn4212059997.tmp
Normal file
15
scenes/level.tscn4212059997.tmp
Normal file
@@ -0,0 +1,15 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://df7ey4cfprjit"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://07yvalnsoex7" path="res://scenes/player.tscn" id="1_2q6dc"]
|
||||
[ext_resource type="Script" uid="uid://bpuudy2mj7fjd" path="res://scripts/platform_handler.gd" id="1_w7c3h"]
|
||||
|
||||
[node name="Level" type="Node2D"]
|
||||
|
||||
[node name="PlatformHandler" type="Node" parent="."]
|
||||
script = ExtResource("1_w7c3h")
|
||||
|
||||
[node name="Camera2D" type="Camera2D" parent="."]
|
||||
anchor_mode = 0
|
||||
|
||||
[node name="Player" parent="." instance=ExtResource("1_2q6dc")]
|
||||
position = Vector2(354, 464)
|
||||
11
scenes/platform.gd
Normal file
11
scenes/platform.gd
Normal file
@@ -0,0 +1,11 @@
|
||||
extends AnimatableBody2D
|
||||
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready() -> void:
|
||||
pass # Replace with function body.
|
||||
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
func _process(delta: float) -> void:
|
||||
pass
|
||||
1
scenes/platform.gd.uid
Normal file
1
scenes/platform.gd.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://7trtklxye7up
|
||||
22
scenes/platform.tscn
Normal file
22
scenes/platform.tscn
Normal file
@@ -0,0 +1,22 @@
|
||||
[gd_scene load_steps=4 format=3 uid="uid://0851lly0y3wb"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://bjl7pb5j1sf53" path="res://assets/sprites/platforms.png" id="1_ba0x2"]
|
||||
[ext_resource type="Script" uid="uid://7trtklxye7up" path="res://scenes/platform.gd" id="1_nlgqw"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_ba0x2"]
|
||||
size = Vector2(32, 9.05475)
|
||||
|
||||
[node name="Platform" type="AnimatableBody2D"]
|
||||
scale = Vector2(2, 2)
|
||||
script = ExtResource("1_nlgqw")
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||
position = Vector2(0, -4.5)
|
||||
texture = ExtResource("1_ba0x2")
|
||||
region_enabled = true
|
||||
region_rect = Rect2(16, 0, 32, 9)
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
position = Vector2(0, -4.44167)
|
||||
shape = SubResource("RectangleShape2D_ba0x2")
|
||||
one_way_collision = true
|
||||
18
scenes/player.tscn
Normal file
18
scenes/player.tscn
Normal file
@@ -0,0 +1,18 @@
|
||||
[gd_scene load_steps=4 format=3 uid="uid://07yvalnsoex7"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://ddd236iwmyh0r" path="res://assets/icon.svg" id="1_3vyb7"]
|
||||
[ext_resource type="Script" uid="uid://bgahsyy7gxau4" path="res://scripts/player.gd" id="1_g2els"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_g2els"]
|
||||
size = Vector2(128, 128)
|
||||
|
||||
[node name="Player" type="CharacterBody2D"]
|
||||
z_index = 5
|
||||
scale = Vector2(0.2, 0.2)
|
||||
script = ExtResource("1_g2els")
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||
texture = ExtResource("1_3vyb7")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource("RectangleShape2D_g2els")
|
||||
Reference in New Issue
Block a user