More work on 16bit color

This commit is contained in:
David 2025-02-11 16:16:11 +01:00
parent 3d7209f362
commit 6095d9a83f
58 changed files with 711 additions and 42 deletions

View file

@ -11,7 +11,7 @@ config_version=5
[application]
config/name="Abbaye des Morts"
config/version="1.0"
config/version="1.1"
run/main_scene="res://scenes/intro.tscn"
config/features=PackedStringArray("4.3", "Forward Plus")
boot_splash/show_image=false

View file

@ -78,7 +78,7 @@ script = ExtResource("1_4u5sd")
[node name="sprites" type="AnimatedSprite2D" parent="."]
sprite_frames = SubResource("SpriteFrames_f54jf")
animation = &"typea"
animation = &"typecmd"
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2(0, 0.5)

View file

@ -1,9 +1,12 @@
[gd_scene load_steps=7 format=3 uid="uid://y8qwf76c5kna"]
[gd_scene load_steps=10 format=3 uid="uid://y8qwf76c5kna"]
[ext_resource type="Texture2D" uid="uid://d28006enthuxe" path="res://sprites/enemies/death01.png" id="1_5pbj6"]
[ext_resource type="Script" path="res://scripts/death.gd" id="1_5wwry"]
[ext_resource type="Texture2D" uid="uid://d4gvf5sn76v7o" path="res://sprites/enemies/death02.png" id="2_4t6w0"]
[ext_resource type="Texture2D" uid="uid://d1w0pegeaqcrv" path="res://sprites/enemies/death03.png" id="3_cgsn4"]
[ext_resource type="Texture2D" uid="uid://dn8bmgkhbhnd7" path="res://sprites/enemies/death01a.png" id="4_0qpsw"]
[ext_resource type="Texture2D" uid="uid://d30vwobrmt3n6" path="res://sprites/enemies/death02a.png" id="5_ayl7i"]
[ext_resource type="Texture2D" uid="uid://ddaej7mnf1cpy" path="res://sprites/enemies/death03a.png" id="7_k0nkh"]
[sub_resource type="SpriteFrames" id="SpriteFrames_umi22"]
animations = [{
@ -20,11 +23,30 @@ animations = [{
}, {
"frames": [{
"duration": 1.0,
"texture": ExtResource("4_0qpsw")
}, {
"duration": 1.0,
"texture": ExtResource("5_ayl7i")
}],
"loop": true,
"name": &"defaultmd",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": ExtResource("3_cgsn4")
}],
"loop": true,
"name": &"shoot",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": ExtResource("7_k0nkh")
}],
"loop": true,
"name": &"shootmd",
"speed": 5.0
}]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_h1gbs"]
@ -35,6 +57,7 @@ script = ExtResource("1_5wwry")
[node name="sprites" type="AnimatedSprite2D" parent="."]
sprite_frames = SubResource("SpriteFrames_umi22")
animation = &"shootmd"
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2(0.5, -2)

View file

@ -1,8 +1,10 @@
[gd_scene load_steps=6 format=3 uid="uid://dnw0yo50gywce"]
[gd_scene load_steps=8 format=3 uid="uid://dnw0yo50gywce"]
[ext_resource type="Texture2D" uid="uid://iv13xs6ity41" path="res://sprites/others/shootb.png" id="1_j7vr8"]
[ext_resource type="Script" path="res://scripts/fireshoot.gd" id="1_qhxsf"]
[ext_resource type="Texture2D" uid="uid://co6bc44f7e2bs" path="res://sprites/others/shootc.png" id="2_rlbim"]
[ext_resource type="Texture2D" uid="uid://dbob1x24ba025" path="res://sprites/others/shootba.png" id="4_5u3he"]
[ext_resource type="Texture2D" uid="uid://3aavhuwqeprv" path="res://sprites/others/shootca.png" id="5_lxue7"]
[sub_resource type="SpriteFrames" id="SpriteFrames_meukb"]
animations = [{
@ -16,6 +18,17 @@ animations = [{
"loop": true,
"name": &"default",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": ExtResource("4_5u3he")
}, {
"duration": 1.0,
"texture": ExtResource("5_lxue7")
}],
"loop": true,
"name": &"megadrive",
"speed": 5.0
}]
[sub_resource type="CircleShape2D" id="CircleShape2D_igalv"]
@ -26,6 +39,7 @@ script = ExtResource("1_qhxsf")
[node name="sprites" type="AnimatedSprite2D" parent="."]
sprite_frames = SubResource("SpriteFrames_meukb")
animation = &"megadrive"
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("CircleShape2D_igalv")

View file

