updated to godot 4.2 - started psychrichapp

This commit is contained in:
Jaap Marsman 2023-12-03 10:19:32 +08:00
parent ae2959febb
commit 07356f3356
15 changed files with 216 additions and 17 deletions

View File

@ -12,7 +12,7 @@ config_version=5
config/name="Digibord Tools"
run/main_scene="res://startup.tscn"
config/features=PackedStringArray("4.1")
config/features=PackedStringArray("4.2")
config/icon="res://icon.png"
[display]

View File

@ -12,7 +12,7 @@ config_version=5
config/name="Education Philosophy"
run/main_scene="res://main_screen.tscn"
config/features=PackedStringArray("4.1")
config/features=PackedStringArray("4.2")
config/icon="res://icon.png"
[gui]

View File

@ -32,6 +32,7 @@ current_scene="res://start_scene.tscn"
center_split_offset=0
selected_default_debugger_tab_idx=0
selected_main_editor_idx=0
selected_bottom_panel_item=0
[ScriptEditor]

View File

@ -1,8 +1,8 @@
ea4bc82a6ad023ab7ee23ee620429895
::res://::1691267341
default_env.tres::Environment::3622943635132553652::1678098643::0::1::::<><>::
icon.png::CompressedTexture2D::7611875573250826836::1670933066::1678098632::1::::<><>::
start_scene.tscn::PackedScene::4320090768939082783::1678098643::0::1::::<><>::
::res://notes/::1673146558
main_ideas.md::TextFile::-1::1673146558::0::1::::<><>::
pseudo_code.gd::GDScript::-1::1678098622::0::1::::<>RefCounted<>::
::res://::1701562051
default_env.tres::Environment::3622943635132553652::1691284004::0::1::::<><>::
icon.png::CompressedTexture2D::7611875573250826836::1691284004::1691284004::1::::<><>::
start_scene.tscn::PackedScene::4320090768939082783::1691284004::0::1::::<><>::
::res://notes/::1691284004
main_ideas.md::TextFile::-1::1691284004::0::1::::<><>::
pseudo_code.gd::GDScript::-1::1691284004::0::1::::<>RefCounted<>::

View File

