mirror of
https://git.kittycat.homes/zoe/codename-routes.git
synced 2024-08-15 03:18:26 +00:00
default values for tiles
This commit is contained in:
parent
418dec7bd4
commit
f09f82a305
5 changed files with 14 additions and 7 deletions
|
@ -11,7 +11,7 @@ config_version=4
|
|||
[application]
|
||||
|
||||
config/name="routes"
|
||||
run/main_scene="res://world/world.tscn"
|
||||
run/main_scene="res://world/Main.tscn"
|
||||
config/icon="res://icon.png"
|
||||
|
||||
[importer_defaults]
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
[gd_scene load_steps=3 format=2]
|
||||
|
||||
[ext_resource path="res://world/World.tscn" type="PackedScene" id=1]
|
||||
[ext_resource path="res://world/worldcam.gd" type="Script" id=3]
|
||||
[ext_resource path="res://world/worldcam.gd" type="Script" id=1]
|
||||
[ext_resource path="res://world/World.tscn" type="PackedScene" id=2]
|
||||
|
||||
[node name="Main" type="Node2D"]
|
||||
|
||||
[node name="Worldcam" type="Camera2D" parent="."]
|
||||
current = true
|
||||
zoom = Vector2( 0.4, 0.4 )
|
||||
script = ExtResource( 3 )
|
||||
script = ExtResource( 1 )
|
||||
|
||||
[node name="World" parent="." instance=ExtResource( 1 )]
|
||||
[node name="World" parent="." instance=ExtResource( 2 )]
|
|
@ -8,5 +8,8 @@ position = Vector2( -2, 0 )
|
|||
mode = 1
|
||||
tile_set = ExtResource( 1 )
|
||||
cell_size = Vector2( 32, 16 )
|
||||
cell_tile_origin = 1
|
||||
collision_layer = 0
|
||||
collision_mask = 0
|
||||
format = 1
|
||||
script = ExtResource( 2 )
|
||||
|
|
|
@ -1,2 +0,0 @@
|
|||
extends Node
|
||||
|
|
@ -17,6 +17,12 @@ pub struct Tile {
|
|||
kind: Tiletypes,
|
||||
#[builder(default = "true")]
|
||||
is_support: bool,
|
||||
#[builder(default = "true")]
|
||||
needs_support: bool,
|
||||
#[builder(default = "vec![]")]
|
||||
can_be_above: Vec<Tiletypes>,
|
||||
#[builder(default = "vec![]")]
|
||||
can_be_next_to: Vec<Tiletypes>,
|
||||
}
|
||||
|
||||
impl Tile {
|
||||
|
|
Loading…
Reference in a new issue