@ -1,8 +1,10 @@
[gd_scene load_steps=6 format=3 uid="uid://wrpyugv38uk4"]
[gd_scene load_steps=8 format=3 uid="uid://wrpyugv38uk4"]
[ext_resource type="Texture2D" uid="uid://d105b0li1vmlr" path="res://sprites/enemies/fish01.png" id="1_i2vsv"]
[ext_resource type="Script" path="res://scripts/fish.gd" id="1_sbqmh"]
[ext_resource type="Texture2D" uid="uid://0jn4yijla2yp" path="res://sprites/enemies/fish02.png" id="2_ppdv7"]
[ext_resource type="Texture2D" uid="uid://dd2g734nr3jpe" path="res://sprites/enemies/fish01a.png" id="4_mnvtw"]
[ext_resource type="Texture2D" uid="uid://c607tr36jdc8t" path="res://sprites/enemies/fish02a.png" id="5_ngvrg"]
[sub_resource type="SpriteFrames" id="SpriteFrames_rthad"]
animations = [{
@ -16,6 +18,17 @@ animations = [{
"loop": true,
"name": &"default",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": ExtResource("4_mnvtw")
}, {
"duration": 1.0,
"texture": ExtResource("5_ngvrg")
}],
"loop": true,
"name": &"megadrive",
"speed": 5.0
}]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_7uvpa"]
@ -26,6 +39,7 @@ script = ExtResource("1_sbqmh")
[node name="sprites" type="AnimatedSprite2D" parent="."]
sprite_frames = SubResource("SpriteFrames_rthad")
animation = &"megadrive"
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("RectangleShape2D_7uvpa")

View file

@ -1,9 +1,11 @@
[gd_scene load_steps=7 format=3 uid="uid://cvy7eopier40"]
[gd_scene load_steps=9 format=3 uid="uid://cvy7eopier40"]
[ext_resource type="Script" path="res://scripts/flower.gd" id="1_c1aln"]
[ext_resource type="Texture2D" uid="uid://bgdi01f5ony0r" path="res://sprites/enemies/flower01.png" id="1_sbot0"]
[ext_resource type="Texture2D" uid="uid://qlwdrdy6yva5" path="res://sprites/enemies/flower02.png" id="2_phebj"]
[ext_resource type="Texture2D" uid="uid://uajrf66h4ckn" path="res://sprites/enemies/flower01a.png" id="3_65hdb"]
[ext_resource type="AudioStream" uid="uid://dgnv1suam0lmb" path="res://sounds/shoot.ogg" id="4_55eyt"]
[ext_resource type="Texture2D" uid="uid://bsbx6pon82o2f" path="res://sprites/enemies/flower02a.png" id="5_1s56w"]
[sub_resource type="SpriteFrames" id="SpriteFrames_q7v0s"]
animations = [{
@ -17,11 +19,27 @@ animations = [{
}, {
"frames": [{
"duration": 1.0,
"texture": ExtResource("3_65hdb")
}],
"loop": true,
"name": &"closemd",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": ExtResource("2_phebj")
}],
"loop": true,
"name": &"open",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": ExtResource("5_1s56w")
}],
"loop": true,
"name": &"openmd",
"speed": 5.0
}]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_vnucx"]
@ -32,7 +50,7 @@ script = ExtResource("1_c1aln")
[node name="sprites" type="AnimatedSprite2D" parent="."]
sprite_frames = SubResource("SpriteFrames_q7v0s")
animation = &"close"
animation = &"openmd"
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2(0, 5)

View file

@ -1,9 +1,11 @@
[gd_scene load_steps=8 format=3 uid="uid://dh3k6vsjrs5su"]
[gd_scene load_steps=10 format=3 uid="uid://dh3k6vsjrs5su"]
[ext_resource type="Texture2D" uid="uid://u54g54vfpde5" path="res://sprites/enemies/gargolie01.png" id="1_85ue7"]
[ext_resource type="Script" path="res://scripts/gargoyle.gd" id="1_isa6w"]
[ext_resource type="Texture2D" uid="uid://lkurdktkd3y4" path="res://sprites/enemies/gargolie02.png" id="2_ak8pp"]
[ext_resource type="Texture2D" uid="uid://bigg8d1duqehr" path="res://sprites/enemies/gargoyle01a.png" id="3_cdu2w"]
[ext_resource type="PackedScene" uid="uid://bue3dts55spm1" path="res://scenes/gargolshot.tscn" id="4_c3qpy"]
[ext_resource type="Texture2D" uid="uid://5pmh2ynpb361" path="res://sprites/enemies/gargoyle02a.png" id="5_72cih"]
[ext_resource type="AudioStream" uid="uid://dgnv1suam0lmb" path="res://sounds/shoot.ogg" id="5_dqs2p"]
[sub_resource type="SpriteFrames" id="SpriteFrames_15r0c"]
@ -18,11 +20,27 @@ animations = [{
}, {
"frames": [{
"duration": 1.0,
"texture": ExtResource("3_cdu2w")
}],
"loop": true,
"name": &"offmd",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": ExtResource("2_ak8pp")
}],
"loop": true,
"name": &"on",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": ExtResource("5_72cih")
}],
"loop": true,
"name": &"onmd",
"speed": 5.0
}]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_7s23u"]
@ -33,7 +51,7 @@ script = ExtResource("1_isa6w")
[node name="sprites" type="AnimatedSprite2D" parent="."]
sprite_frames = SubResource("SpriteFrames_15r0c")
animation = &"off"
animation = &"onmd"
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2(0, -0.5)

