Enemy
This commit is contained in:
23
scenes/Game/Background/background.tscn
Normal file
23
scenes/Game/Background/background.tscn
Normal file
@ -0,0 +1,23 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://by4cti43klsp2"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://5bcs7peqaotp" path="res://scenes/Game/Background/parallax_background.tscn" id="1_ofe3s"]
|
||||
[ext_resource type="Texture2D" uid="uid://csqkeotrgdjmn" path="res://assets/Sunny Land Collection Files/Sunny Land Collection Files/Assets/Environments/Forest of Illusion/Forest of Illusion Expansion Pack/Layers/tiles.png" id="2_dhtsg"]
|
||||
|
||||
[node name="Background" type="Node2D"]
|
||||
|
||||
[node name="ParallaxBackground" parent="." instance=ExtResource("1_ofe3s")]
|
||||
|
||||
[node name="ParallaxBackground2" type="ParallaxBackground" parent="."]
|
||||
|
||||
[node name="ParallaxLayer" type="ParallaxLayer" parent="ParallaxBackground2"]
|
||||
|
||||
[node name="Tiles" type="Sprite2D" parent="ParallaxBackground2"]
|
||||
position = Vector2(575.5, 298.5)
|
||||
scale = Vector2(1.99479, 2.57721)
|
||||
texture = ExtResource("2_dhtsg")
|
||||
|
||||
[node name="Tiles2" type="Sprite2D" parent="ParallaxBackground2"]
|
||||
position = Vector2(575.5, 349)
|
||||
rotation = 3.14159
|
||||
scale = Vector2(1.99479, 2.57721)
|
||||
texture = ExtResource("2_dhtsg")
|
12
scenes/Game/Background/parallax_background.gd
Normal file
12
scenes/Game/Background/parallax_background.gd
Normal file
@ -0,0 +1,12 @@
|
||||
extends ParallaxBackground
|
||||
|
||||
const scrolling_seed = 100
|
||||
|
||||
# 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:
|
||||
#scroll_offset.x -= scrolling_seed * delta
|
14
scenes/Game/Background/parallax_background.tscn
Normal file
14
scenes/Game/Background/parallax_background.tscn
Normal file
@ -0,0 +1,14 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://5bcs7peqaotp"]
|
||||
|
||||
[ext_resource type="Script" path="res://scenes/Game/Background/parallax_background.gd" id="1_8gnjn"]
|
||||
[ext_resource type="Texture2D" uid="uid://pevtm2psr3ap" path="res://assets/Sunny Land Collection Files/Sunny Land Collection Files/Assets/Environments/Forest of Illusion/Forest of Illusion Expansion Pack/Layers/back.png" id="1_hlk2w"]
|
||||
|
||||
[node name="ParallaxBackground" type="ParallaxBackground"]
|
||||
script = ExtResource("1_8gnjn")
|
||||
|
||||
[node name="ParallaxLayer" type="ParallaxLayer" parent="."]
|
||||
|
||||
[node name="Back" type="Sprite2D" parent="ParallaxLayer"]
|
||||
position = Vector2(575.5, 326.5)
|
||||
scale = Vector2(1.99479, 2.37868)
|
||||
texture = ExtResource("1_hlk2w")
|
11
scenes/Game/Background/static_body_2d.gd
Normal file
11
scenes/Game/Background/static_body_2d.gd
Normal file
@ -0,0 +1,11 @@
|
||||
extends StaticBody2D
|
||||
|
||||
|
||||
# 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
|
Reference in New Issue
Block a user