ft (very very wip): prey impl
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
[gd_scene load_steps=9 format=3 uid="uid://cum0iux1pv7bu"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://d1b3twb5c47c0" path="res://molecular/prey.gd" id="1_wojl0"]
|
||||
[ext_resource type="Texture2D" uid="uid://bhcb5g7g7um8" path="res://molecular/assets/prey/prey-dying-frame0.png" id="2_5mr0w"]
|
||||
[ext_resource type="Texture2D" uid="uid://bxn11avw7dykl" path="res://molecular/assets/prey/prey-dying-frame1.png" id="3_eomdj"]
|
||||
[ext_resource type="Texture2D" uid="uid://ctkehsavw6ghx" path="res://molecular/assets/prey/prey-healthy-frame0.png" id="4_t6vdg"]
|
||||
@@ -8,6 +7,24 @@
|
||||
[ext_resource type="Texture2D" uid="uid://btnyajci8ptb2" path="res://molecular/assets/prey/prey-injured-frame0.png" id="6_o44iv"]
|
||||
[ext_resource type="Texture2D" uid="uid://bqll8ge4cr2uf" path="res://molecular/assets/prey/prey-injured-frame1.png" id="7_wx0y7"]
|
||||
|
||||
[sub_resource type="GDScript" id="GDScript_56kmc"]
|
||||
script/source = "extends RigidBody2D
|
||||
|
||||
|
||||
# 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
|
||||
|
||||
|
||||
func _on_visible_on_screen_notifier_2d_screen_exited():
|
||||
queue_free();
|
||||
"
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_43b72"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
@@ -46,7 +63,7 @@ animations = [{
|
||||
|
||||
[node name="Prey" type="RigidBody2D"]
|
||||
gravity_scale = 0.379
|
||||
script = ExtResource("1_wojl0")
|
||||
script = SubResource("GDScript_56kmc")
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="VisibleOnScreenNotifier2D" type="VisibleOnScreenNotifier2D" parent="."]
|
||||
|
||||
Reference in New Issue
Block a user