View file

@ -1,10 +1,12 @@
[gd_scene load_steps=10 format=3 uid="uid://howvxa72ouj2"]
[gd_scene load_steps=12 format=3 uid="uid://howvxa72ouj2"]
[ext_resource type="Script" path="res://scripts/satan.gd" id="1_74f28"]
[ext_resource type="Texture2D" uid="uid://b4w87cunxok0e" path="res://sprites/enemies/satan01.png" id="1_cna2a"]
[ext_resource type="Texture2D" uid="uid://bp2it6n2v72nu" path="res://sprites/others/fog01.png" id="2_cp88r"]
[ext_resource type="Texture2D" uid="uid://c81piwocej7wq" path="res://sprites/enemies/satan02.png" id="2_ixyik"]
[ext_resource type="Texture2D" uid="uid://cnysj66osossc" path="res://sprites/others/fog02.png" id="3_o708a"]
[ext_resource type="Texture2D" uid="uid://ct7t8fvta2lin" path="res://sprites/enemies/satan01a.png" id="4_3ilkl"]
[ext_resource type="Texture2D" uid="uid://c10msou6almaa" path="res://sprites/enemies/satan02a.png" id="5_tpstb"]
[ext_resource type="AudioStream" uid="uid://vsu0swyg38w8" path="res://sounds/onedeathn.ogg" id="6_y6h8e"]
[sub_resource type="SpriteFrames" id="SpriteFrames_lna51"]
@ -19,6 +21,17 @@ animations = [{
"loop": true,
"name": &"default",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": ExtResource("4_3ilkl")
}, {
"duration": 1.0,
"texture": ExtResource("5_tpstb")
}],
"loop": true,
"name": &"megadrive",
"speed": 5.0
}]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_xx6qh"]
@ -55,6 +68,7 @@ script = ExtResource("1_74f28")
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
sprite_frames = SubResource("SpriteFrames_lna51")
animation = &"megadrive"
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("RectangleShape2D_xx6qh")

View file

@ -65,7 +65,7 @@ script = ExtResource("1_rbp1c")
[node name="sprites" type="AnimatedSprite2D" parent="."]
sprite_frames = SubResource("SpriteFrames_emxho")
animation = &"typebmd"
animation = &"typeamd"
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2(0, 0.5)

View file

@ -1,4 +1,4 @@
[gd_scene load_steps=9 format=3 uid="uid://b3w2bpsw8ayax"]
[gd_scene load_steps=13 format=3 uid="uid://b3w2bpsw8ayax"]
[ext_resource type="Script" path="res://scripts/teleport.gd" id="1_30qqr"]
[ext_resource type="Texture2D" uid="uid://hiv6wudt7fpa" path="res://sprites/objects/portal01.png" id="1_asv2r"]
@ -6,6 +6,10 @@
[ext_resource type="Texture2D" uid="uid://bf7a1brham1pe" path="res://sprites/objects/portal03.png" id="3_1ccyj"]
[ext_resource type="Texture2D" uid="uid://c5kehvwnentb0" path="res://sprites/objects/portal04.png" id="4_opnwk"]
[ext_resource type="AudioStream" uid="uid://yihudfjgdtbf" path="res://sounds/doorfx.ogg" id="6_n8til"]
[ext_resource type="Texture2D" uid="uid://w0hjgrxt3mct" path="res://sprites/objects/portal01a.png" id="6_y31cp"]
[ext_resource type="Texture2D" uid="uid://vs6h02oqe5dt" path="res://sprites/objects/portal02a.png" id="7_3q3kb"]
[ext_resource type="Texture2D" uid="uid://bvmrl22udq16n" path="res://sprites/objects/portal03a.png" id="8_iimgv"]
[ext_resource type="Texture2D" uid="uid://dsin0v7ah22st" path="res://sprites/objects/portal04a.png" id="9_t6jbx"]
[sub_resource type="SpriteFrames" id="SpriteFrames_3d8r3"]
animations = [{
@ -25,6 +29,23 @@ animations = [{
"loop": true,
"name": &"default",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": ExtResource("6_y31cp")
}, {
"duration": 1.0,
"texture": ExtResource("7_3q3kb")
}, {
"duration": 1.0,
"texture": ExtResource("8_iimgv")
}, {
"duration": 1.0,
"texture": ExtResource("9_t6jbx")
}],
"loop": true,
"name": &"megadrive",
"speed": 5.0
}]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_j5x6w"]