@ -9,7 +9,7 @@ Anim={
"grid_step": Vector2(8, 8),
"grid_visibility": 1,
"ofs": Vector2(-277.468, -149.175),
"primary_grid_steps": 8,
"primary_grid_step": Vector2i(8, 8),
"show_edit_locks": true,
"show_guides": true,
"show_helpers": false,

View File

@ -12,7 +12,7 @@ config_version=5
config/name="FlashMaths"
run/main_scene="res://start_scene.tscn"
config/features=PackedStringArray("4.1")
config/features=PackedStringArray("4.2")
config/icon="res://icon.png"
[gui]

2
psych_rich/.gitattributes vendored Normal file
View File

@ -0,0 +1,2 @@
# Normalize EOL for all files that Git considers text files.
* text=auto eol=lf

2
psych_rich/.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
# Godot 4+ specific ignores
.godot/

1
psych_rich/icon.svg Normal file
View File

@ -0,0 +1 @@
<svg height="128" width="128" xmlns="http://www.w3.org/2000/svg"><rect x="2" y="2" width="124" height="124" rx="14" fill="#363d52" stroke="#212532" stroke-width="4"/><g transform="scale(.101) translate(122 122)"><g fill="#fff"><path d="M105 673v33q407 354 814 0v-33z"/><path fill="#478cbf" d="m105 673 152 14q12 1 15 14l4 67 132 10 8-61q2-11 15-15h162q13 4 15 15l8 61 132-10 4-67q3-13 15-14l152-14V427q30-39 56-81-35-59-83-108-43 20-82 47-40-37-88-64 7-51 8-102-59-28-123-42-26 43-46 89-49-7-98 0-20-46-46-89-64 14-123 42 1 51 8 102-48 27-88 64-39-27-82-47-48 49-83 108 26 42 56 81zm0 33v39c0 276 813 276 813 0v-39l-134 12-5 69q-2 10-14 13l-162 11q-12 0-16-11l-10-65H447l-10 65q-4 11-16 11l-162-11q-12-3-14-13l-5-69z"/><path d="M483 600c3 34 55 34 58 0v-86c-3-34-55-34-58 0z"/><circle cx="725" cy="526" r="90"/><circle cx="299" cy="526" r="90"/></g><g fill="#414042"><circle cx="307" cy="532" r="60"/><circle cx="717" cy="532" r="60"/></g></g></svg>

After

Width:  |  Height:  |  Size: 950 B

12
psych_rich/main.gd Normal file
View File

@ -0,0 +1,12 @@
extends Node2D
var total_score : int
# Called when the node enters the scene tree for the first time.
func _ready():
pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
pass

160
psych_rich/main.tscn Normal file
View File

@ -0,0 +1,160 @@
[gd_scene load_steps=2 format=3 uid="uid://dr7b0v3bcngc3"]
[ext_resource type="Script" path="res://main.gd" id="1_byteu"]
[node name="Main" type="Node2D"]
script = ExtResource("1_byteu")
[node name="TitleCard" type="Node2D" parent="."]
visible = false
[node name="Title" type="Label" parent="TitleCard"]
offset_left = 495.0
offset_top = 156.0
offset_right = 776.0
offset_bottom = 179.0
text = "How psychologically rich is your life?"
[node name="Instructions" type="Label" parent="TitleCard"]
offset_left = 495.0
offset_top = 156.0
offset_right = 776.0
offset_bottom = 179.0
text = "We define a psychologically rich life as a life characterized by variety, depth, and interest. A life could be psychologically rich if a person
experiences a variety of interesting things, and/or feels and appreciates a variety of deep emotions via first-hand experiences or vicarious
experiences such as novels, films, and sports on TV. Please indicate the degree to which you agree or disagree with each of the following
statements, using the 17 point scale below."
[node name="Button" type="Button" parent="TitleCard"]
offset_left = 398.0
offset_top = 182.0
offset_right = 444.0
offset_bottom = 213.0
text = "Start"
[node name="QuestionCard" type="Node2D" parent="."]
position = Vector2(85, 162)
[node name="ButtonsRow" type="HBoxContainer" parent="QuestionCard"]
offset_left = 74.0
offset_top = 204.0
offset_right = 1050.0
offset_bottom = 244.0
[node name="Score1" type="Button" parent="QuestionCard/ButtonsRow"]
layout_mode = 2
text = "Strongly Disagree"
[node name="Score2" type="Button" parent="QuestionCard/ButtonsRow"]
layout_mode = 2
text = "Disagree"
[node name="Score3" type="Button" parent="QuestionCard/ButtonsRow"]
layout_mode = 2
text = "Slightly Disagree"
[node name="Score4" type="Button" parent="QuestionCard/ButtonsRow"]
layout_mode = 2
text = "Neither Agree nor Disagree"
[node name="Score5" type="Button" parent="QuestionCard/ButtonsRow"]
layout_mode = 2
text = "Slightly Agree"
[node name="Score6" type="Button" parent="QuestionCard/ButtonsRow"]
layout_mode = 2
text = "Agree"
[node name="Score7" type="Button" parent="QuestionCard/ButtonsRow"]
layout_mode = 2
text = "Strongly Agree"
[node name="Question" type="Node2D" parent="QuestionCard"]
position = Vector2(129, 104)
[node name="Q1" type="Label" parent="QuestionCard/Question"]
offset_right = 40.0
offset_bottom = 23.0
text = "My life has been psychologically rich"
[node name="Q2" type="Label" parent="QuestionCard/Question"]
offset_right = 40.0
offset_bottom = 23.0
text = "My life has been experientially rich"
[node name="Q3" type="Label" parent="QuestionCard/Question"]
offset_right = 40.0
offset_bottom = 23.0
text = "My life has been emotionally rich"
[node name="Q4" type="Label" parent="QuestionCard/Question"]
offset_right = 40.0
offset_bottom = 23.0
text = "I have had a lot of interesting experiences"
[node name="Q5" type="Label" parent="QuestionCard/Question"]
offset_right = 40.0
offset_bottom = 23.0
text = "I have had a lot of novel experiences"
[node name="Q6" type="Label" parent="QuestionCard/Question"]
offset_right = 40.0
offset_bottom = 23.0
text = "My life has been full of unique, unusual experiences"
[node name="Q7" type="Label" parent="QuestionCard/Question"]
offset_right = 40.0
offset_bottom = 23.0
text = "My life consists of rich, intense moments"
[node name="Q8" type="Label" parent="QuestionCard/Question"]
offset_right = 40.0
offset_bottom = 23.0
text = "My life has been dramatic"
[node name="Q9" type="Label" parent="QuestionCard/Question"]
offset_right = 40.0
offset_bottom = 23.0
text = "I experience a full range of emotions via first-hand experiences such as travel and attending concerts"
[node name="Q10" type="Label" parent="QuestionCard/Question"]
offset_right = 40.0
offset_bottom = 23.0
text = "I have a lot of personal stories to tell others"
[node name="Q11" type="Label" parent="QuestionCard/Question"]
offset_right = 40.0
offset_bottom = 23.0
text = "On my deathbed, I am likely to say “I had an interesting life”"
[node name="Q12" type="Label" parent="QuestionCard/Question"]
offset_right = 40.0
offset_bottom = 23.0
text = "On my deathbed, I am likely to say “I have seen and learned a lot”"
[node name="Q13" type="Label" parent="QuestionCard/Question"]
offset_right = 40.0
offset_bottom = 23.0
text = "My life would make a good novel or movie"
[node name="Q14" type="Label" parent="QuestionCard/Question"]
offset_right = 40.0
offset_bottom = 23.0
text = "My life has been monotonous (r)"
[node name="Q15" type="Label" parent="QuestionCard/Question"]
offset_right = 40.0
offset_bottom = 23.0
text = "I often feel bored with my life (r)"
[node name="Q16" type="Label" parent="QuestionCard/Question"]
offset_right = 40.0
offset_bottom = 23.0
text = "My life has been uneventful (r)"
[node name="Q17" type="Label" parent="QuestionCard/Question"]
offset_right = 40.0
offset_bottom = 23.0
text = "I cant remember the last time Ive done or experienced something new (r)"
[node name="ResultsCard" type="Node2D" parent="."]

21
psych_rich/project.godot Normal file
View File

@ -0,0 +1,21 @@
; Engine configuration file.
; It's best edited using the editor UI and not directly,
; since the parameters that go here are not all obvious.
;
; Format:
; [section] ; section goes between []
; param=value ; assign values to parameters
config_version=5
[application]
config/name="A Psychologically Rich Life"
run/main_scene="res://main.tscn"
config/features=PackedStringArray("4.2", "GL Compatibility")
config/icon="res://icon.svg"
[rendering]
renderer/rendering_method="gl_compatibility"
renderer/rendering_method.mobile="gl_compatibility"

View File

@ -11,5 +11,5 @@ config_version=5
[application]
config/name="SchoolBell"
config/features=PackedStringArray("4.1", "Forward Plus")
config/features=PackedStringArray("4.2", "Forward Plus")
config/icon="res://icon.svg"

File diff suppressed because one or more lines are too long

View File

@ -15,7 +15,7 @@ config/description="This Screen Starter can be used on any computer before you a
The screen effects are designed to be soothing yet provide some visual interest."
run/main_scene="res://main_scene.tscn"
config/features=PackedStringArray("4.1")
config/features=PackedStringArray("4.2")
config/macos_native_icon="res://logo.icns"
[display]