1
Fork 0
mirror of https://github.com/RYGhub/the-cold-night.git synced 2024-11-22 12:44:20 +00:00

🔧 Set Player and Enemy's alliances

This commit is contained in:
Steffo 2022-04-03 08:22:18 +02:00
parent 27e2c9e875
commit 7b190aaba1
Signed by: steffo
GPG key ID: 6965406171929D01
2 changed files with 10 additions and 2 deletions

View file

@ -1,9 +1,10 @@
[gd_scene load_steps=6 format=2] [gd_scene load_steps=7 format=2]
[ext_resource path="res://src/mechanics/Black.png" type="Texture" id=1] [ext_resource path="res://src/mechanics/Black.png" type="Texture" id=1]
[ext_resource path="res://src/entities/behaviours/ErraticMovement.tscn" type="PackedScene" id=2] [ext_resource path="res://src/entities/behaviours/ErraticMovement.tscn" type="PackedScene" id=2]
[ext_resource path="res://src/entities/behaviours/AttractedTo.tscn" type="PackedScene" id=3] [ext_resource path="res://src/entities/behaviours/AttractedTo.tscn" type="PackedScene" id=3]
[ext_resource path="res://src/entities/behaviours/Damageable.tscn" type="PackedScene" id=4] [ext_resource path="res://src/entities/behaviours/Damageable.tscn" type="PackedScene" id=4]
[ext_resource path="res://src/entities/behaviours/Alliance.tscn" type="PackedScene" id=5]
[sub_resource type="RectangleShape2D" id=1] [sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 16, 16 ) extents = Vector2( 16, 16 )
@ -21,3 +22,6 @@ texture = ExtResource( 1 )
[node name="ErraticMovement" parent="." instance=ExtResource( 2 )] [node name="ErraticMovement" parent="." instance=ExtResource( 2 )]
[node name="Damageable" parent="." instance=ExtResource( 4 )] [node name="Damageable" parent="." instance=ExtResource( 4 )]
[node name="Alliance" parent="." instance=ExtResource( 5 )]
alliance = -1

View file

@ -1,9 +1,10 @@
[gd_scene load_steps=6 format=2] [gd_scene load_steps=7 format=2]
[ext_resource path="res://src/mechanics/White.png" type="Texture" id=1] [ext_resource path="res://src/mechanics/White.png" type="Texture" id=1]
[ext_resource path="res://src/entities/behaviours/PlayerMovement.tscn" type="PackedScene" id=2] [ext_resource path="res://src/entities/behaviours/PlayerMovement.tscn" type="PackedScene" id=2]
[ext_resource path="res://src/entities/behaviours/BulletSpawn.tscn" type="PackedScene" id=3] [ext_resource path="res://src/entities/behaviours/BulletSpawn.tscn" type="PackedScene" id=3]
[ext_resource path="res://src/entities/behaviours/Damageable.tscn" type="PackedScene" id=4] [ext_resource path="res://src/entities/behaviours/Damageable.tscn" type="PackedScene" id=4]
[ext_resource path="res://src/entities/behaviours/Alliance.tscn" type="PackedScene" id=5]
[sub_resource type="RectangleShape2D" id=1] [sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 16, 16 ) extents = Vector2( 16, 16 )
@ -24,3 +25,6 @@ texture = ExtResource( 1 )
[node name="Damageable" parent="." instance=ExtResource( 4 )] [node name="Damageable" parent="." instance=ExtResource( 4 )]
health = 5 health = 5
max_health = 5 max_health = 5
[node name="Alliance" parent="." instance=ExtResource( 5 )]
alliance = 1