View file

@ -3,7 +3,7 @@ extends Area2D
var limity = [0,0]
var direction = 0 # 0 go down, 1 go up
var speed = 0
var changecolor = 0
var changecolor = 1
var beetype = 0
# Called when the node enters the scene tree for the first time.
@ -12,9 +12,9 @@ func _ready() -> void:
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
if Global.flagccolor == 1:
if changecolor == 1:
_set_bee_type()
Global.flagccolor = 0
changecolor = 0
if Global.stop == 0:
if direction == 0:
if limity[1] > position.y:

View file

@ -7,7 +7,10 @@ var saxes = preload("res://scenes/axes.tscn")
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
$sprites.play()
if Global.colortype == 0:
$sprites.play("default")
else:
$sprites.play("defaultmd")
Global.axes = 0
# Called every frame. 'delta' is the elapsed time since the previous frame.
@ -18,7 +21,10 @@ func _process(delta: float) -> void:
counter = 0
if counter == 0 and Global.axes < 5:
# Shoot one axe
$sprites.play("shoot")
if Global.colortype == 0:
$sprites.play("shoot")
else:
$sprites.play("shootmd")
Global.axes += 1
var naxe = saxes.instantiate()
get_tree().root.add_child(naxe)
@ -27,7 +33,10 @@ func _process(delta: float) -> void:
retnormal = 1
if counter > 8 and retnormal == 1:
# Return to frame of "don't shoot"
$sprites.play("default")
if Global.colortype == 0:
$sprites.play("default")
else:
$sprites.play("defaultmd")
retnormal = 0
if direction == 1:
if position.x > 32:

View file

@ -7,15 +7,24 @@ var direction = 0
var jumpy = 0
var stopcounter = 0
var initypos = 171
var changecolor = 0
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
$sprites.visible = false
$sprites.play("default")
#position.y = initypos
if Global.colortype == 0:
$sprites.play("default")
else:
$sprites.play("megadrive")
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
if changecolor == 1:
if Global.colortype == 0:
$sprites.play("default")
else:
$sprites.play("megadrive")
changecolor = 0
if stopcounter == 0:
if counter < waittime and jumpy == 0:
counter += 1;

View file

@ -7,15 +7,26 @@ var direction = 0
var jumpy = 0
var stopcounter = 0
var initypos = 0
var changecolor = 0
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
$sprites.visible = false
$sprites.play("default")
if Global.colortype == 0:
$sprites.play("default")
else:
$sprites.play("megadrive")
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
if changecolor == 1:
if Global.colortype == 0:
$sprites.play("default")
else:
$sprites.play("megadrive")
changecolor = 0
if (counter < waittime) and stopcounter == 0:
counter +=1;
else:

View file

@ -4,23 +4,46 @@ var speed = 0
var shots = preload("res://scenes/flowershot.tscn")
var counter = 0
var exitscn = 0
var changecolor = 0
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
pass
if Global.colortype == 0:
$sprites.play("close")
else:
$sprites.play("closemd")
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
# Change color request
if changecolor == 1:
if counter < 80:
if Global.colortype == 0:
$sprites.play("close")
else:
$sprites.play("closemd")
else:
if Global.colortype == 0:
$sprites.play("open")
else:
$sprites.play("openmd")
changecolor = 0
if Global.stop == 0:
if counter < 95:
counter += 30 * delta
else:
# Close flower
counter = 0
$sprites.play("close")
if Global.colortype == 0:
$sprites.play("close")
else:
$sprites.play("closemd")
if floor(counter) == 80:
# Open flower and create two shots
$sprites.play("open")
if Global.colortype == 0:
$sprites.play("open")
else:
$sprites.play("openmd")
var shot1 = shots.instantiate()
get_tree().root.add_child(shot1)
shot1.add_to_group("disparos")

View file

