This commit is contained in:
megamichi 2024-10-01 15:56:30 +02:00
commit 80f2563cdc
95 changed files with 3327 additions and 0 deletions

View file

@ -0,0 +1,13 @@
extends Marker2D
var speed
func _ready() -> void:
speed = $"/root/Global".speed
func _spawn() -> void:
var wolke = preload("res://scenes/Wolke/wolke.tscn").instantiate()
wolke.global_position.y = randi_range(0,50)
$"../WolkenTimer".wait_time = randf_range(0.5,1.5)
add_child(wolke)

13
scenes/Wolke/wolke.gd Normal file
View file

@ -0,0 +1,13 @@
extends Sprite2D
#var sca: float
var speed: float
# Initialisierung in der _ready Methode
func _ready() -> void:
speed = 10*randi_range(1, 5)
frame = randi_range(0,4)
self_modulate = Color(1,1,1,randf_range(0,0.5))
func _process(delta: float) -> void:
global_position.x -= speed * delta

10
scenes/Wolke/wolke.tscn Normal file
View file

@ -0,0 +1,10 @@
[gd_scene load_steps=3 format=3 uid="uid://bky81sd1m7fm7"]
[ext_resource type="Texture2D" uid="uid://b03sbc7akorka" path="res://scenes/Wolke/wolken.png" id="1_c6lhp"]
[ext_resource type="Script" path="res://scenes/Wolke/wolke.gd" id="2_tsh5n"]
[node name="Wolke" type="Sprite2D"]
texture_filter = 1
texture = ExtResource("1_c6lhp")
hframes = 5
script = ExtResource("2_tsh5n")

BIN
scenes/Wolke/wolken.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 934 B

View file

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://b03sbc7akorka"
path="res://.godot/imported/wolken.png-7359136969363c0ed69a48c0ef5624bf.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://scenes/Wolke/wolken.png"
dest_files=["res://.godot/imported/wolken.png-7359136969363c0ed69a48c0ef5624bf.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=1
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=0