mirror of
https://github.com/Relintai/pandemonium_demo_projects.git
synced 2024-12-21 13:56:50 +01:00
Fix variable shadowing a native class.
This commit is contained in:
parent
8295671644
commit
2cbc3ea3af
@ -33,7 +33,7 @@ func _ready() -> void:
|
|||||||
rng.randf_range(0, camera_boundaries.size.x),
|
rng.randf_range(0, camera_boundaries.size.x),
|
||||||
rng.randf_range(0, camera_boundaries.size.y)
|
rng.randf_range(0, camera_boundaries.size.y)
|
||||||
)
|
)
|
||||||
var entity: KinematicBody2D = spawner.Entity.instance()
|
var entity: KinematicBody2D = spawner.entity.instance()
|
||||||
entity.global_position = new_pos
|
entity.global_position = new_pos
|
||||||
entity.player_agent = player.agent
|
entity.player_agent = player.agent
|
||||||
entity.start_speed = linear_speed_max
|
entity.start_speed = linear_speed_max
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
[gd_scene load_steps=12 format=2]
|
[gd_scene load_steps=12 format=3]
|
||||||
|
|
||||||
[ext_resource path="res://Demos/SeekFlee/Player.gd" type="Script" id=2]
|
[ext_resource path="res://Demos/SeekFlee/Player.gd" type="Script" id=2]
|
||||||
[ext_resource path="res://Demos/SeekFlee/SeekFleeDemo.gd" type="Script" id=3]
|
[ext_resource path="res://Demos/SeekFlee/SeekFleeDemo.gd" type="Script" id=3]
|
||||||
@ -74,7 +74,7 @@ shape = SubResource( 3 )
|
|||||||
|
|
||||||
[node name="Spawner" type="Node2D" parent="."]
|
[node name="Spawner" type="Node2D" parent="."]
|
||||||
script = ExtResource( 4 )
|
script = ExtResource( 4 )
|
||||||
Entity = ExtResource( 6 )
|
entity = ExtResource( 6 )
|
||||||
|
|
||||||
[node name="DemoInterface" parent="." instance=ExtResource( 5 )]
|
[node name="DemoInterface" parent="." instance=ExtResource( 5 )]
|
||||||
text_bbcode = "Seek & Flee Demo
|
text_bbcode = "Seek & Flee Demo
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
extends Node2D
|
extends Node2D
|
||||||
# Holds data to instantiate and configure a number of agent entities.
|
# Holds data to instantiate and configure a number of agent entities.
|
||||||
|
|
||||||
export (PackedScene) var Entity: PackedScene
|
export (PackedScene) var entity: PackedScene
|
||||||
export var entity_count := 10
|
export var entity_count := 10
|
||||||
export var entity_color := Color.blue
|
export var entity_color := Color.blue
|
||||||
|
Loading…
Reference in New Issue
Block a user