Skip to content
Snippets Groups Projects
Commit 1b6bf933 authored by Vishnu Menon's avatar Vishnu Menon :bulb:
Browse files

ad eleinna's exhibit, new image for nathan

parent 4a2706dc
Branches
No related tags found
No related merge requests found
assets/paintings/eleinna.png

650 KiB

[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://mae08e1jdlda"
path="res://.godot/imported/eleinna.png-8520785fdc609e5615e1b3751434db29.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/paintings/eleinna.png"
dest_files=["res://.godot/imported/eleinna.png-8520785fdc609e5615e1b3751434db29.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
assets/paintings/nathan.png

95.3 KiB | W: | H:

assets/paintings/nathan.png

415 KiB | W: | H:

assets/paintings/nathan.png
assets/paintings/nathan.png
assets/paintings/nathan.png
assets/paintings/nathan.png
  • 2-up
  • Swipe
  • Onion skin
This diff is collapsed.
...@@ -7,7 +7,7 @@ extends Area2D ...@@ -7,7 +7,7 @@ extends Area2D
func body_entered(body): func body_entered(body):
if body.name == "player": if body.name == "player":
body.set_interaction("plaque", [author, caption]) body.set_interaction("plaque", [author, caption, tagline])
func body_exited(body): func body_exited(body):
......
...@@ -25,6 +25,7 @@ var frame_last_jump = 0.0 ...@@ -25,6 +25,7 @@ var frame_last_jump = 0.0
var interaction_type = null var interaction_type = null
var author var author
var caption var caption
var tagline
var painting var painting
var paused = false var paused = false
...@@ -40,7 +41,10 @@ func _process(delta): ...@@ -40,7 +41,10 @@ func _process(delta):
else: else:
if interaction_type == "plaque": if interaction_type == "plaque":
paused = true paused = true
if tagline == "":
$textbox.load_block(author + "\n\n" + caption) $textbox.load_block(author + "\n\n" + caption)
else:
$textbox.load_block(author + "\n" + tagline + "\n\n" + caption)
elif interaction_type == "painting": elif interaction_type == "painting":
paused = true paused = true
$easel.set_image(painting) $easel.set_image(painting)
...@@ -103,6 +107,7 @@ func set_interaction(type, data): ...@@ -103,6 +107,7 @@ func set_interaction(type, data):
elif type == "plaque": elif type == "plaque":
author = data[0] author = data[0]
caption = data[1] caption = data[1]
tagline = data[2]
interaction_type = type interaction_type = type
else: # type == "exit" else: # type == "exit"
if interaction_type == data[0]: if interaction_type == data[0]:
......
...@@ -41,7 +41,7 @@ func load_block(block): ...@@ -41,7 +41,7 @@ func load_block(block):
for word in block.split(" "): for word in block.split(" "):
if current_chunk == "": if current_chunk == "":
current_chunk = word current_chunk = word
elif (current_chunk + " " + word).length() <= 220: elif (current_chunk + " " + word).length() <= 236:
current_chunk += (" " + word) current_chunk += (" " + word)
else: else:
chunks.append(current_chunk) chunks.append(current_chunk)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment