Demo reel build
This commit is contained in:
29
src/items/restorative/Restorative.cs
Normal file
29
src/items/restorative/Restorative.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
using Chickensoft.AutoInject;
|
||||
using Chickensoft.Introspection;
|
||||
using GameJamDungeon;
|
||||
using Godot;
|
||||
|
||||
[Meta(typeof(IAutoNode))]
|
||||
public partial class Restorative : Node3D
|
||||
{
|
||||
public override void _Notification(int what) => this.Notify(what);
|
||||
|
||||
[Dependency] public IGameRepo GameRepo => this.DependOn<IGameRepo>();
|
||||
[Dependency] public IGameEventDepot GameEventDepot => this.DependOn<IGameEventDepot>();
|
||||
|
||||
[Node] public Area3D Pickup { get; set; } = default!;
|
||||
|
||||
public int VTRestoreAmount => 4;
|
||||
|
||||
public void OnReady()
|
||||
{
|
||||
Pickup.BodyEntered += OnEntered;
|
||||
}
|
||||
|
||||
public void OnEntered(Node3D body)
|
||||
{
|
||||
GameEventDepot.OnRestorativePickedUp(this);
|
||||
QueueFree();
|
||||
}
|
||||
|
||||
}
|
||||
26
src/items/restorative/Restorative.tscn
Normal file
26
src/items/restorative/Restorative.tscn
Normal file
@@ -0,0 +1,26 @@
|
||||
[gd_scene load_steps=4 format=3 uid="uid://dofju2wfj12y4"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://dy6iul5xgcj47" path="res://src/items/restorative/textures/divinity recall 2.PNG" id="1_1rwq6"]
|
||||
[ext_resource type="Script" path="res://src/items/restorative/Restorative.cs" id="1_3beyl"]
|
||||
|
||||
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_o8f22"]
|
||||
|
||||
[node name="Restorative" type="Node3D"]
|
||||
script = ExtResource("1_3beyl")
|
||||
|
||||
[node name="Sprite3D" type="Sprite3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.363669, 0)
|
||||
pixel_size = 0.001
|
||||
billboard = 2
|
||||
shaded = true
|
||||
texture_filter = 0
|
||||
render_priority = 100
|
||||
texture = ExtResource("1_1rwq6")
|
||||
|
||||
[node name="Pickup" type="Area3D" parent="."]
|
||||
unique_name_in_owner = true
|
||||
collision_layer = 4
|
||||
collision_mask = 4
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="Pickup"]
|
||||
shape = SubResource("CapsuleShape3D_o8f22")
|
||||
BIN
src/items/restorative/textures/divinity recall 2.PNG
Normal file
BIN
src/items/restorative/textures/divinity recall 2.PNG
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 5.3 KiB |
34
src/items/restorative/textures/divinity recall 2.PNG.import
Normal file
34
src/items/restorative/textures/divinity recall 2.PNG.import
Normal file
@@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://dy6iul5xgcj47"
|
||||
path="res://.godot/imported/divinity recall 2.PNG-b9609d2630483f927a00266698997060.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://src/items/restorative/textures/divinity recall 2.PNG"
|
||||
dest_files=["res://.godot/imported/divinity recall 2.PNG-b9609d2630483f927a00266698997060.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=0
|
||||
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
|
||||
Reference in New Issue
Block a user