Start creating a basic game in which to build this plugin.

Current features include:
 * A global script that initializes the TTS extension and speaks "Hello, world."
 * A player Area2D node.

Once this plugin gains more features, the basic game will be removed, and it will be built in the context of actual production games.
This commit is contained in:
Nolan Darilek 2019-09-02 11:54:39 -05:00
parent 323d6bcc25
commit 877effcf54
3 changed files with 25 additions and 0 deletions

9
globals.gd Normal file
View File

@ -0,0 +1,9 @@
extends Node
const TTS = preload("res://godot_tts.gdns")
var tts
# Called when the node enters the scene tree for the first time.
func _ready():
tts = TTS.new()
tts.speak("Hello, world.", true)

3
player.tscn Normal file
View File

@ -0,0 +1,3 @@
[gd_scene format=2]
[node name="player" type="Area2D"]

View File

@ -13,6 +13,14 @@ _global_script_class_icons={
}
[application]
run/main_scene="res://player.tscn"
[autoload]
Globals="*res://globals.gd"
[editor_plugins]
enabled=[ "accessibility" ]
@ -93,3 +101,8 @@ ui_end={
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777230,"unicode":0,"echo":false,"script":null)
]
}
default_environment=false
[input map]
custom_font=false