Initial commit.

This commit is contained in:
Nolan Darilek 2019-09-09 15:03:48 -05:00
commit 2c5cde7457
6 changed files with 57 additions and 0 deletions

3
.gitmodules vendored Normal file
View File

@ -0,0 +1,3 @@
[submodule "addons/godot-accessibility"]
path = addons/godot-accessibility
url = https://gitlab.com/lightsoutgames/godot-accessibility.git

@ -0,0 +1 @@
Subproject commit d42d913f296d9a58d7458cbdc0fe6fd8224ab32e

26
project.godot Normal file
View File

@ -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" ]

13
scenes/Main.gd Normal file
View File

@ -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

6
scenes/Main.tscn Normal file
View File

@ -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 )

8
scripts/Globals.gd Normal file
View File

@ -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()