Make window always on top, add missing background

This commit is contained in:
Francois Belair 2020-02-04 12:35:46 -05:00
parent 3f58cc4921
commit 52ca9ade74
3 changed files with 15 additions and 4 deletions

View File

@ -43,7 +43,7 @@ margin_bottom = 100.0
rect_min_size = Vector2( 0, 84 ) rect_min_size = Vector2( 0, 84 )
bbcode_enabled = true bbcode_enabled = true
bbcode_text = "Group Behavior Demo bbcode_text = "Group Behavior Demo
Each of the \"Agents\" are both attempting to stay separated and within reach of their nearest group's center of mass." Each of the \"Agents\" are both attempting to stay separated from each other but within reach of their nearest group's center of mass."
text = "Group Behavior Demo text = "Group Behavior Demo
Each of the \"Agents\" are both attempting to stay separated and within reach of their nearest group's center of mass." Each of the \"Agents\" are both attempting to stay separated from each other but within reach of their nearest group's center of mass."
scroll_active = false scroll_active = false

View File

@ -1,4 +1,4 @@
[gd_scene load_steps=11 format=2] [gd_scene load_steps=12 format=2]
[ext_resource path="res://demos/SeekFlee/Boundary.gd" type="Script" id=1] [ext_resource path="res://demos/SeekFlee/Boundary.gd" type="Script" id=1]
[ext_resource path="res://demos/SeekFlee/Player.gd" type="Script" id=2] [ext_resource path="res://demos/SeekFlee/Player.gd" type="Script" id=2]
@ -7,6 +7,7 @@
[ext_resource path="res://assets/theme/gdquest.theme" type="Theme" id=5] [ext_resource path="res://assets/theme/gdquest.theme" type="Theme" id=5]
[ext_resource path="res://demos/SeekFlee/Seeker.tscn" type="PackedScene" id=6] [ext_resource path="res://demos/SeekFlee/Seeker.tscn" type="PackedScene" id=6]
[ext_resource path="res://demos/Utils/CircleDraw.gd" type="Script" id=7] [ext_resource path="res://demos/Utils/CircleDraw.gd" type="Script" id=7]
[ext_resource path="res://assets/sprites/background.png" type="Texture" id=8]
[sub_resource type="CircleShape2D" id=1] [sub_resource type="CircleShape2D" id=1]
radius = 32.0 radius = 32.0
@ -22,7 +23,13 @@ script = ExtResource( 3 )
__meta__ = { __meta__ = {
"_editor_description_": "A toy demo to demonstrate the usage for the Seek and Flee steering behaviors." "_editor_description_": "A toy demo to demonstrate the usage for the Seek and Flee steering behaviors."
} }
behavior_mode = 0
[node name="BackgroudLayer" type="CanvasLayer" parent="."]
layer = -1
[node name="Background" type="Sprite" parent="BackgroudLayer"]
texture = ExtResource( 8 )
centered = false
[node name="Camera2D" type="Camera2D" parent="."] [node name="Camera2D" type="Camera2D" parent="."]
current = true current = true

View File

@ -161,6 +161,10 @@ _global_script_class_icons={
config/name="SteeringToolkit" config/name="SteeringToolkit"
config/icon="res://icon.png" config/icon="res://icon.png"
[display]
window/size/always_on_top=true
[input] [input]
sf_left={ sf_left={