Add player and main scene.

This commit is contained in:
Nolan Darilek 2019-09-03 08:46:45 -05:00
parent f7db1ddff3
commit 4762af0840
4 changed files with 27 additions and 3 deletions

7
main.tscn Normal file
View 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
View 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

View File

@ -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 )

View File

@ -15,7 +15,7 @@ _global_script_class_icons={
[application]
run/main_scene="res://player.tscn"
run/main_scene="res://main.tscn"
[autoload]