Upgraded to Godot 4.5
Upgraded to Godot 4.5, added a skybox, small tweaks and changes, and breakable blocks!pull/29/head
parent
8a00aa235f
commit
35069ae0fc
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
Before Width: | Height: | Size: 9.2 KiB After Width: | Height: | Size: 9.9 KiB |
Binary file not shown.
@ -0,0 +1,42 @@
|
||||
[remap]
|
||||
|
||||
importer="scene"
|
||||
importer_version=1
|
||||
type="PackedScene"
|
||||
uid="uid://bda8mco5tke2b"
|
||||
path="res://.godot/imported/block-coin.glb-26799c6efd41074eeb3f7c8566032c8e.scn"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://models/block-coin.glb"
|
||||
dest_files=["res://.godot/imported/block-coin.glb-26799c6efd41074eeb3f7c8566032c8e.scn"]
|
||||
|
||||
[params]
|
||||
|
||||
nodes/root_type=""
|
||||
nodes/root_name=""
|
||||
nodes/root_script=null
|
||||
nodes/apply_root_scale=true
|
||||
nodes/root_scale=1.0
|
||||
nodes/import_as_skeleton_bones=false
|
||||
nodes/use_name_suffixes=true
|
||||
nodes/use_node_type_suffixes=true
|
||||
meshes/ensure_tangents=true
|
||||
meshes/generate_lods=true
|
||||
meshes/create_shadow_meshes=true
|
||||
meshes/light_baking=1
|
||||
meshes/lightmap_texel_size=0.2
|
||||
meshes/force_disable_compression=false
|
||||
skins/use_named_skins=true
|
||||
animation/import=true
|
||||
animation/fps=30
|
||||
animation/trimming=false
|
||||
animation/remove_immutable_tracks=true
|
||||
animation/import_rest_as_RESET=false
|
||||
import_script/path=""
|
||||
materials/extract=0
|
||||
materials/extract_format=0
|
||||
materials/extract_path=""
|
||||
_subresources={}
|
||||
gltf/naming_version=2
|
||||
gltf/embedded_image_handling=1
|
||||
Binary file not shown.
@ -0,0 +1,54 @@
|
||||
[remap]
|
||||
|
||||
importer="scene"
|
||||
importer_version=1
|
||||
type="PackedScene"
|
||||
uid="uid://bl20a5n3hd1ld"
|
||||
path="res://.godot/imported/brick-particle.glb-1ce284ed15b9117800af66cc9e326935.scn"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://models/brick-particle.glb"
|
||||
dest_files=["res://.godot/imported/brick-particle.glb-1ce284ed15b9117800af66cc9e326935.scn"]
|
||||
|
||||
[params]
|
||||
|
||||
nodes/root_type=""
|
||||
nodes/root_name=""
|
||||
nodes/root_script=null
|
||||
nodes/apply_root_scale=true
|
||||
nodes/root_scale=1.0
|
||||
nodes/import_as_skeleton_bones=false
|
||||
nodes/use_name_suffixes=true
|
||||
nodes/use_node_type_suffixes=true
|
||||
meshes/ensure_tangents=true
|
||||
meshes/generate_lods=true
|
||||
meshes/create_shadow_meshes=true
|
||||
meshes/light_baking=1
|
||||
meshes/lightmap_texel_size=0.2
|
||||
meshes/force_disable_compression=false
|
||||
skins/use_named_skins=true
|
||||
animation/import=true
|
||||
animation/fps=30
|
||||
animation/trimming=false
|
||||
animation/remove_immutable_tracks=true
|
||||
animation/import_rest_as_RESET=false
|
||||
import_script/path=""
|
||||
materials/extract=0
|
||||
materials/extract_format=0
|
||||
materials/extract_path=""
|
||||
_subresources={
|
||||
"meshes": {
|
||||
"brick-particle_brick-particle": {
|
||||
"generate/lightmap_uv": 0,
|
||||
"generate/lods": 0,
|
||||
"generate/shadow_meshes": 0,
|
||||
"lods/normal_merge_angle": 20.0,
|
||||
"save_to_file/enabled": true,
|
||||
"save_to_file/fallback_path": "res://meshes/brick.res",
|
||||
"save_to_file/path": "uid://bkyb0o2ipxxya"
|
||||
}
|
||||
}
|
||||
}
|
||||
gltf/naming_version=2
|
||||
gltf/embedded_image_handling=1
|
||||
Binary file not shown.
@ -0,0 +1,42 @@
|
||||
[remap]
|
||||
|
||||
importer="scene"
|
||||
importer_version=1
|
||||
type="PackedScene"
|
||||
uid="uid://cs417o1y08xb1"
|
||||
path="res://.godot/imported/brick.glb-e638d8c24b1ef123aeb8188535621295.scn"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://models/brick.glb"
|
||||
dest_files=["res://.godot/imported/brick.glb-e638d8c24b1ef123aeb8188535621295.scn"]
|
||||
|
||||
[params]
|
||||
|
||||
nodes/root_type=""
|
||||
nodes/root_name=""
|
||||
nodes/root_script=null
|
||||
nodes/apply_root_scale=true
|
||||
nodes/root_scale=0.75
|
||||
nodes/import_as_skeleton_bones=false
|
||||
nodes/use_name_suffixes=true
|
||||
nodes/use_node_type_suffixes=true
|
||||
meshes/ensure_tangents=true
|
||||
meshes/generate_lods=true
|
||||
meshes/create_shadow_meshes=true
|
||||
meshes/light_baking=1
|
||||
meshes/lightmap_texel_size=0.2
|
||||
meshes/force_disable_compression=false
|
||||
skins/use_named_skins=true
|
||||
animation/import=true
|
||||
animation/fps=30
|
||||
animation/trimming=false
|
||||
animation/remove_immutable_tracks=true
|
||||
animation/import_rest_as_RESET=false
|
||||
import_script/path=""
|
||||
materials/extract=1
|
||||
materials/extract_format=0
|
||||
materials/extract_path=""
|
||||
_subresources={}
|
||||
gltf/naming_version=2
|
||||
gltf/embedded_image_handling=1
|
||||
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Binary file not shown.
@ -0,0 +1,8 @@
|
||||
[gd_resource type="StandardMaterial3D" load_steps=2 format=3 uid="uid://booc27br2ap2l"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://0odt7cvj574e" path="res://models/Textures/colormap.png" id="1_0ut8r"]
|
||||
|
||||
[resource]
|
||||
resource_name = "colormap"
|
||||
cull_mode = 2
|
||||
albedo_texture = ExtResource("1_0ut8r")
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,32 @@
|
||||
extends StaticBody3D
|
||||
|
||||
@onready var bottom_detector = $BottomDetector
|
||||
@onready var mesh = $Mesh
|
||||
@onready var particles = $Particles
|
||||
|
||||
var exploded = false
|
||||
|
||||
func _ready():
|
||||
bottom_detector.body_entered.connect(_on_bottom_hit)
|
||||
|
||||
func _on_bottom_hit(body: Node3D) -> void:
|
||||
if body.is_in_group("player"):
|
||||
explode()
|
||||
|
||||
func explode():
|
||||
|
||||
if exploded:
|
||||
return
|
||||
|
||||
exploded = true
|
||||
|
||||
Audio.play("res://sounds/break.ogg") # Play sound
|
||||
|
||||
particles.restart()
|
||||
|
||||
mesh.hide()
|
||||
$CollisionShape3D.disabled = true
|
||||
bottom_detector.monitoring = false
|
||||
|
||||
await get_tree().create_timer(1).timeout
|
||||
queue_free()
|
||||
@ -0,0 +1 @@
|
||||
uid://b1egvfagp7vs1
|
||||
@ -0,0 +1,70 @@
|
||||
[gd_scene load_steps=12 format=3 uid="uid://85ldumyetgou"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://cs417o1y08xb1" path="res://models/brick.glb" id="1_lex57"]
|
||||
[ext_resource type="Script" uid="uid://b1egvfagp7vs1" path="res://objects/brick.gd" id="2_hbwgr"]
|
||||
[ext_resource type="Material" uid="uid://booc27br2ap2l" path="res://models/colormap.tres" id="3_2u2la"]
|
||||
[ext_resource type="ArrayMesh" uid="uid://ddrdfs0j71wla" path="res://meshes/brick.res" id="4_pm7ss"]
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_a8y0u"]
|
||||
size = Vector3(0.75, 0.75, 0.75)
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_jkv2x"]
|
||||
size = Vector3(0.5, 0.25, 0.5)
|
||||
|
||||
[sub_resource type="Gradient" id="Gradient_pm7ss"]
|
||||
colors = PackedColorArray(0.996094, 0.910156, 0.351563, 1, 1, 1, 1, 1)
|
||||
|
||||
[sub_resource type="GradientTexture1D" id="GradientTexture1D_1o7s2"]
|
||||
gradient = SubResource("Gradient_pm7ss")
|
||||
|
||||
[sub_resource type="Curve" id="Curve_y3bws"]
|
||||
_data = [Vector2(0.0075757504, 0.8651686), 0.0, 0.018773995, 0, 0, Vector2(0.9924243, 0), -3.356592, 0.0, 0, 0]
|
||||
point_count = 2
|
||||
|
||||
[sub_resource type="CurveTexture" id="CurveTexture_iwokp"]
|
||||
curve = SubResource("Curve_y3bws")
|
||||
|
||||
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_mi6g1"]
|
||||
particle_flag_align_y = true
|
||||
particle_flag_disable_z = true
|
||||
emission_shape = 1
|
||||
emission_sphere_radius = 0.6
|
||||
direction = Vector3(0, 10, 0)
|
||||
spread = 40.0
|
||||
initial_velocity_min = 4.0
|
||||
initial_velocity_max = 6.0
|
||||
linear_accel_min = -2.0000021
|
||||
linear_accel_max = -1.0000023
|
||||
scale_min = 0.29999998
|
||||
scale_curve = SubResource("CurveTexture_iwokp")
|
||||
color_ramp = SubResource("GradientTexture1D_1o7s2")
|
||||
|
||||
[node name="brick" type="StaticBody3D"]
|
||||
script = ExtResource("2_hbwgr")
|
||||
|
||||
[node name="Mesh" parent="." instance=ExtResource("1_lex57")]
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.375, 0)
|
||||
shape = SubResource("BoxShape3D_a8y0u")
|
||||
|
||||
[node name="BottomDetector" type="Area3D" parent="."]
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="BottomDetector"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.1, 0)
|
||||
shape = SubResource("BoxShape3D_jkv2x")
|
||||
|
||||
[node name="Particles" type="GPUParticles3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.25192702, 0)
|
||||
material_override = ExtResource("3_2u2la")
|
||||
emitting = false
|
||||
amount = 5
|
||||
one_shot = true
|
||||
preprocess = 0.1
|
||||
speed_scale = 1.25
|
||||
explosiveness = 1.0
|
||||
randomness = 1.0
|
||||
fixed_fps = 60
|
||||
local_coords = true
|
||||
process_material = SubResource("ParticleProcessMaterial_mi6g1")
|
||||
draw_pass_1 = ExtResource("4_pm7ss")
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 65 KiB After Width: | Height: | Size: 322 KiB |
Binary file not shown.
@ -0,0 +1,19 @@
|
||||
[remap]
|
||||
|
||||
importer="oggvorbisstr"
|
||||
type="AudioStreamOggVorbis"
|
||||
uid="uid://bxhb7ygtvbt1k"
|
||||
path="res://.godot/imported/break.ogg-0db4eca34fbeda37557f9cf33f003501.oggvorbisstr"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://sounds/break.ogg"
|
||||
dest_files=["res://.godot/imported/break.ogg-0db4eca34fbeda37557f9cf33f003501.oggvorbisstr"]
|
||||
|
||||
[params]
|
||||
|
||||
loop=false
|
||||
loop_offset=0
|
||||
bpm=0
|
||||
beat_count=0
|
||||
bar_beats=4
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 3.7 MiB |
@ -0,0 +1,41 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://cb7sdk1i5rx04"
|
||||
path.bptc="res://.godot/imported/skybox.png-3a75a15c5dbffccdaa926738885bd0eb.bptc.ctex"
|
||||
metadata={
|
||||
"imported_formats": ["s3tc_bptc"],
|
||||
"vram_texture": true
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://sprites/skybox.png"
|
||||
dest_files=["res://.godot/imported/skybox.png-3a75a15c5dbffccdaa926738885bd0eb.bptc.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=2
|
||||
compress/high_quality=true
|
||||
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=false
|
||||
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=false
|
||||
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
|
||||
Loading…
Reference in New Issue