add player movement
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
[gd_scene load_steps=8 format=3 uid="uid://3wumh6kpw3ai"]
|
||||
[gd_scene load_steps=9 format=3 uid="uid://3wumh6kpw3ai"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://pc081i405fo4" path="res://assets/sprites/knight.png" id="1_3vyb7"]
|
||||
[ext_resource type="Script" uid="uid://dkpsredq14h2l" path="res://scripts/player.gd" id="1_g2els"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_g2els"]
|
||||
atlas = ExtResource("1_3vyb7")
|
||||
@@ -42,6 +43,9 @@ animations = [{
|
||||
radius = 5.0
|
||||
|
||||
[node name="Player" type="CharacterBody2D"]
|
||||
script = ExtResource("1_g2els")
|
||||
speed = 130.0
|
||||
jump_velocity = -300.0
|
||||
|
||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
||||
position = Vector2(0, -12)
|
||||
|
||||
Reference in New Issue
Block a user