From b8c7014c5ee09baca733bda6c3d02f344171a467 Mon Sep 17 00:00:00 2001 From: as4s4hetic Date: Sun, 23 Jan 2022 12:48:02 +1100 Subject: [PATCH] added todo and begin work on Ch1S1 --- Scenes/Camera.tscn | 8 ++++++++ Scripts/CameraFollow.gd | 1 - Story/Ch1S1.tscn | 38 ++++++++++++++++++++++++++++++++++++++ Story/Ch1S2.tscn | 7 ++----- project.godot | 2 +- todo.org | 17 +++++++++++++++++ todo.org~ | 3 +++ 7 files changed, 69 insertions(+), 7 deletions(-) create mode 100644 Scenes/Camera.tscn create mode 100644 Story/Ch1S1.tscn create mode 100644 todo.org create mode 100644 todo.org~ diff --git a/Scenes/Camera.tscn b/Scenes/Camera.tscn new file mode 100644 index 0000000..8718756 --- /dev/null +++ b/Scenes/Camera.tscn @@ -0,0 +1,8 @@ +[gd_scene load_steps=2 format=2] + +[ext_resource path="res://Scripts/CameraFollow.gd" type="Script" id=1] + +[node name="Camera2D" type="Camera2D"] +position = Vector2( 480, 240 ) +current = true +script = ExtResource( 1 ) diff --git a/Scripts/CameraFollow.gd b/Scripts/CameraFollow.gd index 00ece2f..ba2e85e 100644 --- a/Scripts/CameraFollow.gd +++ b/Scripts/CameraFollow.gd @@ -13,7 +13,6 @@ func _ready(): # Called every frame. 'delta' is the elapsed time since the previous frame. onready var target = get_node("../FG/Player") -onready var covers = get_node("../FG/Covers") func _process (delta): diff --git a/Story/Ch1S1.tscn b/Story/Ch1S1.tscn new file mode 100644 index 0000000..3aae2f2 --- /dev/null +++ b/Story/Ch1S1.tscn @@ -0,0 +1,38 @@ +[gd_scene load_steps=4 format=2] + +[ext_resource path="res://Resources/woods.tres" type="TileSet" id=1] +[ext_resource path="res://Scenes/Player.tscn" type="PackedScene" id=2] +[ext_resource path="res://Scenes/Camera.tscn" type="PackedScene" id=3] + +[node name="Ch1S1" type="Node2D"] + +[node name="ParallaxBackground" type="ParallaxBackground" parent="."] + +[node name="ParallaxLayer" type="ParallaxLayer" parent="ParallaxBackground"] +motion_scale = Vector2( 0.5, 1 ) +motion_mirroring = Vector2( 240, 0 ) + +[node name="Sky" type="TileMap" parent="ParallaxBackground/ParallaxLayer"] +tile_set = ExtResource( 1 ) +cell_size = Vector2( 60, 60 ) +cell_quadrant_size = 15 +format = 1 +tile_data = PoolIntArray( 65528, 0, 0, 65532, 0, 0, 0, 0, 0, 4, 0, 0, 8, 0, 0, 12, 0, 0, 16, 0, 0, 20, 0, 0 ) + +[node name="ParallaxLayer2" type="ParallaxLayer" parent="ParallaxBackground"] +motion_scale = Vector2( 1.8, 1 ) +motion_mirroring = Vector2( 0.5, 0 ) + +[node name="Trees" type="TileMap" parent="ParallaxBackground/ParallaxLayer2"] +tile_set = ExtResource( 1 ) +cell_size = Vector2( 60, 60 ) +format = 1 + +[node name="FG" type="Node2D" parent="."] + +[node name="Player" parent="FG" instance=ExtResource( 2 )] +position = Vector2( 703, 185 ) + +[node name="Camera" parent="." instance=ExtResource( 3 )] +visible = false +position = Vector2( 480, 245 ) diff --git a/Story/Ch1S2.tscn b/Story/Ch1S2.tscn index ed97abb..2ed1431 100644 --- a/Story/Ch1S2.tscn +++ b/Story/Ch1S2.tscn @@ -11,7 +11,7 @@ [ext_resource path="res://Sprites/jame/James.tscn" type="PackedScene" id=9] [ext_resource path="res://Scenes/Player.tscn" type="PackedScene" id=10] [ext_resource path="res://Sprites/richal/Richal.tscn" type="PackedScene" id=11] -[ext_resource path="res://Scripts/CameraFollow.gd" type="Script" id=12] +[ext_resource path="res://Scenes/Camera.tscn" type="PackedScene" id=12] [ext_resource path="res://Scenes/InteractiveDialog.tscn" type="PackedScene" id=13] [ext_resource path="res://Scripts/CoverControl.gd" type="Script" id=14] [ext_resource path="res://Music/Lodge-Unmastered.mp3" type="AudioStream" id=15] @@ -48,10 +48,7 @@ autoplay = true [node name="UI" parent="CanvasLayer" instance=ExtResource( 8 )] -[node name="Camera2D" type="Camera2D" parent="."] -position = Vector2( 451, 306 ) -current = true -script = ExtResource( 12 ) +[node name="Camera" parent="." instance=ExtResource( 12 )] [node name="ParallaxBackground" type="ParallaxBackground" parent="."] diff --git a/project.godot b/project.godot index 559c92a..d6a66cf 100644 --- a/project.godot +++ b/project.godot @@ -51,7 +51,7 @@ _global_script_class_icons={ [application] config/name="Fullhouse" -run/main_scene="res://Story/Ch1S2.tscn" +run/main_scene="res://Story/Ch1S1.tscn" boot_splash/fullsize=false boot_splash/use_filter=false boot_splash/bg_color=Color( 0.141176, 0.141176, 0.141176, 1 ) diff --git a/todo.org b/todo.org new file mode 100644 index 0000000..5c3547e --- /dev/null +++ b/todo.org @@ -0,0 +1,17 @@ +current scene: Ch1S2 + +* Storyboard +** TODO Add chapters before current scene +- introduce characters group by group + +* Writing +** TODO Flesh out dialog in current scene + +* Drawing +** TODO Bathroom furniture + +* Programming +** TODO Inventory +** TODO Saving Mechanism +** TODO Show prompt when dialog is available + diff --git a/todo.org~ b/todo.org~ new file mode 100644 index 0000000..b563d7c --- /dev/null +++ b/todo.org~ @@ -0,0 +1,3 @@ +* Storyboard +** TODO Add chapters between (current) Ch1S1 and Ch2S2 +- introduce characters group by group