From 2c5cde7457a0570e4d6056b733ca56cf756b2d17 Mon Sep 17 00:00:00 2001 From: Nolan Darilek Date: Mon, 9 Sep 2019 15:03:48 -0500 Subject: [PATCH] Initial commit. --- .gitmodules | 3 +++ addons/godot-accessibility | 1 + project.godot | 26 ++++++++++++++++++++++++++ scenes/Main.gd | 13 +++++++++++++ scenes/Main.tscn | 6 ++++++ scripts/Globals.gd | 8 ++++++++ 6 files changed, 57 insertions(+) create mode 100644 .gitmodules create mode 160000 addons/godot-accessibility create mode 100644 project.godot create mode 100644 scenes/Main.gd create mode 100644 scenes/Main.tscn create mode 100644 scripts/Globals.gd diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..b9f1e60 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "addons/godot-accessibility"] + path = addons/godot-accessibility + url = https://gitlab.com/lightsoutgames/godot-accessibility.git diff --git a/addons/godot-accessibility b/addons/godot-accessibility new file mode 160000 index 0000000..d42d913 --- /dev/null +++ b/addons/godot-accessibility @@ -0,0 +1 @@ +Subproject commit d42d913f296d9a58d7458cbdc0fe6fd8224ab32e diff --git a/project.godot b/project.godot new file mode 100644 index 0000000..3542c94 --- /dev/null +++ b/project.godot @@ -0,0 +1,26 @@ +; 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=4 + +_global_script_classes=[ ] +_global_script_class_icons={ + +} + +[application] + +run/main_scene="res://scenes/Main.tscn" + +[autoload] + +Globals="*res://scripts/Globals.gd" + +[editor_plugins] + +enabled=[ "godot-accessibility" ] diff --git a/scenes/Main.gd b/scenes/Main.gd new file mode 100644 index 0000000..463fd62 --- /dev/null +++ b/scenes/Main.gd @@ -0,0 +1,13 @@ +extends Node + +# Declare member variables here. Examples: +# var a = 2 +# var b = "text" + +# Called when the node enters the scene tree for the first time. +func _ready(): + Globals.tts.speak("Hello, world.", true) + +# Called every frame. 'delta' is the elapsed time since the previous frame. +#func _process(delta): +# pass diff --git a/scenes/Main.tscn b/scenes/Main.tscn new file mode 100644 index 0000000..0fc71d5 --- /dev/null +++ b/scenes/Main.tscn @@ -0,0 +1,6 @@ +[gd_scene load_steps=2 format=2] + +[ext_resource path="res://scenes/Main.gd" type="Script" id=1] + +[node name="Main" type="Node"] +script = ExtResource( 1 ) diff --git a/scripts/Globals.gd b/scripts/Globals.gd new file mode 100644 index 0000000..6c4fef6 --- /dev/null +++ b/scripts/Globals.gd @@ -0,0 +1,8 @@ +extends Node + +const TTS = preload("res://addons/godot-tts/godot_tts.gdns") +var tts + +# Called when the node enters the scene tree for the first time. +func _ready(): + tts = TTS.new()