mirror of
https://github.com/lightsoutgames/godot-accessibility.git
synced 2024-11-24 21:05:57 +00:00
Add player and main scene.
This commit is contained in:
parent
f7db1ddff3
commit
4762af0840
7
main.tscn
Normal file
7
main.tscn
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
[gd_scene load_steps=2 format=2]
|
||||||
|
|
||||||
|
[ext_resource path="res://player.tscn" type="PackedScene" id=1]
|
||||||
|
|
||||||
|
[node name="Main" type="Node"]
|
||||||
|
|
||||||
|
[node name="Player" parent="." instance=ExtResource( 1 )]
|
13
player.gd
Normal file
13
player.gd
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
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():
|
||||||
|
pass # Replace with function body.
|
||||||
|
|
||||||
|
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||||
|
#func _process(delta):
|
||||||
|
# pass
|
|
@ -1,3 +1,7 @@
|
||||||
[gd_scene format=2]
|
[gd_scene load_steps=2 format=2]
|
||||||
|
|
||||||
[node name="player" type="Area2D"]
|
[ext_resource path="res://player.gd" type="Script" id=1]
|
||||||
|
|
||||||
|
[node name="Player" type="Area2D"]
|
||||||
|
position = Vector2( 2, 3 )
|
||||||
|
script = ExtResource( 1 )
|
||||||
|
|
|
@ -15,7 +15,7 @@ _global_script_class_icons={
|
||||||
|
|
||||||
[application]
|
[application]
|
||||||
|
|
||||||
run/main_scene="res://player.tscn"
|
run/main_scene="res://main.tscn"
|
||||||
|
|
||||||
[autoload]
|
[autoload]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user