mirror of
https://github.com/lightsoutgames/godot-accessible-starter.git
synced 2024-11-22 06:05:57 +00:00
Initial commit.
This commit is contained in:
commit
2c5cde7457
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
[submodule "addons/godot-accessibility"]
|
||||||
|
path = addons/godot-accessibility
|
||||||
|
url = https://gitlab.com/lightsoutgames/godot-accessibility.git
|
1
addons/godot-accessibility
Submodule
1
addons/godot-accessibility
Submodule
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit d42d913f296d9a58d7458cbdc0fe6fd8224ab32e
|
26
project.godot
Normal file
26
project.godot
Normal 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
13
scenes/Main.gd
Normal 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
6
scenes/Main.tscn
Normal 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
8
scripts/Globals.gd
Normal 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()
|
Loading…
Reference in New Issue
Block a user