mirror of
https://github.com/lightsoutgames/godot-accessibility.git
synced 2024-11-22 11:55:56 +00:00
Remove sample game and refactor plugin for use in separate games. The standalone game will probably be refactored to an accessible starter game.
This commit is contained in:
parent
fc985bfd93
commit
d42d913f29
|
@ -1,8 +0,0 @@
|
||||||
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()
|
|
13
main.gd
13
main.gd
|
@ -1,13 +0,0 @@
|
||||||
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():
|
|
||||||
pass # Replace with function body.
|
|
||||||
|
|
||||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
|
||||||
#func _process(delta):
|
|
||||||
# pass
|
|
10
main.tscn
10
main.tscn
|
@ -1,10 +0,0 @@
|
||||||
[gd_scene load_steps=3 format=2]
|
|
||||||
|
|
||||||
[ext_resource path="res://main.gd" type="Script" id=1]
|
|
||||||
[ext_resource path="res://player.tscn" type="PackedScene" id=2]
|
|
||||||
|
|
||||||
[node name="Main" type="Node"]
|
|
||||||
editor/display_folded = true
|
|
||||||
script = ExtResource( 1 )
|
|
||||||
|
|
||||||
[node name="Player" parent="." instance=ExtResource( 2 )]
|
|
20
player.gd
20
player.gd
|
@ -1,20 +0,0 @@
|
||||||
extends Area2D
|
|
||||||
|
|
||||||
# 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):
|
|
||||||
if Input.is_action_just_pressed("speak_coordinates"):
|
|
||||||
Globals.tts.speak("%s, %s" % [position.x, position.y], true)
|
|
||||||
elif Input.is_action_just_pressed("speak_heading"):
|
|
||||||
Globals.tts.speak("%s degrees" % global_rotation_degrees, true)
|
|
||||||
elif Input.is_action_pressed("quit"):
|
|
||||||
get_tree().quit()
|
|
||||||
elif Input.is_action_pressed("stop_speech"):
|
|
||||||
Globals.tts.stop()
|
|
|
@ -1,6 +0,0 @@
|
||||||
[gd_scene load_steps=2 format=2]
|
|
||||||
|
|
||||||
[ext_resource path="res://player.gd" type="Script" id=1]
|
|
||||||
|
|
||||||
[node name="Player" type="Area2D"]
|
|
||||||
script = ExtResource( 1 )
|
|
|
@ -1,49 +0,0 @@
|
||||||
; 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://main.tscn"
|
|
||||||
|
|
||||||
[autoload]
|
|
||||||
|
|
||||||
Globals="*res://Globals.gd"
|
|
||||||
|
|
||||||
[editor_plugins]
|
|
||||||
|
|
||||||
enabled=[ "accessibility" ]
|
|
||||||
|
|
||||||
[input]
|
|
||||||
|
|
||||||
speak_coordinates={
|
|
||||||
"deadzone": 0.5,
|
|
||||||
"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":67,"unicode":0,"echo":false,"script":null)
|
|
||||||
]
|
|
||||||
}
|
|
||||||
speak_heading={
|
|
||||||
"deadzone": 0.5,
|
|
||||||
"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":72,"unicode":0,"echo":false,"script":null)
|
|
||||||
]
|
|
||||||
}
|
|
||||||
stop_speech={
|
|
||||||
"deadzone": 0.5,
|
|
||||||
"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":16777238,"unicode":0,"echo":false,"script":null)
|
|
||||||
]
|
|
||||||
}
|
|
||||||
quit={
|
|
||||||
"deadzone": 0.5,
|
|
||||||
"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":16777217,"unicode":0,"echo":false,"script":null)
|
|
||||||
]
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user