Skip to content

Commit

Permalink
adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
rainlizard committed Dec 2, 2023
1 parent 9fcb7c8 commit ab3bc74
Show file tree
Hide file tree
Showing 31 changed files with 30 additions and 52 deletions.
22 changes: 0 additions & 22 deletions Autoload/Things.gd
Original file line number Diff line number Diff line change
Expand Up @@ -113,28 +113,6 @@ func _init():
default_data["DATA_EFFECTGEN"] = DATA_EFFECTGEN.duplicate(true)
default_data["DATA_CREATURE"] = DATA_CREATURE.duplicate(true)
default_data["DATA_OBJECT"] = DATA_OBJECT.duplicate(true)

adjust_animated_texture_fps()

func adjust_animated_texture_fps():
# Calculate the new FPS based on the number of frames

for key in DATA_OBJECT.keys():
var object_data = DATA_OBJECT[key]
var aniTextureID = object_data[TEXTURE]
if aniTextureID is AnimatedTexture:
var frameCount = aniTextureID.frames # For example, you could just use the frame count as FPS
var newFPS
if frameCount < 12:
newFPS = 10
if frameCount >= 12:
newFPS = 20
aniTextureID.fps = newFPS

# Dungeon Heart FPS
DATA_OBJECT[5][TEXTURE].fps = 10