@ -5,13 +5,29 @@ var shotison = 0
var shotposxend = 0
var shotdir = 0
var stopcount = 0
var changecolor = 0
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
$sprites.play("off")
if Global.colortype == 0:
$sprites.play("off")
else:
$sprites.play("offmd")
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
if changecolor == 1:
if counter > 129 and counter < 145:
if Global.colortype == 0:
$sprites.play("on") # Open mouth
else:
$sprites.play("onmd")
else:
if Global.colortype == 0:
$sprites.play("off") # Close mouth
else:
$sprites.play("offmd")
changecolor = 0
if stopcount == 0:
if counter < 145:
counter += 1;
@ -19,13 +35,19 @@ func _process(delta: float) -> void:
counter = 0
if counter == 130:
$sprites.play("on") # Open mouth
if Global.colortype == 0:
$sprites.play("on") # Open mouth
else:
$sprites.play("onmd")
if counter == 135:
shotison = 1 # Enable shoot
if counter == 145:
$sprites.play("off") # Close mouth
if Global.colortype == 0:
$sprites.play("off") # Close mouth
else:
$sprites.play("offmd")
stopcount = 1
if shotison == 1 and counter == 135:

View file

@ -26,6 +26,7 @@ func _process(delta: float) -> void:
$AnimatedSprite2D.play("yellow")
else:
$AnimatedSprite2D.play("yellowmd")
changecolor = 0
if disablecoll == 1:
$CollisionShape2D.disabled = true

View file

@ -13,7 +13,7 @@ func _process(delta: float) -> void:
$spidera2.colorchange = 1
$spidera3.colorchange = 1
$spidera4.colorchange = 1
$parchment.colorchange = 1
$parchment.changecolor = 1
$hud.change = 1
Global.flagccolor = 0
# Show parchment

View file

@ -3,6 +3,10 @@ extends Node2D
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
Global.roomnumber = 6
if Global.colortype == 0:
$moon.texture = load("res://sprites/others/moon.png")
else:
$moon.texture = load("res://sprites/others/moona.png")
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
@ -14,6 +18,10 @@ func _process(delta: float) -> void:
$spikes2.change = 1
$spikes3.change = 1
$hud.change = 1
if Global.colortype == 0:
$moon.texture = load("res://sprites/others/moon.png")
else:
$moon.texture = load("res://sprites/others/moona.png")
Global.flagccolor = 0
if $jean.position.x > 260:

View file

@ -38,7 +38,8 @@ func _process(delta: float) -> void:
$bat2.changecolor = 1
$checkpoint.changecolor = 1
$parchment.changecolor = 1
$door.changecolor = 1
if has_node("door"):
$door.changecolor = 1
$hud.change = 1
if Global.colortype == 0:
$window.texture = load("res://sprites/others/window01.png")

View file

@ -24,7 +24,7 @@ func _process(delta: float) -> void:
$hangman4.changecolor = 1
$worm.changecolor = 1
$worm2.changecolor = 1
$hud.update = 1
$hud.change = 1
$switcha.changecolor = 1
Global.flagccolor = 0

View file

@ -9,6 +9,7 @@ func _process(delta: float) -> void:
if Global.flagccolor == 1:
$heart.changecolor = 1
$switcha.changecolor = 1
$teleport.changecolor = 1
$hud.change = 1
Global.flagccolor = 0
if $jean.position.x > 260:

View file

@ -11,6 +11,11 @@ func _ready() -> void:
musicplayer2.stop()
if not musicplayer.playing:
musicplayer.play()
if Global.colortype == 0:
$tomb.texture = load("res://sprites/others/tomb.png")
else:
$tomb.texture = load("res://sprites/others/tomba.png")
_init_enemies()
@ -23,6 +28,12 @@ func _process(delta: float) -> void:
$bee3.changecolor = 1
$bee4.changecolor = 1
$bee5.changecolor = 1
$parchment.changecolor = 1
$checkpoint.changecolor = 1
if Global.colortype == 0:
$tomb.texture = load("res://sprites/others/tomb.png")
else:
$tomb.texture = load("res://sprites/others/tomba.png")
$hud.change = 1
Global.flagccolor = 0

View file

