- added Player
This commit is contained in:
parent
72989b8438
commit
b88d68d27b
12
Characters/Player/Player.tscn
Normal file
12
Characters/Player/Player.tscn
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
[gd_scene load_steps=3 format=2]
|
||||||
|
|
||||||
|
[ext_resource path="res://Characters/Player/PlayerMovement.gd" type="Script" id=1]
|
||||||
|
|
||||||
|
[sub_resource type="CylinderShape" id=1]
|
||||||
|
|
||||||
|
[node name="Player" type="KinematicBody"]
|
||||||
|
script = ExtResource( 1 )
|
||||||
|
|
||||||
|
[node name="Collider" type="CollisionShape" parent="."]
|
||||||
|
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0 )
|
||||||
|
shape = SubResource( 1 )
|
13
Characters/Player/PlayerMovement.gd
Normal file
13
Characters/Player/PlayerMovement.gd
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
extends KinematicBody
|
||||||
|
|
||||||
|
# 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
|
Loading…
x
Reference in New Issue
Block a user