Kimberly Challenge RELOADED (WIP)

This commit is contained in:
Page Asgardius 2025-01-31 13:53:08 -07:00
parent 6c59c38c4b
commit c786ab7158
34 changed files with 330 additions and 6 deletions

View file

@ -0,0 +1,3 @@
source_md5="38d31e352ddcdd4718d80786d4b0f0bc"
dest_md5="905cfe2026c2db9fcc2a6ebf489901d0"

View file

@ -0,0 +1,3 @@
source_md5="a409b8263cfc163fa8616241a1771dd9"
dest_md5="fdcf050bee4efa38e60a83dd7652dc2f"

View file

@ -0,0 +1,3 @@
source_md5="b4fa12d342bae79443eb292668391334"
dest_md5="9dfcc726076b8e33696878b7a4051ea0"

View file

@ -0,0 +1,3 @@
source_md5="9b88ac36372211a17a402cde6813ba20"
dest_md5="66c015c4024de9b1cd78f975bed2bf2c"

View file

@ -0,0 +1,3 @@
source_md5="d882e047e3674eaa20b3b42e7cf26746"
dest_md5="159197fa0a794d3d973ab5995569e1d4"

View file

@ -0,0 +1,3 @@
source_md5="65c9665f5903cb0d99f05701248dc58c"
dest_md5="5532796fd67c9b60267780f065ef7ebd"

View file

@ -0,0 +1,3 @@
source_md5="bf816dc149e4a609b6fa20d64fc752df"
dest_md5="9b765b3429e207ea1156911c1e94f70e"

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 286 KiB

View file

