From 877effcf54a0616cf7ea913fdd5752f655ebaa7d Mon Sep 17 00:00:00 2001 From: Nolan Darilek Date: Mon, 2 Sep 2019 11:54:39 -0500 Subject: [PATCH] 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. --- globals.gd | 9 +++++++++ player.tscn | 3 +++ project.godot | 13 +++++++++++++ 3 files changed, 25 insertions(+) create mode 100644 globals.gd create mode 100644 player.tscn diff --git a/globals.gd b/globals.gd new file mode 100644 index 0000000..25ec1ff --- /dev/null +++ b/globals.gd @@ -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) diff --git a/player.tscn b/player.tscn new file mode 100644 index 0000000..b0b0c9c --- /dev/null +++ b/player.tscn @@ -0,0 +1,3 @@ +[gd_scene format=2] + +[node name="player" type="Area2D"] diff --git a/project.godot b/project.godot index 2012522..286788d 100644 --- a/project.godot +++ b/project.godot @@ -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