started with psychrich app

This commit is contained in:
Jaap Marsman 2023-12-03 17:57:24 +08:00
parent 07356f3356
commit 561970fdaf
6 changed files with 2171 additions and 21 deletions

Binary file not shown.

Binary file not shown.

View File

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

View File

@ -1,38 +1,46 @@
[gd_scene load_steps=2 format=3 uid="uid://dr7b0v3bcngc3"] [gd_scene load_steps=3 format=3 uid="uid://dr7b0v3bcngc3"]
[ext_resource type="Script" path="res://main.gd" id="1_byteu"] [ext_resource type="Script" path="res://main.gd" id="1_byteu"]
[ext_resource type="Theme" uid="uid://dekd1tps61vy8" path="res://wb_theme.tres" id="2_arn03"]
[node name="Main" type="Node2D"] [node name="Main" type="Node2D"]
script = ExtResource("1_byteu") script = ExtResource("1_byteu")
[node name="TitleCard" type="Node2D" parent="."] [node name="TitleCard" type="CanvasLayer" parent="."]
visible = false
[node name="Title" type="Label" parent="TitleCard"] [node name="Panel" type="Panel" parent="TitleCard"]
offset_left = 495.0 offset_left = 41.0
offset_top = 156.0 offset_top = 32.0
offset_right = 776.0 offset_right = 81.0
offset_bottom = 179.0 offset_bottom = 72.0
theme = ExtResource("2_arn03")
[node name="VBoxContainer" type="VBoxContainer" parent="TitleCard"]
offset_right = 1031.0
offset_bottom = 158.0
alignment = 1
[node name="Title" type="Label" parent="TitleCard/VBoxContainer"]
layout_mode = 2
theme = ExtResource("2_arn03")
theme_override_font_sizes/font_size = 18
text = "How psychologically rich is your life?" text = "How psychologically rich is your life?"
[node name="Instructions" type="Label" parent="TitleCard"] [node name="Instructions" type="Label" parent="TitleCard/VBoxContainer"]
offset_left = 495.0 layout_mode = 2
offset_top = 156.0 theme = ExtResource("2_arn03")
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 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 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 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." statements."
[node name="Button" type="Button" parent="TitleCard"] [node name="Button" type="Button" parent="TitleCard/VBoxContainer"]
offset_left = 398.0 layout_mode = 2
offset_top = 182.0 theme = ExtResource("2_arn03")
offset_right = 444.0
offset_bottom = 213.0
text = "Start" text = "Start"
[node name="QuestionCard" type="Node2D" parent="."] [node name="QuestionCard" type="Node2D" parent="."]
visible = false
position = Vector2(85, 162) position = Vector2(85, 162)
[node name="ButtonsRow" type="HBoxContainer" parent="QuestionCard"] [node name="ButtonsRow" type="HBoxContainer" parent="QuestionCard"]
@ -158,3 +166,4 @@ offset_bottom = 23.0
text = "I cant remember the last time Ive done or experienced something new (r)" text = "I cant remember the last time Ive done or experienced something new (r)"
[node name="ResultsCard" type="Node2D" parent="."] [node name="ResultsCard" type="Node2D" parent="."]
visible = false

View File

@ -15,6 +15,18 @@ run/main_scene="res://main.tscn"
config/features=PackedStringArray("4.2", "GL Compatibility") config/features=PackedStringArray("4.2", "GL Compatibility")
config/icon="res://icon.svg" config/icon="res://icon.svg"
[display]
window/size/viewport_width=1280
window/size/viewport_height=720
window/stretch/mode="canvas_items"
window/stretch/aspect="expand"
[filesystem]
import/blender/enabled=false
import/fbx/enabled=false
[rendering] [rendering]
renderer/rendering_method="gl_compatibility" renderer/rendering_method="gl_compatibility"

2127
psych_rich/wb_theme.tres Normal file

File diff suppressed because one or more lines are too long