@ -11,6 +11,17 @@ func _ready() -> void:
musicplayer2.stop()
if not musicplayer.playing:
musicplayer.play()
if Global.colortype == 0:
$tomb1.texture = load("res://sprites/others/tomb.png")
$tomb2.texture = load("res://sprites/others/tomb.png")
$tomb3.texture = load("res://sprites/others/tomb.png")
$tomb4.texture = load("res://sprites/others/tomb.png")
else:
$tomb1.texture = load("res://sprites/others/tomba.png")
$tomb2.texture = load("res://sprites/others/tomba.png")
$tomb3.texture = load("res://sprites/others/tomba.png")
$tomb4.texture = load("res://sprites/others/tomba.png")
_init_enemies()
@ -19,6 +30,16 @@ func _process(delta: float) -> void:
if Global.flagccolor == 1:
$sksoldier.changecolor = 1
$sksoldier2.changecolor = 1
if Global.colortype == 0:
$tomb1.texture = load("res://sprites/others/tomb.png")
$tomb2.texture = load("res://sprites/others/tomb.png")
$tomb3.texture = load("res://sprites/others/tomb.png")
$tomb4.texture = load("res://sprites/others/tomb.png")
else:
$tomb1.texture = load("res://sprites/others/tomba.png")
$tomb2.texture = load("res://sprites/others/tomba.png")
$tomb3.texture = load("res://sprites/others/tomba.png")
$tomb4.texture = load("res://sprites/others/tomba.png")
$hud.change = 1
Global.flagccolor = 0
if $jean.position.x < 0:

View file

@ -13,6 +13,14 @@ func _ready() -> void:
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
# Change color requested
if Global.flagccolor == 1:
$checkpoint.changecolor = 1
$hud.change = 1
$worm.changecolor = 1
$spidera.colorchange = 1
$parchment.changecolor = 1
Global.flagccolor = 0
# Show parchment
if Global.showparch == 1:
$parchtext.visible = true
@ -40,11 +48,11 @@ func _init_enemies() -> void:
$worm.limitx[1] = 186
$worm.direction = 0
$worm.speed = 30
$spidera/sprites.play("typea")
$spidera.limity[0] = 16
$spidera.limity[1] = 64
$spidera.speed = 50
$spidera.direction = 1
$spidera.spitype = 0
$flower.speed = 50
$flower2.speed = 30
$flower3.speed = 60

View file

@ -16,6 +16,14 @@ func _ready() -> void:
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
# Change color requested
if Global.flagccolor == 1:
$heart.changecolor = 1
$checkpoint.changecolor = 1
$hud.change = 1
$soldier.changecolor = 1
$soldier2.changecolor = 1
Global.flagccolor = 0
if $jean.position.x > 260:
Global.jeanposy = $jean.position.y
Global.jeanposx = 8
@ -34,12 +42,10 @@ func _process(delta: float) -> void:
get_tree().change_scene_to_file('res://scenes/room_0400.tscn')
func _init_enemies() -> void:
$soldier/sprites.play("typeb")
$soldier.direction = 0
$soldier.limitx[0] = 89
$soldier.limitx[1] = 119
$soldier.speed = 35
$soldier2/sprites.play("typeb")
$soldier2/sprites.flip_h = true
$soldier2.direction = 1
$soldier2.limitx[0] = 138

View file

@ -8,6 +8,16 @@ func _ready() -> void:
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
# Change color requested
if Global.flagccolor == 1:
$parchment.changecolor = 1
$fish1.changecolor = 1
$fish2.changecolor = 1
$fish3.changecolor = 1
$spidera.colorchange = 1
$hud.change = 1
Global.flagccolor = 0
# Show parchment
if Global.showparch == 1:
$parchtext.visible = true
@ -35,7 +45,7 @@ func _process(delta: float) -> void:
get_tree().change_scene_to_file('res://scenes/room_0302.tscn')
func _init_enemies() -> void:
$spidera/sprites.play("typea")
$spidera.spitype = 0
$spidera.limity[0] = 18
$spidera.limity[1] = 72
$spidera.speed = 60

View file

@ -7,6 +7,15 @@ func _ready() -> void:
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
# Color change requested
if Global.flagccolor == 1:
$archer.changecolor = 1
$archer2.changecolor = 1
$archer3.changecolor = 1
$switchb.changecolor = 1
$heart.changecolor = 1
$hud.change = 1
Global.flagccolor = 0
# Change data of archer3, looking at Jean
if ($jean.position.x > $archer3.position.x) and $archer3/sprites.flip_h == true and $archer3.arrowison == 0:
$archer3/sprites.flip_h = false

View file

@ -8,6 +8,17 @@ func _ready() -> void:
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
# Color change requested
if Global.flagccolor == 1:
$spikes.change = 1
$spikes2.change = 1
$spikes3.change = 1
$spikes4.change = 1
$spikes5.change = 1
$spikes6.change = 1
$heart.changecolor = 1
$hud.change = 1
Global.flagccolor = 0
if $jean.position.x > 260:
Global.jeanposy = $jean.position.y
Global.jeanposx = 8

View file

