changed folder structure
This commit is contained in:
parent
02fc67cb37
commit
20530bfd32
25 changed files with 17 additions and 8 deletions
|
Before Width: | Height: | Size: 47 KiB After Width: | Height: | Size: 47 KiB |
|
|
@ -3,21 +3,23 @@
|
||||||
importer="texture"
|
importer="texture"
|
||||||
type="CompressedTexture2D"
|
type="CompressedTexture2D"
|
||||||
uid="uid://cyvxm1hf1rc12"
|
uid="uid://cyvxm1hf1rc12"
|
||||||
path="res://.godot/imported/player_walk.png-dd7b13f797aca66ef3a8a41ed9897826.ctex"
|
path="res://.godot/imported/player_walk.png-59515d82f701e5545419ecd7b3460e66.ctex"
|
||||||
metadata={
|
metadata={
|
||||||
"vram_texture": false
|
"vram_texture": false
|
||||||
}
|
}
|
||||||
|
|
||||||
[deps]
|
[deps]
|
||||||
|
|
||||||
source_file="res://player_walk.png"
|
source_file="res://player/player_walk.png"
|
||||||
dest_files=["res://.godot/imported/player_walk.png-dd7b13f797aca66ef3a8a41ed9897826.ctex"]
|
dest_files=["res://.godot/imported/player_walk.png-59515d82f701e5545419ecd7b3460e66.ctex"]
|
||||||
|
|
||||||
[params]
|
[params]
|
||||||
|
|
||||||
compress/mode=0
|
compress/mode=0
|
||||||
compress/high_quality=false
|
compress/high_quality=false
|
||||||
compress/lossy_quality=0.7
|
compress/lossy_quality=0.7
|
||||||
|
compress/uastc_level=0
|
||||||
|
compress/rdo_quality_loss=0.0
|
||||||
compress/hdr_compression=1
|
compress/hdr_compression=1
|
||||||
compress/normal_map=0
|
compress/normal_map=0
|
||||||
compress/channel_pack=0
|
compress/channel_pack=0
|
||||||
|
|
@ -25,6 +27,10 @@ mipmaps/generate=false
|
||||||
mipmaps/limit=-1
|
mipmaps/limit=-1
|
||||||
roughness/mode=0
|
roughness/mode=0
|
||||||
roughness/src_normal=""
|
roughness/src_normal=""
|
||||||
|
process/channel_remap/red=0
|
||||||
|
process/channel_remap/green=1
|
||||||
|
process/channel_remap/blue=2
|
||||||
|
process/channel_remap/alpha=3
|
||||||
process/fix_alpha_border=true
|
process/fix_alpha_border=true
|
||||||
process/premult_alpha=false
|
process/premult_alpha=false
|
||||||
process/normal_map_invert_y=false
|
process/normal_map_invert_y=false
|
||||||
|
|
@ -1,7 +1,8 @@
|
||||||
[gd_scene load_steps=4 format=3 uid="uid://jjoyj1ldafkf"]
|
[gd_scene load_steps=5 format=3 uid="uid://jjoyj1ldafkf"]
|
||||||
|
|
||||||
[ext_resource type="Script" uid="uid://b5fhsy1xlreco" path="res://draw_circle.gd" id="2_2bhor"]
|
[ext_resource type="Script" uid="uid://b5fhsy1xlreco" path="res://world/draw_circle.gd" id="2_2bhor"]
|
||||||
[ext_resource type="Script" path="res://grid.gd" id="3_2bhor"]
|
[ext_resource type="Script" uid="uid://m3vyyfk8gnma" path="res://world/grid.gd" id="3_2bhor"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://djawvtdwp423v" path="res://buildings/building.tscn" id="3_nihcy"]
|
||||||
|
|
||||||
[sub_resource type="CircleShape2D" id="CircleShape2D_5i67w"]
|
[sub_resource type="CircleShape2D" id="CircleShape2D_5i67w"]
|
||||||
radius = 3000.0
|
radius = 3000.0
|
||||||
|
|
@ -23,4 +24,5 @@ ground_radius = 3000.0
|
||||||
cell_height = 300.0
|
cell_height = 300.0
|
||||||
num_collumns = 60
|
num_collumns = 60
|
||||||
debug = true
|
debug = true
|
||||||
|
packed_buildings = Array[PackedScene]([ExtResource("3_nihcy")])
|
||||||
metadata/_custom_type_script = "uid://m3vyyfk8gnma"
|
metadata/_custom_type_script = "uid://m3vyyfk8gnma"
|
||||||
|
|
@ -5,6 +5,8 @@ class_name Grid extends Node2D
|
||||||
@export var num_collumns : int
|
@export var num_collumns : int
|
||||||
@export var debug : bool
|
@export var debug : bool
|
||||||
|
|
||||||
|
@export var packed_buildings : Array[PackedScene]
|
||||||
|
|
||||||
var buildings : Array[Building] = []
|
var buildings : Array[Building] = []
|
||||||
|
|
||||||
func _draw() -> void:
|
func _draw() -> void:
|
||||||
|
|
@ -33,11 +35,10 @@ func add_building_to_collumn(building : Building, collumn : int):
|
||||||
|
|
||||||
# for testing
|
# for testing
|
||||||
func _ready() -> void:
|
func _ready() -> void:
|
||||||
var packed : PackedScene = preload("res://building.tscn")
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
for i in range(100):
|
for i in range(100):
|
||||||
var test_building = packed.instantiate()
|
var test_building = packed_buildings[0].instantiate()
|
||||||
var collumn = randi() % 60
|
var collumn = randi() % 60
|
||||||
add_building_to_collumn(test_building, collumn)
|
add_building_to_collumn(test_building, collumn)
|
||||||
Loading…
Add table
Reference in a new issue