added next level

This commit is contained in:
Daniel Kauss Serna 2026-03-13 17:41:36 +01:00
parent 2bf9db610e
commit 93968ff9fb
11 changed files with 78 additions and 33 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 586 KiB

BIN
assets/enviroment/tree.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

View file

@ -3,15 +3,15 @@
importer="texture"
type="CompressedTexture2D"
uid="uid://t6m2cdr2xmo8"
path="res://.godot/imported/intro.png-efa2e70b46741a14f15d88d511983087.ctex"
path="res://.godot/imported/tree.png-0bd11e31278cecc1023cf1e9028d2a23.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/enviroment/intro.png"
dest_files=["res://.godot/imported/intro.png-efa2e70b46741a14f15d88d511983087.ctex"]
source_file="res://assets/enviroment/tree.png"
dest_files=["res://.godot/imported/tree.png-0bd11e31278cecc1023cf1e9028d2a23.ctex"]
[params]

Binary file not shown.

After

Width:  |  Height:  |  Size: 295 KiB

View file

@ -0,0 +1,40 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://de8ehypelmgbq"
path="res://.godot/imported/turquoise_room.png-c5069b9c77ead1e405c18230bcfa1a9a.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/enviroment/turquoise_room.png"
dest_files=["res://.godot/imported/turquoise_room.png-c5069b9c77ead1e405c18230bcfa1a9a.ctex"]
[params]
compress/mode=0
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=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=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=1

Binary file not shown.

Before

Width:  |  Height:  |  Size: 266 KiB

After

Width:  |  Height:  |  Size: 586 KiB

Before After
Before After

View file

@ -2,7 +2,7 @@
importer="texture"
type="CompressedTexture2D"
uid="uid://dmva40im8d3wa"
uid="uid://d0ceo8sfj2fhr"
path="res://.godot/imported/world1.png-45ebdd817229a620d7b437ef610bed91.ctex"
metadata={
"vram_texture": false

View file

@ -1,9 +1,7 @@
[gd_scene format=3 uid="uid://u72uxgovmbhd"]
[ext_resource type="Shader" uid="uid://bnnclls153x2j" path="res://shaders/selective_glow.gdshader" id="1_ckw30"]
[ext_resource type="Texture2D" uid="uid://db3a6q3o787qh" path="res://assets/enviroment/portal.png" id="2_4pvrx"]
[ext_resource type="Script" uid="uid://cioob0euvug4e" path="res://scripts/portal.gd" id="3_i0ytf"]
[ext_resource type="Script" uid="uid://pyblew2m6xc3" path="res://scripts/magic_circle.gd" id="4_frqps"]
[ext_resource type="Script" uid="uid://c0wn3w7q2j470" path="res://scripts/proximity.gd" id="5_5yude"]
[ext_resource type="Theme" uid="uid://d3iyu7ukwsn1p" path="res://ui/default_theme.tres" id="6_e5sgc"]
@ -12,24 +10,10 @@ shader = ExtResource("1_ckw30")
shader_parameter/replace = Color(0.49803922, 0.5529412, 0.9490196, 1)
shader_parameter/intensity = 0.0
[node name="Portal" type="Sprite2D" unique_id=1512558284]
[node name="Portal" type="Node2D" unique_id=497681743]
material = SubResource("ShaderMaterial_xfvwf")
texture = ExtResource("2_4pvrx")
script = ExtResource("3_i0ytf")
[node name="MagicCircle" type="Node2D" parent="." unique_id=235520935]
position = Vector2(3, 7)
scale = Vector2(1, 0.5)
script = ExtResource("4_frqps")
base_rad = 3.135
layer_rad_inc = 1.925
layers = 9
main_color = Color(0.7254902, 0.8352941, 1, 1)
fixed_seed = 1231
squish = 0.5
line_width = 1.0
metadata/_custom_type_script = "uid://pyblew2m6xc3"
[node name="Text" type="Node2D" parent="." unique_id=821025739]
script = ExtResource("5_5yude")
show_range = 100

File diff suppressed because one or more lines are too long

13
scenes/world_2.tscn Normal file
View file

@ -0,0 +1,13 @@
[gd_scene format=3 uid="uid://bkjiwmc3yua2s"]
[ext_resource type="PackedScene" uid="uid://ncgwx0yjn2gt" path="res://scenes/player.tscn" id="1_kiokp"]
[ext_resource type="Texture2D" uid="uid://de8ehypelmgbq" path="res://assets/enviroment/turquoise_room.png" id="2_2diqr"]
[node name="World2" type="Node2D" unique_id=219609187]
[node name="TurquoiseRoom" type="Sprite2D" parent="." unique_id=1018129227]
position = Vector2(622, -86)
texture = ExtResource("2_2diqr")
[node name="Player" parent="." unique_id=1743724931 instance=ExtResource("1_kiokp")]
position = Vector2(156, 163)

View file

@ -1,4 +1,4 @@
extends Sprite2D
extends Node2D
@export var nextScene : PackedScene
@ -8,13 +8,9 @@ func _process(_delta: float) -> void:
var player = get_tree().get_first_node_in_group("player")
if enemies == 0 and player:
material.set_shader_parameter("intensity", 1.7)
$MagicCircle.visible = true
$Text.visible = true
var player_dist = player.global_position.distance_to(global_position)
if Input.is_action_just_pressed("interact") && player_dist < 70:
SceneTransition.change_scene(nextScene)
else:
material.set_shader_parameter("intensity", 0)
$MagicCircle.visible = false
$Text.visible = false