bye bye prototype world

This commit is contained in:
Michael Campbell 2026-03-04 01:44:07 -05:00
parent 2cc3eaa859
commit 5b659d7b9c
9 changed files with 12 additions and 381 deletions

View file

@ -1,6 +1,6 @@
[gd_scene format=3 uid="uid://yseykcc08n25"]
[ext_resource type="Script" uid="uid://bnr37lfj76u7n" path="res://world/building/building.gd" id="1_xdgb6"]
[ext_resource type="Script" uid="uid://bnr37lfj76u7n" path="res://buildings/building.gd" id="1_xdgb6"]
[sub_resource type="FastNoiseLite" id="FastNoiseLite_d2kbb"]

View file

@ -1,6 +1,6 @@
[gd_scene format=3 uid="uid://cm86dxphvhbb"]
[ext_resource type="PackedScene" uid="uid://yseykcc08n25" path="res://world/building/base_building.tscn" id="1_d2kbb"]
[ext_resource type="PackedScene" uid="uid://yseykcc08n25" path="res://buildings/base_building.tscn" id="1_d2kbb"]
[sub_resource type="BoxShape3D" id="BoxShape3D_5j34s"]
size = Vector3(3, 5, 3)

View file

@ -1,6 +1,6 @@
[gd_scene format=3 uid="uid://dnl2jhf7rj33h"]
[ext_resource type="PackedScene" uid="uid://yseykcc08n25" path="res://world/building/base_building.tscn" id="1_hn3k1"]
[ext_resource type="PackedScene" uid="uid://yseykcc08n25" path="res://buildings/base_building.tscn" id="1_hn3k1"]
[sub_resource type="Gradient" id="Gradient_hn3k1"]
offsets = PackedFloat32Array(0.06315789, 0.6421053, 1)

File diff suppressed because one or more lines are too long

View file

@ -1,28 +0,0 @@
extends Path3D
var clock := 0.
var count := 5.0
func _get_spawn_pos() -> Vector3:
return curve.samplef(randf_range(0, curve.point_count))
func _spawn_police_car(p: Vector3) -> void:
var car: Node3D = preload("res://enemies/police_car/police_car.tscn").instantiate()
car.position = p + Vector3.UP * 0.1
add_sibling(car)
func _process(delta: float) -> void:
clock -= delta
if clock <= 0:
clock = 5.
var ps: Array[Vector3]
while ps.size() < count:
var p := _get_spawn_pos()
if ps.any(func(_p): return _p.distance_to(p) < 3.):
break
ps.push_back(p)
for p in ps:
_spawn_police_car(p)
count += .6

View file

@ -1 +0,0 @@
uid://hqa4e1vo1gq

File diff suppressed because one or more lines are too long