func data_structure(thingType):
Expand Down
2 changes: 1 addition & 1 deletion dk_images/crucials/anim0950/AnimDungeonHeart.tres
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
[resource]
flags = 9
frames = 12
fps = 15.0
fps = 10.0
frame_0/texture = ExtResource( 2 )
frame_1/texture = ExtResource( 8 )
frame_1/delay_sec = 0.0
Expand Down
2 changes: 1 addition & 1 deletion dk_images/food/anim0822/AnimChicken.tres
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
[resource]
flags = 9
frames = 30
fps = 15.0
fps = 10.0
frame_0/texture = ExtResource( 2 )
frame_1/texture = ExtResource( 13 )
frame_1/delay_sec = 0.0
Expand Down
2 changes: 1 addition & 1 deletion dk_images/food/anim0898/AnimEggGrowing1.tres
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
[resource]
flags = 9
frames = 5
fps = 15.0
fps = 10.0
frame_0/texture = ExtResource( 4 )
frame_1/texture = ExtResource( 2 )
frame_1/delay_sec = 0.0
Expand Down
2 changes: 1 addition & 1 deletion dk_images/food/anim0900/AnimEggWobbling3.tres
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
[resource]
flags = 9
frames = 4
fps = 15.0
fps = 10.0
frame_0/texture = ExtResource( 3 )
frame_1/texture = ExtResource( 2 )
frame_1/delay_sec = 0.0
Expand Down
2 changes: 1 addition & 1 deletion dk_images/food/anim0901/AnimEggCracking4.tres
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
[resource]
flags = 9
frames = 21
fps = 15.0
fps = 10.0
frame_0/texture = ExtResource( 12 )
frame_1/texture = ExtResource( 19 )
frame_1/delay_sec = 0.0
Expand Down
2 changes: 1 addition & 1 deletion dk_images/furniture/anim0791/AnimCandle.tres
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
[resource]
flags = 9
frames = 4
fps = 15.0
fps = 10.0
frame_0/texture = ExtResource( 2 )
frame_1/texture = ExtResource( 3 )
frame_1/delay_sec = 0.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
[resource]
flags = 9
frames = 8
fps = 15.0
fps = 12.0
frame_0/texture = ExtResource( 6 )
frame_1/texture = ExtResource( 2 )
frame_1/delay_sec = 0.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
[resource]
flags = 9
frames = 8
fps = 15.0
fps = 12.0
frame_0/texture = ExtResource( 5 )
frame_1/texture = ExtResource( 4 )
frame_1/delay_sec = 0.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
[resource]
flags = 9
frames = 8
fps = 15.0
fps = 12.0
frame_0/texture = ExtResource( 2 )
frame_1/texture = ExtResource( 7 )
frame_1/delay_sec = 0.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
[resource]
flags = 9
frames = 8
fps = 15.0
fps = 12.0
frame_0/texture = ExtResource( 7 )
frame_1/texture = ExtResource( 8 )
frame_1/delay_sec = 0.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
[resource]
flags = 9
frames = 8
fps = 15.0
fps = 12.0
frame_0/texture = ExtResource( 2 )
frame_1/texture = ExtResource( 7 )
frame_1/delay_sec = 0.0
Expand Down
2 changes: 1 addition & 1 deletion dk_images/furniture/scavenge_eye_tp/AnimScavengerEye.tres
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
[resource]
flags = 9
frames = 8
fps = 15.0
fps = 12.0
frame_0/texture = ExtResource( 3 )
frame_1/texture = ExtResource( 9 )
frame_1/delay_sec = 0.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
[resource]
flags = 9
frames = 12
fps = 20.0
fps = 15.0
frame_0/texture = ExtResource( 10 )
frame_1/texture = ExtResource( 7 )
frame_1/delay_sec = 0.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
[resource]
flags = 9
frames = 8
fps = 15.0
fps = 12.0
frame_0/texture = ExtResource( 6 )
frame_1/texture = ExtResource( 9 )
frame_1/delay_sec = 0.0
Expand Down
2 changes: 1 addition & 1 deletion dk_images/magic_fogs/anim0798/AnimTempleSpangle.tres
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
[resource]
flags = 9
frames = 8
fps = 15.0
fps = 20.0
frame_0/texture = ExtResource( 2 )
frame_1/texture = ExtResource( 7 )
frame_1/delay_sec = 0.0
Expand Down
2 changes: 1 addition & 1 deletion dk_images/magic_fogs/anim0799/AnimYellowHeartFlame.tres
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
[resource]
flags = 9
frames = 16
fps = 15.0
fps = 20.0
frame_0/texture = ExtResource( 9 )
frame_1/texture = ExtResource( 15 )
frame_1/delay_sec = 0.0
Expand Down
2 changes: 1 addition & 1 deletion dk_images/magic_fogs/anim0800/AnimGreenHeartFlame.tres
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
[resource]
flags = 9
frames = 16
fps = 15.0
fps = 20.0
frame_0/texture = ExtResource( 10 )
frame_1/texture = ExtResource( 2 )
frame_1/delay_sec = 0.0
Expand Down
2 changes: 1 addition & 1 deletion dk_images/magic_fogs/anim0801/AnimRedHeartFlame.tres
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
[resource]
flags = 9
frames = 16
fps = 15.0
fps = 20.0
frame_0/texture = ExtResource( 5 )
frame_1/texture = ExtResource( 3 )
frame_1/delay_sec = 0.0
Expand Down
2 changes: 1 addition & 1 deletion dk_images/magic_fogs/anim0802/AnimBlueHeartFlame.tres
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
[resource]
flags = 9
frames = 16
fps = 15.0
fps = 20.0
frame_0/texture = ExtResource( 2 )
frame_1/texture = ExtResource( 14 )
frame_1/delay_sec = 0.0
Expand Down
2 changes: 1 addition & 1 deletion dk_images/magic_fogs/anim0854/AnimCastedSight.tres
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
[resource]
flags = 9
frames = 12
fps = 15.0
fps = 12.0
frame_0/texture = ExtResource( 3 )
frame_1/texture = ExtResource( 2 )
frame_1/delay_sec = 0.0
Expand Down
2 changes: 1 addition & 1 deletion dk_images/power_hand/anim0782/AnimePowerHandGold.tres
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
[resource]
flags = 9
frames = 4
fps = 15.0
fps = 10.0
frame_0/texture = ExtResource( 3 )
frame_1/texture = ExtResource( 4 )
frame_1/delay_sec = 0.0
Expand Down
2 changes: 1 addition & 1 deletion dk_images/power_hand/anim0783/AnimePowerHand.tres
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
[resource]
flags = 9
frames = 8
fps = 15.0
fps = 12.0
frame_0/texture = ExtResource( 2 )
frame_1/texture = ExtResource( 3 )
frame_1/delay_sec = 0.0
Expand Down
2 changes: 1 addition & 1 deletion dk_images/power_hand/anim0784/AnimePowerHandGrab.tres
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
[resource]
flags = 9
frames = 4
fps = 15.0
fps = 12.0
frame_0/texture = ExtResource( 3 )
frame_1/texture = ExtResource( 2 )
frame_1/delay_sec = 0.0
Expand Down
2 changes: 1 addition & 1 deletion dk_images/power_hand/anim0786/AnimePowerHandWhip.tres
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
[resource]
flags = 9
frames = 8
fps = 15.0
fps = 12.0
frame_0/texture = ExtResource( 2 )
frame_1/texture = ExtResource( 3 )
frame_1/delay_sec = 0.0
Expand Down
2 changes: 1 addition & 1 deletion dk_images/statues/anim0952/AnimLitStatue.tres
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
[resource]
flags = 9
frames = 4
fps = 15.0
fps = 10.0
frame_0/texture = ExtResource( 5 )
frame_1/texture = ExtResource( 3 )
frame_1/delay_sec = 0.0
Expand Down
2 changes: 1 addition & 1 deletion dk_images/traps_doors/anim0116/AnimBox.tres
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
[resource]
flags = 9
frames = 16
fps = 15.0
fps = 20.0
frame_0/texture = ExtResource( 16 )
frame_1/texture = ExtResource( 12 )
frame_1/delay_sec = 0.0
Expand Down
2 changes: 1 addition & 1 deletion dk_images/traps_doors/anim0811/AnimSpinningKey.tres
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
[resource]
flags = 9
frames = 16
fps = 15.0
fps = 20.0
frame_0/texture = ExtResource( 6 )
frame_1/texture = ExtResource( 9 )
frame_1/delay_sec = 0.0
Expand Down
2 changes: 1 addition & 1 deletion dk_images/valuables/gold_pot_tp/AnimGoldPot.tres
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
[resource]
flags = 9
frames = 6
fps = 15.0
fps = 10.0
frame_0/texture = ExtResource( 5 )
frame_1/texture = ExtResource( 7 )
frame_1/delay_sec = 0.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
[resource]
flags = 9
frames = 8
fps = 15.0
fps = 12.0
frame_0/texture = ExtResource( 7 )
frame_1/texture = ExtResource( 6 )
frame_1/delay_sec = 0.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
[resource]
flags = 9
frames = 8
fps = 15.0
fps = 12.0
frame_0/texture = ExtResource( 2 )
frame_1/texture = ExtResource( 3 )
frame_1/delay_sec = 0.0
Expand Down

0 comments on commit ab3bc74

Please sign in to comment.