default values for tiles
This commit is contained in:
parent
418dec7bd4
commit
f09f82a305
|
@ -11,7 +11,7 @@ config_version=4
|
||||||
[application]
|
[application]
|
||||||
|
|
||||||
config/name="routes"
|
config/name="routes"
|
||||||
run/main_scene="res://world/world.tscn"
|
run/main_scene="res://world/Main.tscn"
|
||||||
config/icon="res://icon.png"
|
config/icon="res://icon.png"
|
||||||
|
|
||||||
[importer_defaults]
|
[importer_defaults]
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
[gd_scene load_steps=3 format=2]
|
[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=1]
|
||||||
[ext_resource path="res://world/worldcam.gd" type="Script" id=3]
|
[ext_resource path="res://world/World.tscn" type="PackedScene" id=2]
|
||||||
|
|
||||||
[node name="Main" type="Node2D"]
|
[node name="Main" type="Node2D"]
|
||||||
|
|
||||||
[node name="Worldcam" type="Camera2D" parent="."]
|
[node name="Worldcam" type="Camera2D" parent="."]
|
||||||
current = true
|
current = true
|
||||||
zoom = Vector2( 0.4, 0.4 )
|
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
|
mode = 1
|
||||||
tile_set = ExtResource( 1 )
|
tile_set = ExtResource( 1 )
|
||||||
cell_size = Vector2( 32, 16 )
|
cell_size = Vector2( 32, 16 )
|
||||||
|
cell_tile_origin = 1
|
||||||
|
collision_layer = 0
|
||||||
|
collision_mask = 0
|
||||||
format = 1
|
format = 1
|
||||||
script = ExtResource( 2 )
|
script = ExtResource( 2 )
|
||||||
|
|
|
@ -1,2 +0,0 @@
|
||||||
extends Node
|
|
||||||
|
|
|
@ -17,6 +17,12 @@ pub struct Tile {
|
||||||
kind: Tiletypes,
|
kind: Tiletypes,
|
||||||
#[builder(default = "true")]
|
#[builder(default = "true")]
|
||||||
is_support: bool,
|
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 {
|
impl Tile {
|
||||||
|
|
Loading…
Reference in New Issue