@ -0,0 +1,35 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/Alice in forest.jpg-55051d759e8597a98a501645ed149d48.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://backgounds/Alice in forest.jpg"
dest_files=[ "res://.import/Alice in forest.jpg-55051d759e8597a98a501645ed149d48.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
process/normal_map_invert_y=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

Binary file not shown.

After

Width:  |  Height:  |  Size: 308 KiB

View file

@ -0,0 +1,35 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/Alone in the forest.jpg-b86f6704162e2108ab0b20368cdab01d.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://backgounds/Alone in the forest.jpg"
dest_files=[ "res://.import/Alone in the forest.jpg-b86f6704162e2108ab0b20368cdab01d.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
process/normal_map_invert_y=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

Binary file not shown.

After

Width:  |  Height:  |  Size: 345 KiB

View file

@ -0,0 +1,35 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/Kimberly Arch Knives.jpg-87e4072056c683e71b115a53058faaee.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://backgounds/Kimberly Arch Knives.jpg"
dest_files=[ "res://.import/Kimberly Arch Knives.jpg-87e4072056c683e71b115a53058faaee.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
process/normal_map_invert_y=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

Binary file not shown.

After

Width:  |  Height:  |  Size: 322 KiB

View file

@ -0,0 +1,35 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/Kimberly Arch triple fold.jpg-8a67f095643dae0ce610c4d706673780.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://backgounds/Kimberly Arch triple fold.jpg"
dest_files=[ "res://.import/Kimberly Arch triple fold.jpg-8a67f095643dae0ce610c4d706673780.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
process/normal_map_invert_y=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

Binary file not shown.

After

Width:  |  Height:  |  Size: 305 KiB

View file

@ -0,0 +1,35 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/Midori Asgardius triple fold.jpg-05910049228a5f9d1c67ae199049a327.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://backgounds/Midori Asgardius triple fold.jpg"
dest_files=[ "res://.import/Midori Asgardius triple fold.jpg-05910049228a5f9d1c67ae199049a327.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
process/normal_map_invert_y=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

Binary file not shown.

After

Width:  |  Height:  |  Size: 348 KiB

View file

@ -0,0 +1,35 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/looking for a treasure.jpg-f4a88f9d95cd25b06c09f3ee4e3c0b7d.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://backgounds/looking for a treasure.jpg"
dest_files=[ "res://.import/looking for a treasure.jpg-f4a88f9d95cd25b06c09f3ee4e3c0b7d.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
process/normal_map_invert_y=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

View file

@ -2,8 +2,11 @@ extends Node2D
var talk = load("res://levels/ui/talk.tscn").instance()
var boss
var player
var isreplay = false
# Called when the node enters the scene tree for the first time.
func _ready():
if Global.quest[0] == 3:
isreplay = true
boss = $Kimberly
player = $Player
boss.add_to_group("boss")
@ -20,13 +23,15 @@ func _process(delta):
func _physics_process(delta):
if Global.debug:
if Global.dstats[Global.dparty[0][0]][0] <= 0 && Global.live == 1:
if Global.dstats[Global.dparty[0][0]][0] <= 0 && Global.live == 1 && !isreplay:
_winner()
else:
if Global.cstats[Global.party[0][0]][0] <= 0 && Global.live == 1:
if Global.cstats[Global.party[0][0]][0] <= 0 && Global.live == 1 && !isreplay:
_winner()
func _input(event):
if Global.cboss[1] <= 0 && Global.live == 1 && isreplay:
_winner()
if Global.cdialog.size() != 0 && Global.live == 1:
get_tree().root.remove_child(talk)
Global.cdialog = []

View file

@ -1,5 +1,6 @@
extends Area2D
var velocity: Vector2 = Vector2()
var speed
var direction
var speciality
var btype

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.7 KiB

View file

@ -0,0 +1,35 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/sk.png-34bbd249a3c858cf3db0fee4f4c39ee6.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://sprites/common/bullet/sk.png"
dest_files=[ "res://.import/sk.png-34bbd249a3c858cf3db0fee4f4c39ee6.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
process/normal_map_invert_y=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

View file

@ -0,0 +1,26 @@
[gd_scene load_steps=4 format=2]
[ext_resource path="res://sprites/common/bullet/sk.png" type="Texture" id=1]
[ext_resource path="res://sprites/common/bullet/arrow.gd" type="Script" id=2]
[sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 65, 10 )
[node name="Arrow" type="Area2D"]
script = ExtResource( 2 )
[node name="Sprite" type="Sprite" parent="."]
position = Vector2( 1, 1 )
rotation = 3.14159
texture = ExtResource( 1 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2( 1, 1 )
shape = SubResource( 1 )
[node name="VisibleOnScreenNotifier2D" type="VisibilityNotifier2D" parent="."]
position = Vector2( 0.874994, 0.906251 )
scale = Vector2( 6.5125, 1.00937 )
[connection signal="area_entered" from="." to="." method="_on_area_entered"]
[connection signal="body_entered" from="." to="." method="_on_body_entered"]

View file

@ -2,7 +2,7 @@ extends KinematicBody2D
var theta: float = 0.0
export(float,6.2831853) var alpha: float = 1.5
var bullet = load("res://sprites/common/bullet/arrow.tscn")
var bullet
const SPEED = 300.0
const fspeed = 100.0
@ -17,10 +17,19 @@ var velocity = Vector2(0,0)
var isjump = false
var fplayer = false
var isfollow
var isreplay = false
func _ready():
if Global.quest[0] == 3:
isreplay = true
bullet = load("res://sprites/common/bullet/sk.tscn")
else:
bullet = load("res://sprites/common/bullet/arrow.tscn")
if Global.isboss:
Global.cboss = ["Kimberly Arch",0,0]
if isreplay:
Global.cboss = ["Kimberly Arch",2967,2967]
else:
Global.cboss = ["Kimberly Arch",0,0]
var stimer = $Speed
stimer.start(0.05)
@ -117,7 +126,22 @@ func shoot(angle):
new_bullet.speciality = 3
get_parent().call_deferred("add_child",new_bullet)
func shootr(angle):
var new_bullet = bullet.instance()
new_bullet.position = Vector2(position.x, position.y)
new_bullet.direction = get_vector(angle)
new_bullet.btype = "boss"
new_bullet.attack = attack
new_bullet.crit = crit
new_bullet.isjump = isjump
new_bullet.speciality = 3
new_bullet.speed = 100 * (sin(Time.get_ticks_msec()) + 2)
get_parent().call_deferred("add_child",new_bullet)
func _on_speed_timeout():
if Global.live == 1:
shoot(theta)
if isreplay:
shootr(theta)
else:
shoot(theta)

View file

@ -116,6 +116,7 @@ func shoot(angle):
new_bullet.attack = attack
new_bullet.crit = crit
new_bullet.isjump = isjump
new_bullet.speed = 100 * (sin(Time.get_ticks_msec()) + 2)
get_parent().call_deferred("add_child",new_bullet)

View file

@ -32,7 +32,7 @@ func _physics_process(delta):
Global.xm = 0
Global.ym = 0
if Global.debug:
if Global.dplace != [1, 11, 19]:
if Global.quest[0] == 3:
if Global.dstats[Global.dparty[Global.dcpchar][0]][0] <= 0 && Global.live == 1:
if Global.dparty[0][0] != null && Global.dstats[Global.dparty[0][0]][0] > 0:
Global.dcpchar = 0
@ -163,6 +163,7 @@ func _input(event):
new_pbullet.crit = crit
new_pbullet.isjump = isjump
new_pbullet.speciality = speciality
new_pbullet.speed = speed
new_pbullet.velocity = Vector2(0, -speed).rotated(deg2rad(angle * 90))
var rposition = Vector2(0, -96).rotated(deg2rad(angle * 90))
if angle == 2: