From 3ed5257c222f34b591b744ef6418b5c1165be25f Mon Sep 17 00:00:00 2001 From: J08nY Date: Sat, 22 Apr 2017 16:58:23 +0200 Subject: Camera now rotates around worlds --- base.tscn | 34 +++++++++++++++++++++++++++------- 1 file changed, 27 insertions(+), 7 deletions(-) (limited to 'base.tscn') diff --git a/base.tscn b/base.tscn index a5343bc..0abf748 100644 --- a/base.tscn +++ b/base.tscn @@ -1,9 +1,11 @@ -[gd_scene load_steps=3 format=2] +[gd_scene load_steps=5 format=2] -[ext_resource path="res://base.gd" type="Script" id=1] -[ext_resource path="res://world.tscn" type="PackedScene" id=2] +[ext_resource path="res://scripts/base.gd" type="Script" id=1] +[ext_resource path="res://scripts/camera.gd" type="Script" id=2] +[ext_resource path="res://world.tscn" type="PackedScene" id=3] +[ext_resource path="res://incubator.tscn" type="PackedScene" id=4] -[node name="Game" type="Node"] +[node name="Game" type="Spatial"] script = ExtResource( 1 ) @@ -14,11 +16,12 @@ fov = 60.0 near = 0.1 far = 100.0 keep_aspect = 1 -current = false +current = true cull_mask = 1048575 environment = null h_offset = 0.0 v_offset = 0.0 +script = ExtResource( 2 ) [node name="OmniLight" type="OmniLight" parent="Camera"] @@ -40,8 +43,25 @@ omni_attenuation = 1.0 omni_shadow_mode = 0 omni_shadow_detail = 1 -[node name="World" parent="." instance=ExtResource( 2 )] +[node name="World" parent="." instance=ExtResource( 3 )] -transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -3.35552 ) +transform = Transform( 0.05, 0, 0, 0, 0.05, 0, 0, 0, 0.05, 0, 0, -3.35552 ) + +[node name="World2" parent="." instance=ExtResource( 3 )] + +transform = Transform( 0.05, 0, 0, 0, 0.05, 0, 0, 0, 0.05, -5.01353, 0, -3.35552 ) + +[node name="Incubator" parent="." instance=ExtResource( 4 )] + +transform = Transform( -4.37114e-08, 0, -1, 0, 1, 0, 1, 0, -4.37114e-08, 0, 0, -6 ) + +[node name="Panel" type="Panel" parent="."] + +margin_left = 20.0 +margin_top = 490.0 +margin_right = 240.0 +margin_bottom = 580.0 +rect_clip_content = false +mouse_filter = 0 -- cgit v1.2.3-70-g09d2