level pt1
This commit is contained in:
parent
e14289807b
commit
ebdb9c7074
13 changed files with 5138 additions and 1 deletions
21
levels/base_level.tscn
Normal file
21
levels/base_level.tscn
Normal file
File diff suppressed because one or more lines are too long
20
levels/floor_gen.gd
Normal file
20
levels/floor_gen.gd
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
@tool
|
||||
extends Path3D
|
||||
|
||||
@export_tool_button("Generate Terrain")
|
||||
var gen_button := _generate
|
||||
|
||||
func _ready() -> void:
|
||||
curve_changed.connect(_generate)
|
||||
|
||||
func _generate() -> void:
|
||||
var points = PackedVector2Array()
|
||||
|
||||
# we assume there's no curves.
|
||||
# if there are curves, we gotta start using the baked points.
|
||||
if curve:
|
||||
for idx in curve.point_count:
|
||||
var p := curve.sample(idx, 0)
|
||||
points.push_back(Vector2(p.x, p.z))
|
||||
|
||||
%Floor.polygon = points
|
||||
1
levels/floor_gen.gd.uid
Normal file
1
levels/floor_gen.gd.uid
Normal file
|
|
@ -0,0 +1 @@
|
|||
uid://bmel2u0n7yo6m
|
||||
4983
levels/level_0.tscn
Normal file
4983
levels/level_0.tscn
Normal file
File diff suppressed because it is too large
Load diff
BIN
levels/rrt-map.png
Normal file
BIN
levels/rrt-map.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 76 KiB |
41
levels/rrt-map.png.import
Normal file
41
levels/rrt-map.png.import
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://bhleneuu7ne5j"
|
||||
path.s3tc="res://.godot/imported/rrt-map.png-5523381b4591ad42d06d6785b860986f.s3tc.ctex"
|
||||
metadata={
|
||||
"imported_formats": ["s3tc_bptc"],
|
||||
"vram_texture": true
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://levels/rrt-map.png"
|
||||
dest_files=["res://.godot/imported/rrt-map.png-5523381b4591ad42d06d6785b860986f.s3tc.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=2
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/uastc_level=0
|
||||
compress/rdo_quality_loss=0.0
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=true
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
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/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=0
|
||||
BIN
levels/rrt-map.png~
Normal file
BIN
levels/rrt-map.png~
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 76 KiB |
Loading…
Add table
Add a link
Reference in a new issue