This commit is contained in:
2023-10-18 15:26:27 -04:00
parent 5dac6ced93
commit 0fa604298f
12 changed files with 114 additions and 79 deletions

View File

@ -14,7 +14,7 @@ script/source = "extends Node2D
# Called when the node enters the scene tree for the first time.
func _ready():
$Player/Camera2D.current = true
$Player/Camera2D.make_current()
# Called every frame. 'delta' is the elapsed time since the previous frame.
#func _process(delta):

View File

@ -82,7 +82,6 @@ format = 2
[node name="Camera2D" type="Camera2D" parent="."]
scale = Vector2(10, 10)
current = true
script = ExtResource("4_3v8j0")
[node name="CanvasModulate" type="CanvasModulate" parent="."]

View File

@ -3,7 +3,7 @@
[ext_resource type="Theme" uid="uid://x4at2pluavto" path="res://general_theme.tres" id="1"]
[ext_resource type="Script" path="res://scripts/title_screen.gd" id="2_o32of"]
[ext_resource type="AudioStream" uid="uid://dyywryu8rhlhx" path="res://assets/music/dos-88/race_to_mars.ogg" id="3_otmaj"]
[ext_resource type="PackedScene" uid="uid://lvot4p62fxa8" path="res://scenes/game.tscn" id="4_3155t"]
[ext_resource type="PackedScene" uid="uid://c7cvc4y0kpl3g" path="res://scenes/v2/world.tscn" id="4_f5imb"]
[ext_resource type="Texture2D" uid="uid://d08p0mamsxnvh" path="res://assets/art/general_bkg.png" id="5_y6rms"]
[ext_resource type="Texture2D" uid="uid://b5q202ja5gj34" path="res://assets/art/Grid/agrid1.png" id="6_xwd2a"]
[ext_resource type="Texture2D" uid="uid://duebi3omvs87x" path="res://assets/art/Grid/agrid2.png" id="7_qnlu0"]
@ -43,7 +43,7 @@ grow_vertical = 2
theme = ExtResource("1")
script = ExtResource("2_o32of")
music = ExtResource("3_otmaj")
new_game_scene = ExtResource("4_3155t")
new_game_scene = ExtResource("4_f5imb")
[node name="ColorRect" type="ColorRect" parent="."]
layout_mode = 0

18
scenes/v2/world.tscn Normal file
View File

@ -0,0 +1,18 @@
[gd_scene load_steps=5 format=3 uid="uid://c7cvc4y0kpl3g"]
[ext_resource type="Script" path="res://scripts/v2/world.gd" id="1_cgytt"]
[ext_resource type="Script" path="res://scripts/v2/worldgen/standard_generator.gd" id="2_3jlht"]
[ext_resource type="TileSet" uid="uid://cluemfplimly4" path="res://assets/tiles.tres" id="3_5mj08"]
[sub_resource type="Resource" id="Resource_kbdfk"]
script = ExtResource("2_3jlht")
parts = Array[PackedScene]([])
[node name="World" type="Node2D" node_paths=PackedStringArray("map")]
script = ExtResource("1_cgytt")
generator = SubResource("Resource_kbdfk")
map = NodePath("TileMap")
[node name="TileMap" type="TileMap" parent="."]
tile_set = ExtResource("3_5mj08")
format = 2