mirror of
https://github.com/Relintai/regression-test-project.git
synced 2025-03-12 18:38:50 +01:00
Sync project with 3.2 branch
This commit is contained in:
parent
e0d07ba07a
commit
9c553f415f
1
.gitignore
vendored
1
.gitignore
vendored
@ -8,3 +8,4 @@ logs/
|
||||
TEMP/
|
||||
export_presets.cfg
|
||||
logs/
|
||||
.godot/
|
||||
|
45
All.tscn
45
All.tscn
@ -1,17 +1,44 @@
|
||||
[gd_scene load_steps=5 format=2]
|
||||
[gd_scene load_steps=10 format=2]
|
||||
|
||||
[ext_resource path="res://Control.tscn" type="PackedScene" id=1]
|
||||
[ext_resource path="res://Spatial.tscn" type="PackedScene" id=2]
|
||||
[ext_resource path="res://Node2D.tscn" type="PackedScene" id=3]
|
||||
[ext_resource path="res://Other.tscn" type="PackedScene" id=4]
|
||||
[ext_resource path="res://MainScenes/Control.tscn" type="PackedScene" id=1]
|
||||
[ext_resource path="res://MainScenes/Spatial.tscn" type="PackedScene" id=2]
|
||||
[ext_resource path="res://MainScenes/Node2D.tscn" type="PackedScene" id=3]
|
||||
[ext_resource path="res://MainScenes/Other.tscn" type="PackedScene" id=4]
|
||||
[ext_resource path="res://MainScenes/Operators.tscn" type="PackedScene" id=5]
|
||||
[ext_resource path="res://Physics/2D/Physics2D.tscn" type="PackedScene" id=6]
|
||||
[ext_resource path="res://Rendering/Lights3D/Lights3D.tscn" type="PackedScene" id=7]
|
||||
[ext_resource path="res://Rendering/Lights2D/Lights2D.tscn" type="PackedScene" id=8]
|
||||
[ext_resource path="res://Physics/3D/Physics3D.tscn" type="PackedScene" id=9]
|
||||
|
||||
[node name="All" type="Node"]
|
||||
script = null
|
||||
|
||||
[node name="GridContainer" parent="." instance=ExtResource( 1 )]
|
||||
[node name="MainScenes" type="Node" parent="."]
|
||||
script = null
|
||||
|
||||
[node name="Node2D" parent="." instance=ExtResource( 3 )]
|
||||
[node name="Spatial" parent="MainScenes" instance=ExtResource( 2 )]
|
||||
|
||||
[node name="Node" parent="." instance=ExtResource( 4 )]
|
||||
[node name="Node2D" parent="MainScenes" instance=ExtResource( 3 )]
|
||||
|
||||
[node name="Spatial" parent="." instance=ExtResource( 2 )]
|
||||
[node name="Other" parent="MainScenes" instance=ExtResource( 4 )]
|
||||
|
||||
[node name="Control" parent="MainScenes" instance=ExtResource( 1 )]
|
||||
|
||||
[node name="Operators" parent="MainScenes" instance=ExtResource( 5 )]
|
||||
|
||||
[node name="Physics" type="Node" parent="."]
|
||||
script = null
|
||||
|
||||
[node name="Physics2D" parent="Physics" instance=ExtResource( 6 )]
|
||||
|
||||
[node name="Physics3D" parent="Physics" instance=ExtResource( 9 )]
|
||||
script = null
|
||||
|
||||
[node name="Rendering" type="Node" parent="."]
|
||||
script = null
|
||||
|
||||
[node name="Lights2D" parent="Rendering" instance=ExtResource( 8 )]
|
||||
script = null
|
||||
|
||||
[node name="Lights3D" parent="Rendering" instance=ExtResource( 7 )]
|
||||
script = null
|
||||
|
@ -1,19 +1,23 @@
|
||||
extends Node
|
||||
|
||||
const RANGE : int = 5
|
||||
const screen_size = Vector2(1024, 600)
|
||||
|
||||
const RANGE: int = 5
|
||||
|
||||
var time_to_show: float = -1000.0
|
||||
|
||||
var time_to_show : float = -1000.0
|
||||
|
||||
func _init():
|
||||
for argument in OS.get_cmdline_args():
|
||||
var rr : String = argument
|
||||
if rr.find("tscn") != -1: # Ignore all tscn scenes/names
|
||||
var rr: String = argument
|
||||
if rr.find("tscn") != -1: # Ignore all tscn scenes/names
|
||||
continue
|
||||
time_to_show = argument.to_float()
|
||||
print("Time set to: " + str(time_to_show))
|
||||
break
|
||||
|
||||
func _process(delta : float) -> void:
|
||||
|
||||
func _process(delta: float) -> void:
|
||||
time_to_show -= delta
|
||||
if time_to_show < 0 && time_to_show > -500:
|
||||
get_tree().quit()
|
@ -1,8 +1,8 @@
|
||||
extends GridContainer
|
||||
|
||||
const RANGE : int = 5
|
||||
|
||||
func _ready():
|
||||
for _i in range(RANGE):
|
||||
for _i in range(Autoload.RANGE):
|
||||
add_child(Control.new())
|
||||
add_child(Popup.new())
|
||||
add_child(AcceptDialog.new())
|
||||
@ -54,8 +54,9 @@ func _ready():
|
||||
add_child(TextureRect.new())
|
||||
add_child(Tree.new())
|
||||
add_child(VideoPlayer.new())
|
||||
|
||||
func _process(_delta : float) -> void:
|
||||
for i in get_children() :
|
||||
|
||||
|
||||
func _process(_delta: float) -> void:
|
||||
for i in get_children():
|
||||
if i is Control:
|
||||
i._set_size(Vector2(200 * randf() - 100,200 * randf() - 100))
|
||||
i._set_size(Vector2(200 * randf() - 100, 200 * randf() - 100))
|
@ -1,6 +1,6 @@
|
||||
[gd_scene load_steps=2 format=2]
|
||||
|
||||
[ext_resource path="res://GridContainer.gd" type="Script" id=1]
|
||||
[ext_resource path="res://MainScenes/Control.gd" type="Script" id=1]
|
||||
|
||||
[node name="GridContainer" type="GridContainer"]
|
||||
anchor_right = 1.0
|
@ -1,8 +1,8 @@
|
||||
extends Node2D
|
||||
|
||||
const RANGE : int = 5
|
||||
|
||||
func _ready():
|
||||
for _i in range(RANGE):
|
||||
for _i in range(Autoload.RANGE):
|
||||
add_child(Node2D.new())
|
||||
add_child(AnimatedSprite2D.new())
|
||||
add_child(Area2D.new())
|
||||
@ -10,12 +10,12 @@ func _ready():
|
||||
add_child(RigidBody2D.new())
|
||||
add_child(StaticBody2D.new())
|
||||
add_child(AudioStreamPlayer2D.new())
|
||||
# add_child(BackBufferCopy.new())
|
||||
add_child(BackBufferCopy.new())
|
||||
add_child(Bone2D.new())
|
||||
add_child(CPUParticles2D.new())
|
||||
add_child(Camera2D.new())
|
||||
add_child(CanvasModulate.new())
|
||||
add_child(CollisionPolygon2D.new())
|
||||
# add_child(CollisionPolygon2D.new()) # Errors
|
||||
add_child(CollisionShape2D.new())
|
||||
add_child(DampedSpringJoint2D.new())
|
||||
add_child(GrooveJoint2D.new())
|
||||
@ -41,8 +41,9 @@ func _ready():
|
||||
add_child(VisibilityNotifier2D.new())
|
||||
add_child(VisibilityEnabler2D.new())
|
||||
add_child(YSort.new())
|
||||
|
||||
func _process(_delta : float) -> void:
|
||||
for i in get_children() :
|
||||
|
||||
|
||||
func _process(_delta: float) -> void:
|
||||
for i in get_children():
|
||||
if i is Node2D:
|
||||
i.set_position(Vector2(1000 * randf() - 500,1000 * randf() - 500))
|
||||
i.set_position(Vector2(1000 * randf() - 500, 1000 * randf() - 500))
|
@ -1,9 +1,8 @@
|
||||
[gd_scene load_steps=2 format=2]
|
||||
|
||||
[ext_resource path="res://Node2D.gd" type="Script" id=1]
|
||||
[ext_resource path="res://MainScenes/Node2D.gd" type="Script" id=1]
|
||||
|
||||
[node name="Node2D" type="Node2D"]
|
||||
script = ExtResource( 1 )
|
||||
|
||||
[node name="Camera2D" type="Camera2D" parent="."]
|
||||
script = null
|
179
MainScenes/Operators.gd
Normal file
179
MainScenes/Operators.gd
Normal file
@ -0,0 +1,179 @@
|
||||
extends Node2D
|
||||
|
||||
class_name Operators
|
||||
|
||||
signal roman
|
||||
|
||||
@onready var sew : int = 0
|
||||
|
||||
|
||||
func _ready() -> void:
|
||||
|
||||
assert(2>1)
|
||||
|
||||
var arr : Array = [25,235236,236,236,23,6,236,236,236,23,634,63,7,35,4734,64,64,34,62,72,32,535]
|
||||
var dict : Dictionary = {35:535,5236:535,35236:"35","safasf":"w","etwet":"qwrqrqwrqwrq","t":"wet"}
|
||||
var number = 5242434
|
||||
var strin = "asfqwfasfasf"
|
||||
|
||||
52 % -25
|
||||
arr.append(254)
|
||||
arr[36235 % arr.size()]
|
||||
arr[-36235 % arr.size()]
|
||||
if dict.has(strin):
|
||||
dict[strin]
|
||||
sew = sew
|
||||
number is Node2D
|
||||
~36235
|
||||
-36235
|
||||
36235 * 36235
|
||||
36235 / (21)
|
||||
36235 % (21)
|
||||
36235 + 36235
|
||||
36235 - 36235
|
||||
36235 >> int(max(min(36235,0),63))
|
||||
36235 << int(max(min(36235,0),63))
|
||||
36235 & 36235
|
||||
36235 ^ 36235
|
||||
36235 | 36235
|
||||
36235 < 36235
|
||||
36235 > 36235
|
||||
36235 == 36235
|
||||
36235 != 36235
|
||||
36235 >= 36235
|
||||
36235 <= 36235
|
||||
36235 in ["asfasfqw","asfqwgqani"]
|
||||
!36235
|
||||
not 36235
|
||||
36235 and 36235
|
||||
36235 && 36235
|
||||
36235 or 36235
|
||||
36235 || 36235
|
||||
|
||||
number = 36235
|
||||
number += 36235
|
||||
number -= 36235
|
||||
number *= 36235
|
||||
number /= 21
|
||||
number %= 21
|
||||
number &= 36235
|
||||
number |= 36235
|
||||
|
||||
1234567890
|
||||
0x0123456789ABCDEF
|
||||
0x123456789ABCDEF
|
||||
0b101010101010101010101
|
||||
0b010101010101010101010
|
||||
3.242
|
||||
25.1e-125
|
||||
125e+24
|
||||
"2122222222222222222222222222222225125125125215s"
|
||||
"Chrabąszcz"
|
||||
"""
|
||||
MULTILINIONOWOŚĆ
|
||||
"""
|
||||
$"."
|
||||
|
||||
#Comment
|
||||
|
||||
var _r2 = qq()
|
||||
var _rr = qqr("WRT")
|
||||
call("qqr","QWT")
|
||||
var func_ref = funcref(self,"qqr")
|
||||
func_ref.call_func("QWQW")
|
||||
|
||||
if 36235:
|
||||
pass
|
||||
else:
|
||||
pass
|
||||
|
||||
var rr : int = 10
|
||||
while(rr != 0):
|
||||
rr -= 1
|
||||
|
||||
match 36235:
|
||||
2:
|
||||
36235
|
||||
5:
|
||||
pass
|
||||
36235
|
||||
3:
|
||||
continue
|
||||
false
|
||||
_:
|
||||
[521252,"asfasfw", "asfw"]
|
||||
|
||||
match typeof(36235):
|
||||
TYPE_AABB:
|
||||
36235
|
||||
TYPE_INT:
|
||||
36235
|
||||
|
||||
match 36235:
|
||||
2:
|
||||
36235
|
||||
# var RR:
|
||||
# RR = 36235
|
||||
|
||||
match randi() % 26:
|
||||
2:
|
||||
pass
|
||||
# var TT:
|
||||
# var ss = TT # BUG GH#34384
|
||||
|
||||
for _i in [5,2,5]:
|
||||
pass
|
||||
for _i in {"a":0}:
|
||||
pass
|
||||
for _i in range(3):
|
||||
pass
|
||||
for _i in range(1,2):
|
||||
pass
|
||||
for _i in range(1,1,3):
|
||||
pass
|
||||
for _i in "Roman":
|
||||
pass
|
||||
for _i in 3:
|
||||
pass
|
||||
for _i in 2.2:
|
||||
pass
|
||||
|
||||
|
||||
enum {TILE, MILE}
|
||||
enum State {STATE_IDLE, STATE_JUMP = 5, STATE_SHOOT}
|
||||
const TITLE = 0
|
||||
const TITLE2 : int = 0
|
||||
var describtion
|
||||
|
||||
|
||||
func qq():
|
||||
return
|
||||
|
||||
func qqr(_stat : String = "TQW") -> String:
|
||||
return "FAASFW"
|
||||
|
||||
static func ff(_rr : String = "FA") -> String:
|
||||
return "qtqwtwey"
|
||||
|
||||
class ram:
|
||||
var sa : int = 0
|
||||
var qq
|
||||
static func rr() -> ram:
|
||||
return ram.new()
|
||||
static func Wr() -> Node:
|
||||
return Node.new()
|
||||
static func rqq() -> String:
|
||||
return "as"
|
||||
func roman() -> String:
|
||||
return "wqr"
|
||||
func wykop() -> String:
|
||||
return "wqr"
|
||||
|
||||
func func_ready() -> void:
|
||||
var rr : ram = ram.new()
|
||||
rr.sa = 125
|
||||
rr.qq = "qw"
|
||||
var _s = rr.rr()
|
||||
var _r = rr.rqq()
|
||||
var _t = rr.roman()
|
||||
var _y = rr.wykop()
|
10
MainScenes/Operators.tscn
Normal file
10
MainScenes/Operators.tscn
Normal file
@ -0,0 +1,10 @@
|
||||
[gd_scene load_steps=3 format=2]
|
||||
|
||||
[ext_resource path="res://MainScenes/Operators.gd" type="Script" id=1]
|
||||
[ext_resource path="res://MainScenes/Operators2.gd" type="Script" id=2]
|
||||
|
||||
[node name="Operators" type="Node2D"]
|
||||
script = ExtResource( 1 )
|
||||
|
||||
[node name="Operators2" type="Node2D" parent="."]
|
||||
script = ExtResource( 2 )
|
199
MainScenes/Operators2.gd
Normal file
199
MainScenes/Operators2.gd
Normal file
@ -0,0 +1,199 @@
|
||||
extends Node2D
|
||||
|
||||
#var all_types: Array = [
|
||||
# AABB(),
|
||||
# Array(),
|
||||
# Basis(),
|
||||
# Color(),
|
||||
# Dictionary(),
|
||||
# NodePath(),
|
||||
# Plane(),
|
||||
# PoolByteArray(),
|
||||
# PoolColorArray(),
|
||||
# PoolIntArray(),
|
||||
# PoolRealArray(),
|
||||
# PoolStringArray(),
|
||||
# PoolVector2Array(),
|
||||
# PoolVector3Array(),
|
||||
# Quat(),
|
||||
# Rect2(),
|
||||
# String(),
|
||||
# Transform(),
|
||||
# Transform2D(),
|
||||
# Vector2(),
|
||||
# Vector3(),
|
||||
# float(),
|
||||
# int(),
|
||||
# bool()
|
||||
#]
|
||||
|
||||
|
||||
func _ready() -> void:
|
||||
# for i in []
|
||||
|
||||
for i in [
|
||||
Color(),
|
||||
Plane(),
|
||||
Quat(),
|
||||
Vector2(),
|
||||
Vector3(),
|
||||
float(),
|
||||
int(),
|
||||
]:
|
||||
i = -i
|
||||
for i in [
|
||||
AABB(),
|
||||
Array(),
|
||||
Basis(),
|
||||
Color(),
|
||||
Dictionary(),
|
||||
NodePath(),
|
||||
Plane(),
|
||||
Quat(),
|
||||
Rect2(),
|
||||
String(),
|
||||
Transform(),
|
||||
Transform2D(),
|
||||
Vector2(),
|
||||
Vector3(),
|
||||
float(),
|
||||
int(),
|
||||
bool()
|
||||
]:
|
||||
i = i
|
||||
for i in [
|
||||
Plane(),
|
||||
Quat(),
|
||||
Vector2(),
|
||||
Vector3(),
|
||||
float(),
|
||||
int(),
|
||||
]:
|
||||
i = +i
|
||||
for i in [
|
||||
Color(),
|
||||
Vector2(),
|
||||
Vector3(),
|
||||
float(),
|
||||
int(),
|
||||
]:
|
||||
i = i * 1.0
|
||||
i = i * 1
|
||||
|
||||
|
||||
|
||||
for i in [
|
||||
Color(),
|
||||
Vector2(),
|
||||
Vector3(),
|
||||
float(),
|
||||
int(),
|
||||
]:
|
||||
i = i / 1.0
|
||||
i = i / 1
|
||||
|
||||
|
||||
for i in [
|
||||
AABB(),
|
||||
Array(),
|
||||
Basis(),
|
||||
Color(),
|
||||
Dictionary(),
|
||||
NodePath(),
|
||||
Plane(),
|
||||
Quat(),
|
||||
Rect2(),
|
||||
String(),
|
||||
Transform(),
|
||||
Transform2D(),
|
||||
Vector2(),
|
||||
Vector3(),
|
||||
float(),
|
||||
int(),
|
||||
bool()
|
||||
]:
|
||||
i == i
|
||||
i != i
|
||||
|
||||
|
||||
for i in [
|
||||
String(),
|
||||
Vector2(),
|
||||
Vector3(),
|
||||
float(),
|
||||
int(),
|
||||
]:
|
||||
i >= i
|
||||
i <= i
|
||||
i > i
|
||||
i < i
|
||||
|
||||
|
||||
for i in [
|
||||
int()
|
||||
]:
|
||||
i | i
|
||||
i & i
|
||||
|
||||
for i in [
|
||||
AABB(),
|
||||
Array(),
|
||||
Basis(),
|
||||
Color(),
|
||||
Dictionary(),
|
||||
NodePath(),
|
||||
Plane(),
|
||||
Quat(),
|
||||
Rect2(),
|
||||
String(),
|
||||
Transform(),
|
||||
Transform2D(),
|
||||
Vector2(),
|
||||
Vector3(),
|
||||
float(),
|
||||
int(),
|
||||
bool()
|
||||
]:
|
||||
i || i
|
||||
i && i
|
||||
|
||||
for i in [
|
||||
int(),
|
||||
]:
|
||||
i = i % 10
|
||||
|
||||
for i in [
|
||||
Array(),
|
||||
Dictionary(),
|
||||
String(),
|
||||
]:
|
||||
i in i
|
||||
|
||||
for i in [
|
||||
float(),
|
||||
int(),
|
||||
bool()
|
||||
]:
|
||||
i as int
|
||||
|
||||
for i in [
|
||||
AABB(),
|
||||
Array(),
|
||||
Basis(),
|
||||
Color(),
|
||||
Dictionary(),
|
||||
NodePath(),
|
||||
Plane(),
|
||||
Quat(),
|
||||
Rect2(),
|
||||
String(),
|
||||
Transform(),
|
||||
Transform2D(),
|
||||
Vector2(),
|
||||
Vector3(),
|
||||
float(),
|
||||
int(),
|
||||
bool()
|
||||
]:
|
||||
typeof(i)
|
||||
|
@ -1,8 +1,8 @@
|
||||
extends Node
|
||||
|
||||
const RANGE : int = 5
|
||||
|
||||
func _ready() -> void:
|
||||
for _i in range(RANGE):
|
||||
for _i in range(Autoload.RANGE):
|
||||
add_child(AnimationPlayer.new())
|
||||
add_child(AnimationTree.new())
|
||||
add_child(AudioStreamPlayer.new())
|
||||
@ -15,4 +15,3 @@ func _ready() -> void:
|
||||
add_child(Tween.new())
|
||||
add_child(Viewport.new())
|
||||
add_child(WorldEnvironment.new())
|
||||
|
@ -1,6 +1,6 @@
|
||||
[gd_scene load_steps=2 format=2]
|
||||
|
||||
[ext_resource path="res://Other.gd" type="Script" id=1]
|
||||
[ext_resource path="res://MainScenes/Other.gd" type="Script" id=1]
|
||||
|
||||
[node name="Node" type="Node"]
|
||||
script = ExtResource( 1 )
|
@ -1,8 +1,8 @@
|
||||
extends Node3D
|
||||
|
||||
const RANGE : int = 5
|
||||
|
||||
func _ready():
|
||||
for i in range(RANGE):
|
||||
for i in range(Autoload.RANGE):
|
||||
add_child(Node3D.new())
|
||||
add_child(XRAnchor3D.new())
|
||||
add_child(Camera3D.new())
|
||||
@ -60,9 +60,10 @@ func _ready():
|
||||
add_child(VehicleWheel3D.new())
|
||||
add_child(VisibilityNotifier3D.new())
|
||||
add_child(VisibilityEnabler3D.new())
|
||||
|
||||
func _process(delta : float) -> void:
|
||||
|
||||
|
||||
func _process(delta: float) -> void:
|
||||
for i in get_children():
|
||||
if i.get_name() != "Camera":
|
||||
i.set_scale(Vector3(delta + 1,delta + 1,delta + 1))
|
||||
i.set_translation(Vector3(10 * randf(),10 * randf(),10 * randf()))
|
||||
i.set_scale(Vector3(delta + 1, delta + 1, delta + 1))
|
||||
i.set_translation(Vector3(10 * randf(), 10 * randf(), 10 * randf()))
|
@ -1,10 +1,9 @@
|
||||
[gd_scene load_steps=2 format=2]
|
||||
|
||||
[ext_resource path="res://Spatial.gd" type="Script" id=1]
|
||||
[ext_resource path="res://MainScenes/Spatial.gd" type="Script" id=1]
|
||||
|
||||
[node name="Spatial" type="Node3D"]
|
||||
[node name="Spatial" type="Spatial"]
|
||||
script = ExtResource( 1 )
|
||||
|
||||
[node name="Camera" type="Camera3D" parent="."]
|
||||
[node name="Camera" type="Camera" parent="."]
|
||||
transform = Transform( 1, 0, 0, 0, 0.690617, 0.72322, 0, -0.72322, 0.690617, 0, 3.77374, 5.42622 )
|
||||
script = null
|
29
Physics/2D/Area2D.gd
Normal file
29
Physics/2D/Area2D.gd
Normal file
@ -0,0 +1,29 @@
|
||||
extends Node2D
|
||||
|
||||
var move_vector: Vector2 = Vector2(1, 1)
|
||||
var speed: float = 1000.0
|
||||
|
||||
|
||||
func _ready():
|
||||
pass
|
||||
|
||||
|
||||
func _process(delta):
|
||||
position += Vector2(move_vector.x * delta * speed, move_vector.y * delta * speed)
|
||||
|
||||
if position.y > Autoload.screen_size.y:
|
||||
move_vector.y = -1
|
||||
elif position.y < 0:
|
||||
move_vector.y = 1
|
||||
elif position.x > Autoload.screen_size.x:
|
||||
move_vector.x = -1
|
||||
elif position.x < 0:
|
||||
move_vector.x = 1
|
||||
|
||||
|
||||
func _on_Area2D_area_entered(area):
|
||||
move_vector = -move_vector
|
||||
|
||||
|
||||
func _on_Area2D_body_entered(body):
|
||||
move_vector = Vector2(move_vector.x, -move_vector.y)
|
19
Physics/2D/Area2D.tscn
Normal file
19
Physics/2D/Area2D.tscn
Normal file
@ -0,0 +1,19 @@
|
||||
[gd_scene load_steps=3 format=2]
|
||||
|
||||
[ext_resource path="res://icon 32x32.png" type="Texture" id=1]
|
||||
[ext_resource path="res://Physics/2D/Area2D.gd" type="Script" id=2]
|
||||
|
||||
[node name="Area2D" type="Area2D"]
|
||||
script = ExtResource( 2 )
|
||||
|
||||
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="."]
|
||||
polygon = PoolVector2Array( 4.018, -13.1782, -15.9057, 3.23778, 1.63277, 17.5492, 19.3115, 2.39594 )
|
||||
|
||||
[node name="CollisionPolygon2D2" type="CollisionPolygon2D" parent="."]
|
||||
polygon = PoolVector2Array( -4.58427, -16.8342, -20.5974, -4.94143, -8.23639, 16.784, 20.4187, 13.5065 )
|
||||
|
||||
[node name="Sprite" type="Sprite" parent="."]
|
||||
texture = ExtResource( 1 )
|
||||
|
||||
[connection signal="area_entered" from="." to="." method="_on_Area2D_area_entered"]
|
||||
[connection signal="body_entered" from="." to="." method="_on_Area2D_body_entered"]
|
21
Physics/2D/KinematicBody2D.gd
Normal file
21
Physics/2D/KinematicBody2D.gd
Normal file
@ -0,0 +1,21 @@
|
||||
extends KinematicBody2D
|
||||
|
||||
var move_vector: Vector2 = Vector2(1, 1)
|
||||
var speed: float = 1000.0
|
||||
|
||||
|
||||
func _ready():
|
||||
pass
|
||||
|
||||
|
||||
func _process(delta):
|
||||
position += Vector2(move_vector.x * delta * speed, move_vector.y * delta * speed)
|
||||
|
||||
if position.y > Autoload.screen_size.y:
|
||||
move_vector.y = -1
|
||||
elif position.y < 0:
|
||||
move_vector.y = 1
|
||||
elif position.x > Autoload.screen_size.x:
|
||||
move_vector.x = -1
|
||||
elif position.x < 0:
|
||||
move_vector.x = 1
|
15
Physics/2D/KinematicBody2D.tscn
Normal file
15
Physics/2D/KinematicBody2D.tscn
Normal file
@ -0,0 +1,15 @@
|
||||
[gd_scene load_steps=3 format=2]
|
||||
|
||||
[ext_resource path="res://icon 32x32.png" type="Texture" id=1]
|
||||
[ext_resource path="res://Physics/2D/KinematicBody2D.gd" type="Script" id=2]
|
||||
|
||||
[node name="KinematicBody2D" type="KinematicBody2D"]
|
||||
script = ExtResource( 2 )
|
||||
|
||||
[node name="Sprite" type="Sprite" parent="."]
|
||||
modulate = Color( 0.74902, 0.133333, 0.133333, 1 )
|
||||
rotation = 4.45932
|
||||
texture = ExtResource( 1 )
|
||||
|
||||
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="."]
|
||||
polygon = PoolVector2Array( -10.6781, -7.48182, -12.4953, 17.1263, 15.2543, 6.19464, 4.32263, -14.4073 )
|
5
Physics/2D/Physics2D.gd
Normal file
5
Physics/2D/Physics2D.gd
Normal file
@ -0,0 +1,5 @@
|
||||
extends Node2D
|
||||
|
||||
|
||||
func _physics_process(delta):
|
||||
pass
|
120
Physics/2D/Physics2D.tscn
Normal file
120
Physics/2D/Physics2D.tscn
Normal file
@ -0,0 +1,120 @@
|
||||
[gd_scene load_steps=6 format=2]
|
||||
|
||||
[ext_resource path="res://Physics/2D/Physics2D.gd" type="Script" id=1]
|
||||
[ext_resource path="res://Physics/2D/Area2D.tscn" type="PackedScene" id=2]
|
||||
[ext_resource path="res://Physics/2D/KinematicBody2D.tscn" type="PackedScene" id=3]
|
||||
[ext_resource path="res://Physics/2D/StaticBody2D.tscn" type="PackedScene" id=4]
|
||||
[ext_resource path="res://Physics/2D/RigidBody2D.tscn" type="PackedScene" id=5]
|
||||
|
||||
[node name="Physics2D" type="Node2D"]
|
||||
script = ExtResource( 1 )
|
||||
|
||||
[node name="Area2D" type="Node2D" parent="."]
|
||||
|
||||
[node name="Area2D" parent="Area2D" instance=ExtResource( 2 )]
|
||||
position = Vector2( 166.677, 52.3842 )
|
||||
|
||||
[node name="Area2D2" parent="Area2D" instance=ExtResource( 2 )]
|
||||
position = Vector2( 209.537, 193.663 )
|
||||
|
||||
[node name="Area2D3" parent="Area2D" instance=ExtResource( 2 )]
|
||||
position = Vector2( 450.822, 122.23 )
|
||||
|
||||
[node name="Area2D4" parent="Area2D" instance=ExtResource( 2 )]
|
||||
position = Vector2( 336.529, 293.669 )
|
||||
|
||||
[node name="Area2D5" parent="Area2D" instance=ExtResource( 2 )]
|
||||
position = Vector2( 555.59, 42.8598 )
|
||||
|
||||
[node name="Area2D6" parent="Area2D" instance=ExtResource( 2 )]
|
||||
position = Vector2( 598.45, 184.139 )
|
||||
|
||||
[node name="Area2D7" parent="Area2D" instance=ExtResource( 2 )]
|
||||
position = Vector2( 839.735, 112.705 )
|
||||
|
||||
[node name="Area2D8" parent="Area2D" instance=ExtResource( 2 )]
|
||||
position = Vector2( 725.442, 284.145 )
|
||||
|
||||
[node name="Area2D10" parent="Area2D" instance=ExtResource( 2 )]
|
||||
position = Vector2( 420.661, 330.179 )
|
||||
|
||||
[node name="Area2D12" parent="Area2D" instance=ExtResource( 2 )]
|
||||
position = Vector2( 547.653, 430.186 )
|
||||
|
||||
[node name="Area2D14" parent="Area2D" instance=ExtResource( 2 )]
|
||||
position = Vector2( 122.23, 457.171 )
|
||||
|
||||
[node name="Area2D16" parent="Area2D" instance=ExtResource( 2 )]
|
||||
position = Vector2( 249.222, 557.178 )
|
||||
|
||||
[node name="Area2D18" parent="Area2D" instance=ExtResource( 2 )]
|
||||
position = Vector2( 660.359, 444.472 )
|
||||
|
||||
[node name="Area2D19" parent="Area2D" instance=ExtResource( 2 )]
|
||||
position = Vector2( 901.644, 373.039 )
|
||||
|
||||
[node name="Area2D20" parent="Area2D" instance=ExtResource( 2 )]
|
||||
position = Vector2( 787.351, 544.478 )
|
||||
|
||||
[node name="KinematicBody2D" type="Node2D" parent="."]
|
||||
|
||||
[node name="KinematicBody2D" parent="KinematicBody2D" instance=ExtResource( 3 )]
|
||||
position = Vector2( 90.4819, 302.4 )
|
||||
|
||||
[node name="KinematicBody2D2" parent="KinematicBody2D" instance=ExtResource( 3 )]
|
||||
position = Vector2( 380.142, 465.25 )
|
||||
|
||||
[node name="KinematicBody2D3" parent="KinematicBody2D" instance=ExtResource( 3 )]
|
||||
position = Vector2( 333.423, 131.54 )
|
||||
|
||||
[node name="KinematicBody2D4" parent="KinematicBody2D" instance=ExtResource( 3 )]
|
||||
position = Vector2( 509.622, 242.332 )
|
||||
|
||||
[node name="KinematicBody2D5" parent="KinematicBody2D" instance=ExtResource( 3 )]
|
||||
position = Vector2( 914.078, 76.812 )
|
||||
|
||||
[node name="StaticBody2D" type="Node2D" parent="."]
|
||||
position = Vector2( 73.6327, 117.071 )
|
||||
|
||||
[node name="StaticBody2D" parent="StaticBody2D" instance=ExtResource( 4 )]
|
||||
|
||||
[node name="StaticBody2D2" parent="StaticBody2D" instance=ExtResource( 4 )]
|
||||
position = Vector2( 171.12, 267.286 )
|
||||
|
||||
[node name="StaticBody2D3" parent="StaticBody2D" instance=ExtResource( 4 )]
|
||||
position = Vector2( 618.011, -2.82837 )
|
||||
|
||||
[node name="StaticBody2D4" parent="StaticBody2D" instance=ExtResource( 4 )]
|
||||
position = Vector2( 793.374, 120.208 )
|
||||
|
||||
[node name="StaticBody2D5" parent="StaticBody2D" instance=ExtResource( 4 )]
|
||||
position = Vector2( 704.278, 296.985 )
|
||||
|
||||
[node name="RigidBody2D" type="Node2D" parent="."]
|
||||
|
||||
[node name="RigidBody2D" parent="RigidBody2D" instance=ExtResource( 5 )]
|
||||
position = Vector2( 178.191, 120.915 )
|
||||
|
||||
[node name="RigidBody2D2" parent="RigidBody2D" instance=ExtResource( 5 )]
|
||||
position = Vector2( 192.874, 313.132 )
|
||||
|
||||
[node name="RigidBody2D3" parent="RigidBody2D" instance=ExtResource( 5 )]
|
||||
position = Vector2( 386.426, 210.35 )
|
||||
|
||||
[node name="RigidBody2D4" parent="RigidBody2D" instance=ExtResource( 5 )]
|
||||
position = Vector2( 374.412, 43.4946 )
|
||||
|
||||
[node name="RigidBody2D5" parent="RigidBody2D" instance=ExtResource( 5 )]
|
||||
position = Vector2( 609.344, 331.82 )
|
||||
|
||||
[node name="RigidBody2D6" parent="RigidBody2D" instance=ExtResource( 5 )]
|
||||
position = Vector2( 756.177, 187.657 )
|
||||
|
||||
[node name="RigidBody2D7" parent="RigidBody2D" instance=ExtResource( 5 )]
|
||||
position = Vector2( 754.842, 43.4946 )
|
||||
|
||||
[node name="RigidBody2D8" parent="RigidBody2D" instance=ExtResource( 5 )]
|
||||
position = Vector2( 490.543, 544.06 )
|
||||
|
||||
[node name="RigidBody2D9" parent="RigidBody2D" instance=ExtResource( 5 )]
|
||||
position = Vector2( 490.543, 544.06 )
|
22
Physics/2D/RigidBody2D.gd
Normal file
22
Physics/2D/RigidBody2D.gd
Normal file
@ -0,0 +1,22 @@
|
||||
extends RigidBody2D
|
||||
|
||||
var move_vector: Vector2 = Vector2(1, 1)
|
||||
var speed: float = 1000.0
|
||||
|
||||
|
||||
func _ready():
|
||||
pass
|
||||
|
||||
|
||||
func _process(delta):
|
||||
#position += Vector2(move_vector.x * delta * speed,move_vector.y * delta * speed)
|
||||
|
||||
if position.y > Autoload.screen_size.y:
|
||||
move_vector.y = -1
|
||||
elif position.y < 0:
|
||||
move_vector.y = 1
|
||||
elif position.x > Autoload.screen_size.x:
|
||||
move_vector.x = -1
|
||||
elif position.x < 0:
|
||||
move_vector.x = 1
|
||||
apply_impulse(move_vector, Vector2(0, 1))
|
16
Physics/2D/RigidBody2D.tscn
Normal file
16
Physics/2D/RigidBody2D.tscn
Normal file
@ -0,0 +1,16 @@
|
||||
[gd_scene load_steps=3 format=2]
|
||||
|
||||
[ext_resource path="res://Physics/2D/RigidBody2D.gd" type="Script" id=1]
|
||||
[ext_resource path="res://icon 32x32.png" type="Texture" id=2]
|
||||
|
||||
[node name="RigidBody2D" type="RigidBody2D"]
|
||||
gravity_scale = 0.1
|
||||
script = ExtResource( 1 )
|
||||
|
||||
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="."]
|
||||
polygon = PoolVector2Array( -2.29324, -15.2017, -12.0322, 4.46353, 8.38219, 7.64743 )
|
||||
|
||||
[node name="Sprite" type="Sprite" parent="."]
|
||||
modulate = Color( 0.47451, 0, 0.427451, 1 )
|
||||
rotation = 0.792379
|
||||
texture = ExtResource( 2 )
|
21
Physics/2D/StaticBody2D.gd
Normal file
21
Physics/2D/StaticBody2D.gd
Normal file
@ -0,0 +1,21 @@
|
||||
extends StaticBody2D
|
||||
|
||||
var move_vector: Vector2 = Vector2(1, 1)
|
||||
var speed: float = 1000.0
|
||||
|
||||
|
||||
func _ready():
|
||||
pass
|
||||
|
||||
|
||||
func _process(delta):
|
||||
position += Vector2(move_vector.x * delta * speed, move_vector.y * delta * speed)
|
||||
|
||||
if position.y > Autoload.screen_size.y:
|
||||
move_vector.y = -1
|
||||
elif position.y < 0:
|
||||
move_vector.y = 1
|
||||
elif position.x > Autoload.screen_size.x:
|
||||
move_vector.x = -1
|
||||
elif position.x < 0:
|
||||
move_vector.x = 1
|
15
Physics/2D/StaticBody2D.tscn
Normal file
15
Physics/2D/StaticBody2D.tscn
Normal file
@ -0,0 +1,15 @@
|
||||
[gd_scene load_steps=3 format=2]
|
||||
|
||||
[ext_resource path="res://icon 32x32.png" type="Texture" id=1]
|
||||
[ext_resource path="res://Physics/2D/StaticBody2D.gd" type="Script" id=2]
|
||||
|
||||
[node name="StaticBody2D" type="StaticBody2D"]
|
||||
script = ExtResource( 2 )
|
||||
|
||||
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="."]
|
||||
polygon = PoolVector2Array( -0.566719, -5.64549, -7.24092, 1.19557, -2.06841, 8.20348, 5.60692, 5.20009, 4.10522, -5.14492 )
|
||||
|
||||
[node name="Sprite" type="Sprite" parent="."]
|
||||
modulate = Color( 0, 1, 1, 0.584314 )
|
||||
rotation = 0.270526
|
||||
texture = ExtResource( 1 )
|
273
Physics/3D/Physics3D.tscn
Normal file
273
Physics/3D/Physics3D.tscn
Normal file
@ -0,0 +1,273 @@
|
||||
[gd_scene load_steps=11 format=2]
|
||||
|
||||
[ext_resource path="res://icon 32x32.png" type="Texture" id=1]
|
||||
[ext_resource path="res://Physics/3D/StaticArena.gd" type="Script" id=2]
|
||||
|
||||
[sub_resource type="PhysicsMaterial" id=1]
|
||||
friction = 0.89
|
||||
rough = true
|
||||
|
||||
[sub_resource type="SpatialMaterial" id=2]
|
||||
albedo_color = Color( 1, 1, 1, 0.521569 )
|
||||
albedo_texture = ExtResource( 1 )
|
||||
metallic = 1.0
|
||||
metallic_specular = 0.86
|
||||
metallic_texture = ExtResource( 1 )
|
||||
|
||||
[sub_resource type="BoxShape" id=3]
|
||||
extents = Vector3( 50, 2, 50 )
|
||||
|
||||
[sub_resource type="SpatialMaterial" id=4]
|
||||
params_diffuse_mode = 1
|
||||
albedo_texture = ExtResource( 1 )
|
||||
metallic = 0.8
|
||||
|
||||
[sub_resource type="BoxShape" id=5]
|
||||
extents = Vector3( 50, 20, 5 )
|
||||
|
||||
[sub_resource type="BoxShape" id=6]
|
||||
extents = Vector3( 11.8794, 1.37845, 22.281 )
|
||||
|
||||
[sub_resource type="BoxShape" id=7]
|
||||
extents = Vector3( 11.8794, 1.37845, 22.281 )
|
||||
|
||||
[sub_resource type="SphereShape" id=8]
|
||||
|
||||
[node name="Physics3D" type="Spatial"]
|
||||
|
||||
[node name="DirectionalLight" type="DirectionalLight" parent="."]
|
||||
transform = Transform( 1, 0, 0, 0, -0.959707, 0.281002, 0, -0.281002, -0.959707, 0, 35.3705, 0 )
|
||||
light_energy = 1.45
|
||||
|
||||
[node name="StaticArena" type="Spatial" parent="."]
|
||||
script = ExtResource( 2 )
|
||||
|
||||
[node name="StaticBody" type="StaticBody" parent="StaticArena"]
|
||||
collision_layer = 2147483651
|
||||
collision_mask = 279045
|
||||
physics_material_override = SubResource( 1 )
|
||||
|
||||
[node name="CSGBox" type="CSGBox" parent="StaticArena/StaticBody"]
|
||||
width = 100.0
|
||||
height = 4.32824
|
||||
depth = 100.0
|
||||
material = SubResource( 2 )
|
||||
|
||||
[node name="CollisionShape" type="CollisionShape" parent="StaticArena/StaticBody"]
|
||||
shape = SubResource( 3 )
|
||||
|
||||
[node name="StaticBody2" type="StaticBody" parent="StaticArena"]
|
||||
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 18.1689, 1.64214 )
|
||||
collision_layer = 2147483651
|
||||
collision_mask = 279045
|
||||
physics_material_override = SubResource( 1 )
|
||||
|
||||
[node name="CSGBox" type="CSGBox" parent="StaticArena/StaticBody2"]
|
||||
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -46.5124 )
|
||||
width = 100.0
|
||||
height = 40.0
|
||||
depth = 10.0
|
||||
material = SubResource( 4 )
|
||||
|
||||
[node name="CollisionShape" type="CollisionShape" parent="StaticArena/StaticBody2"]
|
||||
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -46.709 )
|
||||
shape = SubResource( 5 )
|
||||
|
||||
[node name="StaticBody3" type="StaticBody" parent="StaticArena"]
|
||||
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 18.1689, 91.732 )
|
||||
collision_layer = 2147483651
|
||||
collision_mask = 279045
|
||||
physics_material_override = SubResource( 1 )
|
||||
|
||||
[node name="CSGBox" type="CSGBox" parent="StaticArena/StaticBody3"]
|
||||
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -46.5124 )
|
||||
width = 100.0
|
||||
height = 40.0
|
||||
depth = 10.0
|
||||
material = SubResource( 4 )
|
||||
|
||||
[node name="CollisionShape" type="CollisionShape" parent="StaticArena/StaticBody3"]
|
||||
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -46.709 )
|
||||
shape = SubResource( 5 )
|
||||
|
||||
[node name="StaticBody4" type="StaticBody" parent="StaticArena"]
|
||||
transform = Transform( -1.62921e-07, 0, -1, 0, 1, 0, 1, 0, -1.62921e-07, -1.90218, 18.1689, 0.572887 )
|
||||
collision_layer = 2147483651
|
||||
collision_mask = 279045
|
||||
physics_material_override = SubResource( 1 )
|
||||
|
||||
[node name="CSGBox" type="CSGBox" parent="StaticArena/StaticBody4"]
|
||||
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.13509, -46.5124 )
|
||||
width = 100.0
|
||||
height = 40.0
|
||||
depth = 10.0
|
||||
material = SubResource( 4 )
|
||||
|
||||
[node name="CollisionShape" type="CollisionShape" parent="StaticArena/StaticBody4"]
|
||||
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -46.709 )
|
||||
shape = SubResource( 5 )
|
||||
|
||||
[node name="StaticBody5" type="StaticBody" parent="StaticArena"]
|
||||
transform = Transform( -1.62921e-07, 0, -1, 0, 1, 0, 1, 0, -1.62921e-07, -92.1931, 18.8845, 0.814518 )
|
||||
collision_layer = 2147483651
|
||||
collision_mask = 279045
|
||||
physics_material_override = SubResource( 1 )
|
||||
|
||||
[node name="CSGBox" type="CSGBox" parent="StaticArena/StaticBody5"]
|
||||
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -46.5124 )
|
||||
width = 100.0
|
||||
height = 40.0
|
||||
depth = 10.0
|
||||
material = SubResource( 4 )
|
||||
|
||||
[node name="CollisionShape" type="CollisionShape" parent="StaticArena/StaticBody5"]
|
||||
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -46.709 )
|
||||
shape = SubResource( 5 )
|
||||
|
||||
[node name="StaticBody6" type="StaticBody" parent="StaticArena"]
|
||||
transform = Transform( 0.998532, 0.013617, -0.0524264, 0, 0.967885, 0.251394, 0.054166, -0.251025, 0.966464, -16.8315, 7.76313, 0 )
|
||||
|
||||
[node name="CollisionShape" type="CollisionShape" parent="StaticArena/StaticBody6"]
|
||||
shape = SubResource( 6 )
|
||||
|
||||
[node name="CSGBox" type="CSGBox" parent="StaticArena/StaticBody6"]
|
||||
width = 23.9394
|
||||
depth = 44.6359
|
||||
|
||||
[node name="StaticBody7" type="StaticBody" parent="StaticArena"]
|
||||
transform = Transform( -0.642787, 0.192579, -0.741443, 0, 0.967885, 0.251394, 0.766045, 0.161593, -0.622144, 10.0702, 7.03413, 0 )
|
||||
|
||||
[node name="CollisionShape" type="CollisionShape" parent="StaticArena/StaticBody7"]
|
||||
transform = Transform( 1, -9.31323e-10, 0, 0, 1, 1.49012e-08, 3.72529e-09, 1.49012e-08, 1, 0, 0, 0 )
|
||||
shape = SubResource( 7 )
|
||||
|
||||
[node name="CSGBox" type="CSGBox" parent="StaticArena/StaticBody7"]
|
||||
width = 23.9394
|
||||
depth = 44.6359
|
||||
|
||||
[node name="Objects" type="Spatial" parent="."]
|
||||
|
||||
[node name="RigidBody" type="RigidBody" parent="Objects"]
|
||||
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -15.1259, 41.1727, -21.1681 )
|
||||
linear_velocity = Vector3( 0, 5, 0 )
|
||||
|
||||
[node name="CollisionShape" type="CollisionShape" parent="Objects/RigidBody"]
|
||||
transform = Transform( 7, 0, 0, 0, 7, 0, 0, 0, 7, 0, 0, 0 )
|
||||
shape = SubResource( 8 )
|
||||
|
||||
[node name="CSGSphere" type="CSGSphere" parent="Objects/RigidBody/CollisionShape"]
|
||||
|
||||
[node name="RigidBody2" type="RigidBody" parent="Objects"]
|
||||
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -15.1259, 41.1727, 20.5363 )
|
||||
linear_velocity = Vector3( 0, 5, 0 )
|
||||
|
||||
[node name="CollisionShape" type="CollisionShape" parent="Objects/RigidBody2"]
|
||||
transform = Transform( 7, 0, 0, 0, 7, 0, 0, 0, 7, 0, 0, 0 )
|
||||
shape = SubResource( 8 )
|
||||
|
||||
[node name="CSGSphere" type="CSGSphere" parent="Objects/RigidBody2/CollisionShape"]
|
||||
|
||||
[node name="RigidBody3" type="RigidBody" parent="Objects"]
|
||||
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -15.1259, 50.364, -3.65285 )
|
||||
linear_velocity = Vector3( 0, 5, 0 )
|
||||
|
||||
[node name="CollisionShape" type="CollisionShape" parent="Objects/RigidBody3"]
|
||||
transform = Transform( 7, 0, 0, 0, 7, 0, 0, 0, 7, 0, 0, 0 )
|
||||
shape = SubResource( 8 )
|
||||
|
||||
[node name="CSGSphere" type="CSGSphere" parent="Objects/RigidBody3/CollisionShape"]
|
||||
|
||||
[node name="RigidBody4" type="RigidBody" parent="Objects"]
|
||||
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 7.28166, 41.1727, -21.1681 )
|
||||
linear_velocity = Vector3( 0, 5, 0 )
|
||||
|
||||
[node name="CollisionShape" type="CollisionShape" parent="Objects/RigidBody4"]
|
||||
transform = Transform( 7, 0, 0, 0, 7, 0, 0, 0, 7, 0, 0, 0 )
|
||||
shape = SubResource( 8 )
|
||||
|
||||
[node name="CSGSphere" type="CSGSphere" parent="Objects/RigidBody4/CollisionShape"]
|
||||
|
||||
[node name="RigidBody5" type="RigidBody" parent="Objects"]
|
||||
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 7.80622, 41.1727, 12.6092 )
|
||||
linear_velocity = Vector3( 0, 5, 0 )
|
||||
|
||||
[node name="CollisionShape" type="CollisionShape" parent="Objects/RigidBody5"]
|
||||
transform = Transform( 7, 0, 0, 0, 7, 0, 0, 0, 7, 0, 0, 0 )
|
||||
shape = SubResource( 8 )
|
||||
|
||||
[node name="CSGSphere" type="CSGSphere" parent="Objects/RigidBody5/CollisionShape"]
|
||||
|
||||
[node name="RigidBody6" type="RigidBody" parent="Objects"]
|
||||
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 22.6969, 41.1727, -2.89124 )
|
||||
linear_velocity = Vector3( 0, 5, 0 )
|
||||
|
||||
[node name="CollisionShape" type="CollisionShape" parent="Objects/RigidBody6"]
|
||||
transform = Transform( 7, 0, 0, 0, 7, 0, 0, 0, 7, 0, 0, 0 )
|
||||
shape = SubResource( 8 )
|
||||
|
||||
[node name="CSGSphere" type="CSGSphere" parent="Objects/RigidBody6/CollisionShape"]
|
||||
|
||||
[node name="RigidBody7" type="RigidBody" parent="Objects"]
|
||||
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 21.6828, 41.1727, 19.6551 )
|
||||
linear_velocity = Vector3( 0, 5, 0 )
|
||||
|
||||
[node name="CollisionShape" type="CollisionShape" parent="Objects/RigidBody7"]
|
||||
transform = Transform( 7, 0, 0, 0, 7, 0, 0, 0, 7, 0, 0, 0 )
|
||||
shape = SubResource( 8 )
|
||||
|
||||
[node name="CSGSphere" type="CSGSphere" parent="Objects/RigidBody7/CollisionShape"]
|
||||
|
||||
[node name="RigidBody8" type="RigidBody" parent="Objects"]
|
||||
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -1.43668, 52.2537, -6.09689 )
|
||||
linear_velocity = Vector3( 0, 5, 0 )
|
||||
|
||||
[node name="CollisionShape" type="CollisionShape" parent="Objects/RigidBody8"]
|
||||
transform = Transform( 7, 0, 0, 0, 7, 0, 0, 0, 7, 0, 0, 0 )
|
||||
shape = SubResource( 8 )
|
||||
|
||||
[node name="CSGSphere" type="CSGSphere" parent="Objects/RigidBody8/CollisionShape"]
|
||||
|
||||
[node name="RigidBody9" type="RigidBody" parent="Objects"]
|
||||
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 14.3219, 62.862, -5.02587 )
|
||||
linear_velocity = Vector3( 0, 5, 0 )
|
||||
|
||||
[node name="CollisionShape" type="CollisionShape" parent="Objects/RigidBody9"]
|
||||
transform = Transform( 7, 0, 0, 0, 7, 0, 0, 0, 7, 0, 0, 0 )
|
||||
shape = SubResource( 8 )
|
||||
|
||||
[node name="CSGSphere" type="CSGSphere" parent="Objects/RigidBody9/CollisionShape"]
|
||||
|
||||
[node name="RigidBody10" type="RigidBody" parent="Objects"]
|
||||
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -28.7139, 41.1727, -9.76783 )
|
||||
linear_velocity = Vector3( 0, 5, 0 )
|
||||
|
||||
[node name="CollisionShape" type="CollisionShape" parent="Objects/RigidBody10"]
|
||||
transform = Transform( 7, 0, 0, 0, 7, 0, 0, 0, 7, 0, 0, 0 )
|
||||
shape = SubResource( 8 )
|
||||
|
||||
[node name="CSGSphere" type="CSGSphere" parent="Objects/RigidBody10/CollisionShape"]
|
||||
|
||||
[node name="RigidBody11" type="RigidBody" parent="Objects"]
|
||||
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -8.57036, 66.2741, -5.42798 )
|
||||
linear_velocity = Vector3( 0, 5, 0 )
|
||||
|
||||
[node name="CollisionShape" type="CollisionShape" parent="Objects/RigidBody11"]
|
||||
transform = Transform( 7, 0, 0, 0, 7, 0, 0, 0, 7, 0, 0, 0 )
|
||||
shape = SubResource( 8 )
|
||||
|
||||
[node name="CSGSphere" type="CSGSphere" parent="Objects/RigidBody11/CollisionShape"]
|
||||
|
||||
[node name="RigidBody12" type="RigidBody" parent="Objects"]
|
||||
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -36.4517, 3.2776, -36.8718 )
|
||||
linear_velocity = Vector3( 0, 5, 0 )
|
||||
|
||||
[node name="CollisionShape" type="CollisionShape" parent="Objects/RigidBody12"]
|
||||
transform = Transform( 7, 0, 0, 0, 7, 0, 0, 0, 7, 0, 0, 0 )
|
||||
shape = SubResource( 8 )
|
||||
|
||||
[node name="CSGSphere" type="CSGSphere" parent="Objects/RigidBody12/CollisionShape"]
|
||||
|
||||
[node name="Camera" type="Camera" parent="."]
|
||||
transform = Transform( 0.922114, 0.23703, -0.305815, 0.0163102, 0.765871, 0.642788, 0.386575, -0.597711, 0.702354, -25.392, 55.117, 39.851 )
|
||||
current = true
|
||||
far = 200.0
|
5
Physics/3D/StaticArena.gd
Normal file
5
Physics/3D/StaticArena.gd
Normal file
@ -0,0 +1,5 @@
|
||||
extends Node3D
|
||||
|
||||
|
||||
func _process(delta):
|
||||
rotate(Vector3(0, 1, 0).normalized(), 1 * delta)
|
18
Rendering/Lights2D/Light2D.gd
Normal file
18
Rendering/Lights2D/Light2D.gd
Normal file
@ -0,0 +1,18 @@
|
||||
extends Node2D
|
||||
|
||||
var move_vector: Vector2 = Vector2(1, 1)
|
||||
var speed: float = 100.0
|
||||
|
||||
|
||||
func _process(delta):
|
||||
position += Vector2(move_vector.x * delta * speed, move_vector.y * delta * speed)
|
||||
rotation += speed * delta
|
||||
|
||||
if position.y > Autoload.screen_size.y:
|
||||
move_vector.y = -1
|
||||
elif position.y < 0:
|
||||
move_vector.y = 1
|
||||
elif position.x > Autoload.screen_size.x:
|
||||
move_vector.x = -1
|
||||
elif position.x < 0:
|
||||
move_vector.x = 1
|
11
Rendering/Lights2D/Light2D.tscn
Normal file
11
Rendering/Lights2D/Light2D.tscn
Normal file
@ -0,0 +1,11 @@
|
||||
[gd_scene load_steps=3 format=2]
|
||||
|
||||
[ext_resource path="res://Rendering/Lights2D/Light2D.gd" type="Script" id=1]
|
||||
[ext_resource path="res://icon 32x32.png" type="Texture" id=2]
|
||||
|
||||
[node name="Light2D" type="Light2D"]
|
||||
position = Vector2( 36.375, 37.875 )
|
||||
texture = ExtResource( 2 )
|
||||
texture_scale = 3.39
|
||||
shadow_enabled = true
|
||||
script = ExtResource( 1 )
|
133
Rendering/Lights2D/Lights2D.tscn
Normal file
133
Rendering/Lights2D/Lights2D.tscn
Normal file
@ -0,0 +1,133 @@
|
||||
[gd_scene load_steps=3 format=2]
|
||||
|
||||
[ext_resource path="res://Rendering/Lights2D/Light2D.tscn" type="PackedScene" id=2]
|
||||
|
||||
[sub_resource type="OccluderPolygon2D" id=1]
|
||||
cull_mode = 1
|
||||
polygon = PackedVector2Array( -17.0128, 10.1432, -70.8541, 35.4749, 23.5811, 77.3471, 22.5851, 14.3859 )
|
||||
|
||||
[node name="Lights2D" type="Control"]
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
script = null
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="ColorRect" type="ColorRect" parent="."]
|
||||
self_modulate = Color( 0.290196, 0.160784, 0, 0.529412 )
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
script = null
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="Light2D" parent="." instance=ExtResource( 2 )]
|
||||
skew = 4.37114e-08
|
||||
|
||||
[node name="Light2D2" parent="." instance=ExtResource( 2 )]
|
||||
position = Vector2( 552.563, -17.2793 )
|
||||
skew = 4.37114e-08
|
||||
|
||||
[node name="Light2D3" parent="." instance=ExtResource( 2 )]
|
||||
position = Vector2( 34.9607, 524.365 )
|
||||
skew = 4.37114e-08
|
||||
|
||||
[node name="Light2D4" parent="." instance=ExtResource( 2 )]
|
||||
position = Vector2( 679.842, 556.891 )
|
||||
skew = 4.37114e-08
|
||||
|
||||
[node name="Light2D5" parent="." instance=ExtResource( 2 )]
|
||||
position = Vector2( 418.213, 295.262 )
|
||||
skew = 4.37114e-08
|
||||
|
||||
[node name="Light2D6" parent="." instance=ExtResource( 2 )]
|
||||
position = Vector2( 863.69, 330.617 )
|
||||
skew = 4.37114e-08
|
||||
|
||||
[node name="Light2D7" parent="." instance=ExtResource( 2 )]
|
||||
position = Vector2( 336.188, 565.377 )
|
||||
skew = 4.37114e-08
|
||||
|
||||
[node name="Light2D8" parent="." instance=ExtResource( 2 )]
|
||||
position = Vector2( 996.626, 563.962 )
|
||||
skew = 4.37114e-08
|
||||
|
||||
[node name="Light2D9" parent="." instance=ExtResource( 2 )]
|
||||
position = Vector2( 582.261, 406.985 )
|
||||
skew = 4.37114e-08
|
||||
|
||||
[node name="Light2D10" parent="." instance=ExtResource( 2 )]
|
||||
position = Vector2( 600.646, 208.995 )
|
||||
skew = 4.37114e-08
|
||||
|
||||
[node name="Light2D11" parent="." instance=ExtResource( 2 )]
|
||||
position = Vector2( 842.477, 139.698 )
|
||||
skew = 4.37114e-08
|
||||
|
||||
[node name="Light2D12" parent="." instance=ExtResource( 2 )]
|
||||
position = Vector2( 240.022, 228.794 )
|
||||
skew = 4.37114e-08
|
||||
|
||||
[node name="Light2D13" parent="." instance=ExtResource( 2 )]
|
||||
position = Vector2( 84.4581, 320.718 )
|
||||
skew = 4.37114e-08
|
||||
|
||||
[node name="Light2D14" parent="." instance=ExtResource( 2 )]
|
||||
position = Vector2( 251.335, 390.014 )
|
||||
skew = 4.37114e-08
|
||||
|
||||
[node name="Light2D15" parent="." instance=ExtResource( 2 )]
|
||||
position = Vector2( 232.951, 64.745 )
|
||||
skew = 4.37114e-08
|
||||
|
||||
[node name="Light2D16" parent="." instance=ExtResource( 2 )]
|
||||
position = Vector2( 716.612, 57.674 )
|
||||
skew = 4.37114e-08
|
||||
|
||||
[node name="Light2D17" parent="." instance=ExtResource( 2 )]
|
||||
position = Vector2( 966.927, 117.071 )
|
||||
skew = 4.37114e-08
|
||||
|
||||
[node name="LightOccluder2D" type="LightOccluder2D" parent="."]
|
||||
position = Vector2( 469.444, 367.746 )
|
||||
skew = 4.37114e-08
|
||||
occluder = SubResource( 1 )
|
||||
script = null
|
||||
|
||||
[node name="LightOccluder2D2" type="LightOccluder2D" parent="."]
|
||||
position = Vector2( 641.978, 284.308 )
|
||||
skew = 4.37114e-08
|
||||
occluder = SubResource( 1 )
|
||||
script = null
|
||||
|
||||
[node name="LightOccluder2D3" type="LightOccluder2D" parent="."]
|
||||
position = Vector2( 374.692, 76.4184 )
|
||||
skew = 4.37114e-08
|
||||
occluder = SubResource( 1 )
|
||||
script = null
|
||||
|
||||
[node name="LightOccluder2D4" type="LightOccluder2D" parent="."]
|
||||
position = Vector2( 876.738, 219.254 )
|
||||
skew = 4.37114e-08
|
||||
occluder = SubResource( 1 )
|
||||
script = null
|
||||
|
||||
[node name="LightOccluder2D5" type="LightOccluder2D" parent="."]
|
||||
position = Vector2( 906.436, 492.197 )
|
||||
skew = 4.37114e-08
|
||||
occluder = SubResource( 1 )
|
||||
script = null
|
||||
|
||||
[node name="LightOccluder2D6" type="LightOccluder2D" parent="."]
|
||||
position = Vector2( 906.436, 492.197 )
|
||||
skew = 4.37114e-08
|
||||
occluder = SubResource( 1 )
|
||||
script = null
|
||||
|
||||
[node name="LightOccluder2D7" type="LightOccluder2D" parent="."]
|
||||
position = Vector2( 216.3, 438.457 )
|
||||
skew = 4.37114e-08
|
||||
occluder = SubResource( 1 )
|
||||
script = null
|
10
Rendering/Lights3D/Camera.gd
Normal file
10
Rendering/Lights3D/Camera.gd
Normal file
@ -0,0 +1,10 @@
|
||||
extends Camera3D
|
||||
|
||||
var speed = 1
|
||||
var curr = 0
|
||||
|
||||
|
||||
func _process(delta):
|
||||
curr += delta * speed
|
||||
|
||||
look_at_from_position(Vector3(cos(curr) * 3, 0, sin(curr) * 3), Vector3.ZERO, Vector3(0, 1, 0))
|
10
Rendering/Lights3D/DirectionalLight.gd
Normal file
10
Rendering/Lights3D/DirectionalLight.gd
Normal file
@ -0,0 +1,10 @@
|
||||
extends DirectionalLight3D
|
||||
|
||||
var speed = 1.2
|
||||
var curr = 0
|
||||
|
||||
|
||||
func _process(delta):
|
||||
curr += delta * speed
|
||||
|
||||
rotation = Vector3(sin(curr) * speed, cos(curr) * speed, sin(8 * curr) * speed)
|
47
Rendering/Lights3D/Lights3D.tscn
Normal file
47
Rendering/Lights3D/Lights3D.tscn
Normal file
@ -0,0 +1,47 @@
|
||||
[gd_scene load_steps=5 format=2]
|
||||
|
||||
[ext_resource path="res://Rendering/Lights3D/Camera.gd" type="Script" id=1]
|
||||
[ext_resource path="res://Rendering/Lights3D/DirectionalLight.gd" type="Script" id=2]
|
||||
[ext_resource path="res://Rendering/Lights3D/OmniLight.gd" type="Script" id=3]
|
||||
[ext_resource path="res://Rendering/Lights3D/SpotLight.gd" type="Script" id=4]
|
||||
|
||||
[node name="Lights3D" type="Spatial"]
|
||||
|
||||
[node name="Camera" type="Camera" parent="."]
|
||||
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 2.87313 )
|
||||
script = ExtResource( 1 )
|
||||
|
||||
[node name="DirectionalLight" type="DirectionalLight" parent="."]
|
||||
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 10.521, 0 )
|
||||
light_color = Color( 0.458824, 0.690196, 0.988235, 1 )
|
||||
script = ExtResource( 2 )
|
||||
|
||||
[node name="OmniLight" type="OmniLight" parent="."]
|
||||
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 5.0767, 0 )
|
||||
light_color = Color( 0.556863, 0, 0, 1 )
|
||||
script = ExtResource( 3 )
|
||||
|
||||
[node name="SpotLight" type="SpotLight" parent="."]
|
||||
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 4.09376 )
|
||||
light_color = Color( 0.478431, 0.266667, 1, 1 )
|
||||
spot_range = 8.6
|
||||
script = ExtResource( 4 )
|
||||
|
||||
[node name="Boxes" type="Spatial" parent="."]
|
||||
|
||||
[node name="CSGBox" type="CSGBox" parent="Boxes"]
|
||||
width = 0.782
|
||||
height = 1.07
|
||||
depth = 1.12259
|
||||
|
||||
[node name="CSGBox2" type="CSGBox" parent="Boxes"]
|
||||
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -0.437537, 0.150547, -0.302456 )
|
||||
width = 0.782
|
||||
height = 1.583
|
||||
depth = 0.394
|
||||
|
||||
[node name="CSGBox3" type="CSGBox" parent="Boxes"]
|
||||
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0.699736, 0.150547, -0.302456 )
|
||||
width = 0.342
|
||||
height = 0.521
|
||||
depth = 0.394
|
10
Rendering/Lights3D/OmniLight.gd
Normal file
10
Rendering/Lights3D/OmniLight.gd
Normal file
@ -0,0 +1,10 @@
|
||||
extends OmniLight3D
|
||||
|
||||
var speed = 0.2
|
||||
var curr = 0
|
||||
|
||||
|
||||
func _process(delta):
|
||||
curr += delta * speed
|
||||
|
||||
look_at_from_position(Vector3(cos(curr) * 3, sin(curr * curr) * 3, sin(curr) * 3), Vector3.ZERO, Vector3(0, 1, 0))
|
10
Rendering/Lights3D/SpotLight.gd
Normal file
10
Rendering/Lights3D/SpotLight.gd
Normal file
@ -0,0 +1,10 @@
|
||||
extends SpotLight3D
|
||||
|
||||
var speed = 0.3
|
||||
var curr = 0
|
||||
|
||||
|
||||
func _process(delta):
|
||||
curr += delta * speed
|
||||
|
||||
look_at_from_position(Vector3(cos(curr) * 3, sin(curr * curr) * 3, sin(curr) * 3), Vector3.ZERO, Vector3(0, 1, 0))
|
BIN
icon 32x32.png
Normal file
BIN
icon 32x32.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 6.9 KiB |
36
icon 32x32.png.import
Normal file
36
icon 32x32.png.import
Normal file
@ -0,0 +1,36 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture2D"
|
||||
path.s3tc="res://.godot/imported/icon 32x32.png-b86539832226708d9735f29f6872d9e2.s3tc.stex"
|
||||
path.etc2="res://.godot/imported/icon 32x32.png-b86539832226708d9735f29f6872d9e2.etc2.stex"
|
||||
metadata={
|
||||
"imported_formats": [ "s3tc", "etc2" ],
|
||||
"vram_texture": true
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://icon 32x32.png"
|
||||
dest_files=[ "res://.godot/imported/icon 32x32.png-b86539832226708d9735f29f6872d9e2.s3tc.stex", "res://.godot/imported/icon 32x32.png-b86539832226708d9735f29f6872d9e2.etc2.stex" ]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=2
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/bptc_ldr=0
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
compress/streamed=false
|
||||
mipmaps/generate=true
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/invert_color=false
|
||||
process/HDR_as_SRGB=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=0
|
||||
svg/scale=1.0
|
34
icon.png.import
Normal file
34
icon.png.import
Normal file
@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture2D"
|
||||
path="res://.godot/imported/icon.png-487276ed1e3a0c39cad0279d744ee560.stex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://icon.png"
|
||||
dest_files=[ "res://.godot/imported/icon.png-487276ed1e3a0c39cad0279d744ee560.stex" ]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/bptc_ldr=0
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
compress/streamed=false
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/invert_color=false
|
||||
process/HDR_as_SRGB=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=1
|
||||
svg/scale=1.0
|
51
misc/check_ci_log.py
Executable file
51
misc/check_ci_log.py
Executable file
@ -0,0 +1,51 @@
|
||||
#!/usr/bin/env python
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import sys
|
||||
|
||||
if len(sys.argv) < 2:
|
||||
print("ERROR: You must run program with file name as argument.")
|
||||
sys.exit(1)
|
||||
|
||||
fname = sys.argv[1]
|
||||
|
||||
fileread = open(fname.strip(), "r")
|
||||
file_contents = fileread.read()
|
||||
|
||||
# If find "ERROR: AddressSanitizer:", then happens invalid read or write
|
||||
# This is critical bug, so we need to fix this as fast as possible
|
||||
|
||||
if file_contents.find("ERROR: AddressSanitizer:") != -1:
|
||||
print("FATAL ERROR: An incorrectly used memory was found.")
|
||||
sys.exit(1)
|
||||
|
||||
# There is also possible, that program crashed with or without backtrace.
|
||||
|
||||
if (
|
||||
file_contents.find("Program crashed with signal") != -1
|
||||
or file_contents.find("Dumping the backtrace") != -1
|
||||
or file_contents.find("Segmentation fault (core dumped)") != -1
|
||||
):
|
||||
print("FATAL ERROR: Godot has been crashed.")
|
||||
sys.exit(1)
|
||||
|
||||
# Finding memory leaks in Godot is quite difficult, because we need to take into
|
||||
# account leaks also in external libraries. They are usually provided without
|
||||
# debugging symbols, so the leak report from it usually has only 2/3 lines,
|
||||
# so searching for 5 element - "#4 0x" - should correctly detect the vast
|
||||
# majority of memory leaks
|
||||
|
||||
if file_contents.find("ERROR: LeakSanitizer:") != -1:
|
||||
if file_contents.find("#4 0x") != -1:
|
||||
print("ERROR: Memory leak was found")
|
||||
sys.exit(1)
|
||||
|
||||
# It may happen that Godot detects leaking nodes/resources and removes them, so
|
||||
# this possibility should also be handled as a potential error, even if
|
||||
# LeakSanitizer doesn't report anything
|
||||
|
||||
if file_contents.find("ObjectDB instances leaked at exit") != -1:
|
||||
print("ERROR: Memory leak was found")
|
||||
sys.exit(1)
|
||||
|
||||
sys.exit(0)
|
@ -8,13 +8,23 @@
|
||||
|
||||
config_version=4
|
||||
|
||||
_global_script_classes=[ {
|
||||
"base": "Node2D",
|
||||
"class": @"Operators",
|
||||
"language": @"GDScript",
|
||||
"path": "res://MainScenes/Operators.gd"
|
||||
} ]
|
||||
_global_script_class_icons={
|
||||
@"Operators": ""
|
||||
}
|
||||
|
||||
[application]
|
||||
|
||||
run/main_scene="res://All.tscn"
|
||||
|
||||
[autoload]
|
||||
|
||||
Autoload="*res://Autoload.gd"
|
||||
Autoload="*res://Autoload/Autoload.gd"
|
||||
|
||||
[memory]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user