Mark gaat naar bed commit. joe
This commit is contained in:
@@ -0,0 +1,6 @@
|
|||||||
|
extends Node
|
||||||
|
|
||||||
|
var naampje = "je moeder"
|
||||||
|
|
||||||
|
func _ready():
|
||||||
|
pass
|
||||||
@@ -0,0 +1,21 @@
|
|||||||
|
[gd_resource type="SpatialMaterial" load_steps=3 format=2]
|
||||||
|
|
||||||
|
[sub_resource type="Gradient" id=1]
|
||||||
|
offsets = PoolRealArray( 0, 0.920168, 1 )
|
||||||
|
colors = PoolColorArray( 0.978516, 0.124113, 0.124113, 1, 0.903033, 0.490408, 0.226752, 1, 0.896484, 0.522187, 0.235657, 1 )
|
||||||
|
|
||||||
|
[sub_resource type="GradientTexture" id=2]
|
||||||
|
gradient = SubResource( 1 )
|
||||||
|
|
||||||
|
[resource]
|
||||||
|
render_priority = 1
|
||||||
|
params_diffuse_mode = 2
|
||||||
|
params_specular_mode = 1
|
||||||
|
albedo_color = Color( 1, 1, 1, 0.443137 )
|
||||||
|
metallic_specular = 0.0
|
||||||
|
subsurf_scatter_enabled = true
|
||||||
|
subsurf_scatter_strength = 0.89
|
||||||
|
subsurf_scatter_texture = SubResource( 2 )
|
||||||
|
refraction_enabled = true
|
||||||
|
refraction_scale = 0.1
|
||||||
|
refraction_texture_channel = 0
|
||||||
@@ -0,0 +1,20 @@
|
|||||||
|
[gd_scene load_steps=5 format=2]
|
||||||
|
|
||||||
|
[ext_resource path="res://figure.gltf" type="PackedScene" id=1]
|
||||||
|
[ext_resource path="res://Creature.gd" type="Script" id=2]
|
||||||
|
[ext_resource path="res://Creature.tres" type="Material" id=3]
|
||||||
|
|
||||||
|
[sub_resource type="CylinderShape" id=4]
|
||||||
|
height = 1.21849
|
||||||
|
|
||||||
|
[node name="Creature" instance=ExtResource( 1 )]
|
||||||
|
script = ExtResource( 2 )
|
||||||
|
|
||||||
|
[node name="Mesh" parent="Node/Node 2/Armature" index="0"]
|
||||||
|
material/0 = ExtResource( 3 )
|
||||||
|
|
||||||
|
[node name="Area" type="Area" parent="." index="2"]
|
||||||
|
|
||||||
|
[node name="CollisionShape" type="CollisionShape" parent="Area" index="0"]
|
||||||
|
transform = Transform( 0.25, 0, 0, 0, 1, 0, 0, 0, 0.25, 0, 0.803572, 0 )
|
||||||
|
shape = SubResource( 4 )
|
||||||
@@ -0,0 +1,23 @@
|
|||||||
|
extends Node
|
||||||
|
export (PackedScene) var Creature
|
||||||
|
|
||||||
|
var selected;
|
||||||
|
|
||||||
|
func _ready():
|
||||||
|
pass
|
||||||
|
|
||||||
|
func spawn_a_bitch():
|
||||||
|
# Maak een bitch
|
||||||
|
var c = Creature.instance()
|
||||||
|
add_child(c)
|
||||||
|
|
||||||
|
# Geef de bitch een random positie en rotatie
|
||||||
|
c.rotate_y(rand_range(-5, 5))
|
||||||
|
c.transform = Transform(c.transform.basis, Vector3(rand_range(-7, 7), 0, rand_range(-5, 5)))
|
||||||
|
print_tree ( )
|
||||||
|
|
||||||
|
func kill_a_bitch():
|
||||||
|
var c = get_child(get_child_count()-1)
|
||||||
|
if c:
|
||||||
|
c.queue_free()
|
||||||
|
#remove_child(c)
|
||||||
Binary file not shown.
+2618
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,85 @@
|
|||||||
|
[gd_scene load_steps=6 format=2]
|
||||||
|
|
||||||
|
[ext_resource path="res://CreatureLab.gd" type="Script" id=1]
|
||||||
|
[ext_resource path="res://Creature.tscn" type="PackedScene" id=2]
|
||||||
|
|
||||||
|
[sub_resource type="CanvasItemMaterial" id=1]
|
||||||
|
|
||||||
|
[sub_resource type="ProceduralSky" id=2]
|
||||||
|
radiance_size = 5
|
||||||
|
sky_top_color = Color( 0.258824, 0.305882, 0.678431, 1 )
|
||||||
|
sky_horizon_color = Color( 0.847059, 0.411765, 0.14902, 1 )
|
||||||
|
sky_curve = 0.0783495
|
||||||
|
ground_bottom_color = Color( 0.176471, 0.243137, 0.180392, 1 )
|
||||||
|
ground_horizon_color = Color( 0.0666667, 0.188235, 0.0431373, 1 )
|
||||||
|
ground_curve = 0.196983
|
||||||
|
sun_color = Color( 0.717647, 0.431373, 0.176471, 1 )
|
||||||
|
sun_latitude = 6.66
|
||||||
|
sun_longitude = 22.68
|
||||||
|
sun_energy = 6.04
|
||||||
|
|
||||||
|
[sub_resource type="Environment" id=3]
|
||||||
|
background_mode = 2
|
||||||
|
background_sky = SubResource( 2 )
|
||||||
|
background_color = Color( 0.803922, 0.54902, 0.333333, 0.196078 )
|
||||||
|
tonemap_mode = 2
|
||||||
|
auto_exposure_speed = 3.15
|
||||||
|
ssao_enabled = true
|
||||||
|
ssao_quality = 2
|
||||||
|
ssao_blur = 2
|
||||||
|
ssao_edge_sharpness = 11.5
|
||||||
|
dof_blur_far_distance = 114.9
|
||||||
|
dof_blur_far_transition = 3.35
|
||||||
|
dof_blur_far_amount = 0.13
|
||||||
|
dof_blur_far_quality = 2
|
||||||
|
dof_blur_near_distance = 0.07
|
||||||
|
glow_enabled = true
|
||||||
|
glow_levels/1 = true
|
||||||
|
glow_levels/5 = false
|
||||||
|
glow_levels/7 = true
|
||||||
|
glow_strength = 0.94
|
||||||
|
glow_blend_mode = 1
|
||||||
|
glow_hdr_luminance_cap = 105.57
|
||||||
|
glow_hdr_scale = 2.1
|
||||||
|
glow_bicubic_upscale = true
|
||||||
|
|
||||||
|
[node name="Todd_Test" type="Spatial"]
|
||||||
|
|
||||||
|
[node name="GUI" type="CanvasLayer" parent="."]
|
||||||
|
|
||||||
|
[node name="Control" type="Control" parent="GUI"]
|
||||||
|
material = SubResource( 1 )
|
||||||
|
|
||||||
|
[node name="Spawn" type="Button" parent="GUI/Control"]
|
||||||
|
anchor_top = 1.0
|
||||||
|
anchor_bottom = 1.0
|
||||||
|
margin_left = 50.0
|
||||||
|
margin_top = 50.0
|
||||||
|
margin_right = 149.0
|
||||||
|
margin_bottom = 70.0
|
||||||
|
text = "Spawn a bitch"
|
||||||
|
|
||||||
|
[node name="Kill" type="Button" parent="GUI/Control"]
|
||||||
|
margin_left = 224.723
|
||||||
|
margin_top = 49.0975
|
||||||
|
margin_right = 303.723
|
||||||
|
margin_bottom = 69.0975
|
||||||
|
shortcut_in_tooltip = false
|
||||||
|
text = "Kill a bitch"
|
||||||
|
|
||||||
|
[node name="Log" type="Label" parent="GUI"]
|
||||||
|
anchor_bottom = 1.0
|
||||||
|
margin_bottom = -586.0
|
||||||
|
align = 1
|
||||||
|
|
||||||
|
[node name="Camera" type="Camera" parent="."]
|
||||||
|
transform = Transform( 1, 0, 0, 0, 0.884831, 0.465913, 0, -0.465913, 0.884831, 0.29992, 5.61605, 11.1106 )
|
||||||
|
|
||||||
|
[node name="CreatureLab" type="Node" parent="."]
|
||||||
|
script = ExtResource( 1 )
|
||||||
|
Creature = ExtResource( 2 )
|
||||||
|
|
||||||
|
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
|
||||||
|
environment = SubResource( 3 )
|
||||||
|
[connection signal="pressed" from="GUI/Control/Spawn" to="CreatureLab" method="spawn_a_bitch"]
|
||||||
|
[connection signal="pressed" from="GUI/Control/Kill" to="CreatureLab" method="kill_a_bitch"]
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
[gd_resource type="Environment" load_steps=2 format=2]
|
||||||
|
|
||||||
|
[sub_resource type="ProceduralSky" id=1]
|
||||||
|
|
||||||
|
[resource]
|
||||||
|
background_mode = 2
|
||||||
|
background_sky = SubResource( 1 )
|
||||||
@@ -0,0 +1,18 @@
|
|||||||
|
extends Spatial
|
||||||
|
|
||||||
|
# Declare member variables here. Examples:
|
||||||
|
# var a = 2
|
||||||
|
# var b = "text"
|
||||||
|
|
||||||
|
# Called when the node enters the scene tree for the first time.
|
||||||
|
func _ready():
|
||||||
|
pass # Replace with function body.
|
||||||
|
|
||||||
|
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||||
|
#func _process(delta):
|
||||||
|
# pass
|
||||||
|
|
||||||
|
func doe_shit():
|
||||||
|
print("je moeder")
|
||||||
|
Animation
|
||||||
|
pass
|
||||||
+2618
File diff suppressed because one or more lines are too long
+1062
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,34 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="StreamTexture"
|
||||||
|
path="res://.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://icon.png"
|
||||||
|
dest_files=[ "res://.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex" ]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
compress/mode=0
|
||||||
|
compress/lossy_quality=0.7
|
||||||
|
compress/hdr_mode=0
|
||||||
|
compress/bptc_ldr=0
|
||||||
|
compress/normal_map=0
|
||||||
|
flags/repeat=0
|
||||||
|
flags/filter=true
|
||||||
|
flags/mipmaps=false
|
||||||
|
flags/anisotropic=false
|
||||||
|
flags/srgb=2
|
||||||
|
process/fix_alpha_border=true
|
||||||
|
process/premult_alpha=false
|
||||||
|
process/HDR_as_SRGB=false
|
||||||
|
process/invert_color=false
|
||||||
|
stream=false
|
||||||
|
size_limit=0
|
||||||
|
detect_3d=true
|
||||||
|
svg/scale=1.0
|
||||||
@@ -0,0 +1,32 @@
|
|||||||
|
; Engine configuration file.
|
||||||
|
; It's best edited using the editor UI and not directly,
|
||||||
|
; since the parameters that go here are not all obvious.
|
||||||
|
;
|
||||||
|
; Format:
|
||||||
|
; [section] ; section goes between []
|
||||||
|
; param=value ; assign values to parameters
|
||||||
|
|
||||||
|
config_version=4
|
||||||
|
|
||||||
|
_global_script_classes=[ ]
|
||||||
|
_global_script_class_icons={
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
[application]
|
||||||
|
|
||||||
|
config/name="Recombinator"
|
||||||
|
run/main_scene="res://Spatial.tscn"
|
||||||
|
config/icon="res://icon.png"
|
||||||
|
|
||||||
|
[input]
|
||||||
|
|
||||||
|
select_creature={
|
||||||
|
"deadzone": 0.5,
|
||||||
|
"events": [ Object(InputEventMouseButton,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"button_mask":0,"position":Vector2( 0, 0 ),"global_position":Vector2( 0, 0 ),"factor":1.0,"button_index":1,"pressed":false,"doubleclick":false,"script":null)
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
|
[rendering]
|
||||||
|
|
||||||
|
environment/default_environment="res://default_env.tres"
|
||||||
Reference in New Issue
Block a user