@ -18,6 +18,19 @@ func _ready() -> void:
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
# Change color requested
if Global.flagccolor == 1:
$checkpoint.changecolor = 1
$fish1.changecolor = 1
$fish2.changecolor = 1
$fish3.changecolor = 1
if has_node("door"):
$door.changecolor = 1
$heart.changecolor = 1
$spidera.colorchange = 1
$hud.change = 1
Global.flagccolor = 0
# Take out door, 1st time
if Global.switchanum[1] == 1 and $jean.position.x < 50 and Global.dooropened[1] == 0:
$door.queue_free()
@ -37,7 +50,7 @@ func _process(delta: float) -> void:
get_tree().change_scene_to_file('res://scenes/room_0204.tscn')
func _init_enemies() -> void:
$spidera/sprites.play("typea")
$spidera.spitype = 0
$spidera.limity[0] = 16
$spidera.limity[1] = 85
$spidera.speed = 65

View file

@ -12,6 +12,14 @@ func _ready() -> void:
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
if Global.flagccolor == 1:
$bird.changecolor = 1
$bird2.changecolor = 1
$switcha.changecolor = 1
$soldier.changecolor = 1
$door.changecolor = 1
$hud.change = 1
Global.flagccolor = 0
# Take out door at some X point, 1st time
if Global.switchanum[2] == 1 && $jean.position.x > 200 && Global.dooropened[2] == 0:
$door.hide()
@ -32,7 +40,6 @@ func _process(delta: float) -> void:
get_tree().change_scene_to_file('res://scenes/room_0300.tscn')
func _init_enemies() -> void:
$soldier/sprites.play("typeb")
$soldier.direction = 0
$soldier.limitx[0] = 90
$soldier.limitx[1] = 152

View file

@ -21,6 +21,8 @@ func _process(delta: float) -> void:
$daemon2.changecolor = 1
$daemon3.changecolor = 1
$archer.changecolor = 1
$parchment.changecolor = 1
$checkpoint.changecolor = 1
$hud.change = 1
Global.flagccolor = 0
# Show parchment

View file

@ -12,6 +12,9 @@ func _process(delta: float) -> void:
$daemon.changecolor = 1
$daemon2.changecolor = 1
$daemon3.changecolor = 1
$fireshoot.changecolor = 1
$fireshoot2.changecolor = 1
$fireshoot3.changecolor = 1
$hud.change = 1
Global.flagccolor = 0
if $jean.position.x < 0:

View file

@ -7,6 +7,18 @@ func _ready() -> void:
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
# Change color requested
if Global.flagccolor == 1:
$bat.changecolor = 1
$bat2.changecolor = 1
$heart.changecolor = 1
$heart2.changecolor = 1
$fireshoot.changecolor = 1
$fireshoot2.changecolor = 1
$fireshoot3.changecolor = 1
$checkpoint.changecolor = 1
$hud.change = 1
Global.flagccolor = 0
if $jean.position.x < 0:
Global.jeanposy = $jean.position.y
Global.jeanposx = 260

View file

@ -4,14 +4,24 @@ var direction = 0 # 0 hacia arriba, 1 hacia abajo
var death = 0
var sshot = preload("res://scenes/satanshoot.tscn")
var timershot = 0
var changecolor = 0
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
$AnimatedSprite2D2.visible = false # Hide smoke
$AnimatedSprite2D.play("default")
if Global.colortype == 0:
$AnimatedSprite2D.play("default")
else:
$AnimatedSprite2D.play("megadrive")
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
if changecolor == 1:
if Global.colortype == 0:
$AnimatedSprite2D.play("default")
else:
$AnimatedSprite2D.play("megadrive")
changecolor = 0
if Global.stop == 0 and death == 0:
if direction == 0:
if position.y > 40:

View file

@ -3,6 +3,7 @@ extends Area2D
var limitx = [0,0]
var direction = 0 # direction 0 - left to right, 1 right to left
var speed = 0
var changecolor = 0
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
@ -13,6 +14,12 @@ func _ready() -> void:
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
if changecolor == 1:
if Global.colortype == 0:
$sprites.play("typeb")
else:
$sprites.play("typebmd")
changecolor = 0
if direction == 0:
if limitx[1] > position.x:
position.x += speed * delta

View file

@ -49,4 +49,7 @@ func _on_body_entered(body: Node2D) -> void:
if body.is_in_group("player") && Global.switchanum[switchanumber] == 0:
Global.switchanum[switchanumber] = 1
$AudioStreamPlayer.play()
$Sprite2D.play("on")
if Global.colortype == 0:
$Sprite2D.play("on")
else:
$Sprite2D.play("onmd")

View file

