mirror of
https://github.com/lightsoutgames/godot-accessibility.git
synced 2024-12-22 07:35:56 +00:00
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:
parent
323d6bcc25
commit
877effcf54
9
globals.gd
Normal file
9
globals.gd
Normal 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
3
player.tscn
Normal file
|
@ -0,0 +1,3 @@
|
|||
[gd_scene format=2]
|
||||
|
||||
[node name="player" type="Area2D"]
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user