game: add godot project
This commit is contained in:
22
scenes/player.tscn
Normal file
22
scenes/player.tscn
Normal file
@@ -0,0 +1,22 @@
|
||||
[gd_scene load_steps=5 format=3 uid="uid://ca2so8fm3q8fe"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://5x5wimok8uw2" path="res://assets/sprites/roguelikeChar_transparent.png" id="1_3vyb7"]
|
||||
[ext_resource type="Script" uid="uid://cvqaxckx4num3" path="res://scenes/player.gd" id="1_g2els"]
|
||||
[ext_resource type="PackedScene" uid="uid://cdojqe2m4kxx1" path="res://scenes/attacks/attack_sword.tscn" id="3_qhqgy"]
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_3vyb7"]
|
||||
radius = 8.0
|
||||
|
||||
[node name="Player" type="CharacterBody2D" groups=["damagable", "player"]]
|
||||
collision_layer = 0
|
||||
script = ExtResource("1_g2els")
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||
texture = ExtResource("1_3vyb7")
|
||||
region_enabled = true
|
||||
region_rect = Rect2(0, 104, 16, 14)
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource("CircleShape2D_3vyb7")
|
||||
|
||||
[node name="AttackSword" parent="." instance=ExtResource("3_qhqgy")]
|
Reference in New Issue
Block a user