From 0366f2cf416eb2150020e13d7abdb2ae0b8eaf0f Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Mon, 2 Oct 2023 21:27:42 +0200 Subject: [PATCH 1/2] Import coal --- entity/coal.png.import | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 entity/coal.png.import diff --git a/entity/coal.png.import b/entity/coal.png.import new file mode 100644 index 0000000..93a9252 --- /dev/null +++ b/entity/coal.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://bnfwmlf7ems16" +path="res://.godot/imported/coal.png-bae62eb66a24aa48a4fb6fc311fab196.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://entity/coal.png" +dest_files=["res://.godot/imported/coal.png-bae62eb66a24aa48a4fb6fc311fab196.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=1 From 2efdb5ebee1d58a92a8a23f446689ff45f76cd03 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Mon, 2 Oct 2023 21:27:52 +0200 Subject: [PATCH 2/2] Don't crash if no place to spawn --- game/game.gd | 3 +++ 1 file changed, 3 insertions(+) diff --git a/game/game.gd b/game/game.gd index 6800cf5..3211d6f 100644 --- a/game/game.gd +++ b/game/game.gd @@ -92,6 +92,9 @@ func _on_ghost_requested(scene: PackedScene, texture: Texture2D): func _on_ghost_materialize(): var instantiated = ghost.materialize() + if not instantiated: + print("[Game] The ghost can't materialize; the spawning is cancelled!") + return var spawner = instantiated.find_child("Spawner") if spawner != null: spawner.target = self