@ -2,16 +2,39 @@ extends Area2D
var change = 0
var waittime = 0
var changecolor = 0
var musicplayer = Musicplayer.get_node("teleport")
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
if Global.switchanum[0] == 1:
$sprites.play("default")
if Global.colortype == 0:
$sprites.play("default")
else:
$sprites.play("megadrive")
else:
if Global.colortype == 0:
$sprites.play("default")
else:
$sprites.play("megadrive")
$sprites.stop()
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
if changecolor == 1:
if Global.switchanum[0] == 1:
if Global.colortype == 0:
$sprites.play("default")
else:
$sprites.play("megadrive")
else:
if Global.colortype == 0:
$sprites.play("default")
else:
$sprites.play("megadrive")
$sprites.stop()
changecolor = 0
if change == 1:
Global.jeanposx = 175
Global.jeanposy = 132

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

View file

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://ct7t8fvta2lin"
path="res://.godot/imported/satan01a.png-9f76c910a68638355ee2bfe1e6a71bd8.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://sprites/enemies/satan01a.png"
dest_files=["res://.godot/imported/satan01a.png-9f76c910a68638355ee2bfe1e6a71bd8.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
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/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.

After

Width:  |  Height:  |  Size: 1.7 KiB

View file

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://c10msou6almaa"
path="res://.godot/imported/satan02a.png-46cdb4b94c24061d96a807d71211547c.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://sprites/enemies/satan02a.png"
dest_files=["res://.godot/imported/satan02a.png-46cdb4b94c24061d96a807d71211547c.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
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/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.

After

Width:  |  Height:  |  Size: 1.4 KiB

View file

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://w0hjgrxt3mct"
path="res://.godot/imported/portal01a.png-804d9dd2725e3f3f767d8a929eff4768.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://sprites/objects/portal01a.png"
dest_files=["res://.godot/imported/portal01a.png-804d9dd2725e3f3f767d8a929eff4768.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
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/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.

After

Width:  |  Height:  |  Size: 1.4 KiB

View file

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://vs6h02oqe5dt"
path="res://.godot/imported/portal02a.png-f34edad484211a7090575a1fad7c7774.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://sprites/objects/portal02a.png"
dest_files=["res://.godot/imported/portal02a.png-f34edad484211a7090575a1fad7c7774.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
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/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.

After

Width:  |  Height:  |  Size: 1.4 KiB

View file

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://bvmrl22udq16n"
path="res://.godot/imported/portal03a.png-8343acdf679101a4e40fa4188d955e82.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://sprites/objects/portal03a.png"
dest_files=["res://.godot/imported/portal03a.png-8343acdf679101a4e40fa4188d955e82.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
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/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.

After

Width:  |  Height:  |  Size: 1.4 KiB

View file

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://dsin0v7ah22st"
path="res://.godot/imported/portal04a.png-dff812b2b56aa9c8196f84bfcd19177a.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://sprites/objects/portal04a.png"
dest_files=["res://.godot/imported/portal04a.png-dff812b2b56aa9c8196f84bfcd19177a.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
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/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

BIN
sprites/others/shootba.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

View file

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://dbob1x24ba025"
path="res://.godot/imported/shootba.png-d088a987bbda7ab7445a0de5ad9454ae.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://sprites/others/shootba.png"
dest_files=["res://.godot/imported/shootba.png-d088a987bbda7ab7445a0de5ad9454ae.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
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/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

BIN
sprites/others/shootca.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

View file

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://3aavhuwqeprv"
path="res://.godot/imported/shootca.png-237efc88c494a173dd80e84399d2dcab.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://sprites/others/shootca.png"
dest_files=["res://.godot/imported/shootca.png-237efc88c494a173dd80e84399d2dcab.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
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/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

BIN
sprites/others/tomba.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

View file

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://du3kx5ys8ujqk"
path="res://.godot/imported/tomba.png-270d328e87e2b6b617324f47eb6ad102.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://sprites/others/tomba.png"
dest_files=["res://.godot/imported/tomba.png-270d328e87e2b6b617324f47eb6ad102.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
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/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

View file

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

View file

@ -3,15 +3,15 @@
importer="texture"
type="CompressedTexture2D"
uid="uid://c1siqjsr8fd4s"
path="res://.godot/imported/window1a.png-7de016fce8ebb5d6a9af79e55d441aef.ctex"
path="res://.godot/imported/window01a.png-f492bd13abd28fb3687ae1323351ad09.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://sprites/others/window1a.png"
dest_files=["res://.godot/imported/window1a.png-7de016fce8ebb5d6a9af79e55d441aef.ctex"]
source_file="res://sprites/others/window01a.png"
dest_files=["res://.godot/imported/window01a.png-f492bd13abd28fb3687ae1323351ad09.ctex"]
[params]