Files
adventureland/design/animations.py
T

547 lines
11 KiB
Python

animations={
"block":{
"file":"/images/sprites/animations/Block.png", #sparks ...
"frames":11,
},
"explode_c":{
"file":"/images/sprites/animations/ExplodeC.png", #perfect explosion
"frames":12,
},
"explode_b":{
"file":"/images/sprites/animations/ExplodeB.png",
"frames":12,
},
"explode_p":{
"file":"/images/sprites/animations/ExplodeP2.png", #priest explosion
"frames":12,
},
"explode_up":{
"file":"/images/sprites/animations/ExplodeUCS.png", #priest explosion
"frames":12,
},
"explode_a":{
"file":"/images/sprites/animations/ExplodeA.png", #perfect explosion
"frames":12,
},
"rain":{
"file":"/images/sprites/weather/wsheet_rain1_1.png",
"frames":4,
},
"snow":{
"file":"/images/sprites/weather/wsheet_snow_1.png",
"frames":4,
},
"fog":{
"file":"/images/sprites/weather/fog.png",
"frames":2,
},
#"crackle":{
# "file":"/images/tiles/animations/custom/crackle1.png",
# "frames":6,
#},
"crackle":{
"file":"/images/sprites/animations/GlintF.png",
"frames":4,
},
"egg":{
"file":"/images/sprites/animations/egg_splash.png", #priest explosion
"frames":3,
},
"hearts_single":{
"file":"/images/sprites/emotions/heart_rise_single.png",
"frames":10,
"y":-10,
"size":2,
"alpha":1,
},
"starkiller":{
"file":"/images/sprites/animations/attack3.png", #perfect explosion
"frames":12,
"aspeed":"mild",
"alpha":0.8,
},
"spark0":{
"file":"/images/sprites/animations/Spark0.png", # nice animation, death-like
"frames":10,
},
"slash0":{
"file":"/images/sprites/animations/Slash0.png", # nice animation, damage-like
"frames":7,
},
"slash1":{
"file":"/images/sprites/animations/Slash1.png", # nice animation, damage-like
"frames":7,
},
"slash3":{
"file":"/images/sprites/animations/Slash3.png", # mp color
"frames":7,
},
"slash2":{
"file":"/images/sprites/animations/Slash2Quick.png",
"frames":7,
"alpha":0.9,
"size":0.75,
"aspeed":"fast",
},
"snowflake":{
"file":"/images/sprites/animations/snowflake.png",
"frames":7,
},
"snowball":{
"file":"/images/sprites/animations/snowball_projectile.png",
"frames":4,
"continuous":True,
"directional":True,
"speed":500,
"size":0.75,
},
"snowball_hit":{
"file":"/images/sprites/animations/snowball_hit.png",
"frames":4,
"aspeed":"slow",
"alpha":1,
"exact":True,
"y":-10,
},
"pinky":{
"file":"/images/sprites/animations/pinky.png?v=2",
"frames":3,
"continuous":True,
"directional":True,
"speed":1200,
},
"wandy":{
"file":"/images/sprites/animations/wandy.png?v=2",
"frames":3,
"continuous":True,
"directional":True,
"speed":1200,
},
"carrow":{
"file":"/images/sprites/animations/CArrow.png",
"frames":3,
"continuous":True,
"directional":True,
"speed":1200,
},
"garrow":{
"file":"/images/sprites/animations/garrow.png",
"frames":4,
"continuous":True,
"directional":True,
"speed":1200,
},
"arrow1":{
"file":"/images/sprites/animations/arrow1.png",
"frames":4,
"continuous":True,
"directional":True,
"speed":1200,
},
"superarrow":{
"file":"/images/sprites/animations/arrow2.png",
"frames":4,
"continuous":True,
"directional":True,
"speed":1200,
"scale":1.5,
},
"firearrow":{
"file":"/images/sprites/animations/fireArrow.png",
"frames":4,
"continuous":True,
"directional":True,
"speed":1000,
"scale":0.75,
},
"poucharrow":{
"file":"/images/sprites/animations/pouchArrow.png",
"frames":4,
"continuous":True,
"directional":True,
"speed":1000,
"scale":0.75,
},
"frostarrow":{
"file":"/images/sprites/animations/frostArrow.png",
"frames":4,
"continuous":True,
"directional":True,
"speed":1000,
"scale":0.75,
},
"acid":{
"file":"/images/sprites/animations/terrorAcid.png",
"frames":4,
"continuous":True,
"speed":800,
"scale":0.75,
},
"cuarrow":{
"file":"/images/sprites/animations/heartedArrow.png",
"frames":3,
"continuous":True,
"directional":True,
"speed":1200,
},
"pblob":{
"file":"/images/sprites/animations/PBlob.png",
"frames":3,
"continuous":True,
"directional":True,
"speed":1200,
},
"mblob":{
"file":"/images/sprites/animations/MBlob.png",
"frames":3,
"continuous":True,
"directional":True,
"speed":800,
},
"mblob_purplish":{
"file":"/images/sprites/animations/MBlobP.png",
"frames":3,
"continuous":True,
"directional":True,
"speed":600,
},
"mblob_red":{
"file":"/images/sprites/animations/MBlobR.png",
"frames":3,
"continuous":True,
"directional":True,
"speed":800,
"framefps":9, # since 9<16, changes every frame
#"scale":0.75,
},
"magic0":{
"file":"/images/sprites/animations/magic0.png",
"frames":4,
"continuous":True,
"directional":True,
"speed":800,
"framefps":9, # since 9<16, changes every frame
#"scale":0.75,
},
"magic1":{
"file":"/images/sprites/animations/magic1.png",
"frames":4,
"continuous":True,
"directional":True,
"speed":800,
"framefps":9, # since 9<16, changes every frame
#"scale":0.75,
},
"magic2":{
"file":"/images/sprites/animations/magic2.png",
"frames":4,
"continuous":True,
"directional":True,
"speed":800,
"framefps":9, # since 9<16, changes every frame
#"scale":0.75,
},
"magic3":{
"file":"/images/sprites/animations/magic3.png",
"frames":4,
"continuous":True,
"directional":True,
"speed":800,
"framefps":9,
},
"magic4":{
"file":"/images/sprites/animations/magic4.png",
"frames":4,
"continuous":True,
"directional":True,
"speed":800,
"framefps":9,
},
"slash":{
"file":"/images/sprites/animations/slash.png",
"frames":3,
"continuous":True,
"directional":True,
"speed":260,
"front":True,
},
"wslash":{
"file":"/images/sprites/animations/wslash.png",
"frames":3,
"continuous":True,
"directional":True,
"speed":260,
"front":True,
},
"heal_projectile":{
"file":"/images/sprites/animations/healAttack.png",
"frames":4,
"continuous":True,
"speed":190,
"scale":0.5,
},
"curse_projectile":{
"file":"/images/sprites/animations/curseAttack.png",
"frames":3,
"continuous":True,
"speed":190,
"framefps":1,
},
"fireball":{
"file":"/images/sprites/animations/fireball.png",
"frames":4,
"continuous":True,
"directional":True,
"speed":400,
},
"frostball":{
"file":"/images/sprites/animations/frostball.png",
"frames":4,
"continuous":True,
"directional":True,
"speed":400,
},
"gold":{
"file":"/images/sprites/animations/gold.png",
"frames":1,
"continuous":True,
"directional":True,
"speed":160,
"front":True,
},
"arrow_hit":{
"file":"/images/sprites/animations/Slash0Arrow.png", # nice animation, damage-like
"frames":7,
"alpha":0.9,
"size":0.8,
},
"icecrack":{
"file":"/images/sprites/animations/crackingIce.png", # nice animation, damage-like
"frames":6,
"alpha":1,
"size":1,
"y":2,
},
"supershot":{
"file":"/images/sprites/animations/Slash0Super.png", # nice animation, damage-like
"frames":7,
"alpha":0.9,
},
"party_heal":{
"file":"/images/sprites/animations/partyHeal.png",
"frames":9,
"alpha":1,
"aspeed":"slow",
"exact":True,
"y":6,
},
"curse_new":{
"file":"/images/sprites/animations/curse.png",
"frames":6,
"alpha":1,
"aspeed":"slow",
"exact":True,
"y":6,
},
"transport":{
"file":"/images/sprites/animations/Teleport2.png",
"frames":9,
"alpha":0.8,
"continuous":True,
},
"typing":{
"file":"/images/sprites/animations/typingAnim.png",
"frames":4,
"alpha":1,
"aspeed":"slow",
"continuous":True,
"bubble":True,
},
"revival":{
"file":"/images/sprites/animations/Teleport1P.png",
"frames":12,
"alpha":0.8,
"speeding":True,
"continuous":True,
},
# "invincible":{
# "file":"/images/sprites/animations/TeleportInv.png", #Doesn't look very good
# "frames":9,
# "alpha":0.8,
# },
"invincible":{
"file":"/images/sprites/animations/Shield1.png",
"frames":9,
"alpha":0.8,
"continuous":True,
},
"gm":{
"file":"/images/sprites/animations/Shield_Invincible.png",
"frames":9,
"alpha":0.8,
"continuous":True,
},
"hardshell":{
"file":"/images/sprites/animations/warrior_shield.png",
"frames":9,
"alpha":0.8,
"aspeed":"slow",
"continuous":True,
},
"reflection":{
"file":"/images/sprites/animations/reflection.png",
"frames":9,
"alpha":0.8,
"aspeed":"slow",
"continuous":True,
},
"tiling_burst":{
"file":"/images/sprites/animations/burst.png",
"frames":1,
"alpha":1,
"fade":True,
"tiling":True,
},
"tiling_burst_g":{ #green
"file":"/images/sprites/animations/eburst.png",
"frames":1,
"alpha":1,
"fade":True,
"tiling":True,
},
"tiling_burstj":{
"file":"/images/sprites/animations/lightningBurst3.png",
"frames":1,
"alpha":1,
"fade":True,
"tiling":True,
},
"light":{
"file":"/images/sprites/animations/Light.png",
"frames":11,
"alpha":0.7,
},
# "success":{
# "file":"/images/sprites/animations/CGreen_Spark0.png", #custom, upgrade success [10/08/16]
# "frames":10,
# },
# "failure":{
# "file":"/images/sprites/animations/CRed_Spark0.png", #custom, upgrade failure [10/08/16]
# "frames":10,
# },
"success":{
"file":"/images/sprites/animations/CGreen_Spark3.png",
"frames":10,
},
"failure":{
"file":"/images/sprites/animations/CRed_Spark5.png",
"frames":10,
},
# "purple_success":{
# "file":"/images/sprites/animations/CPurple_Spark.png",
# "frames":10,
# },
"mluck":{
"file":"/images/sprites/animations/Consume0.png",
"frames":13,
},
"gold_anim":{
"file":"/images/sprites/animations/gold_anim.png",
"frames":13,
},
"rspeed":{
#"file":"/images/sprites/animations/PuffR.png",
#"frames":14,
"file":"/images/sprites/animations/ConsumeR.png",
"frames":13,
},
"exchange":{
"file":"/images/sprites/animations/Consume2.png",
"frames":13,
},
"heal":{
"file":"/images/sprites/animations/ConsumeP.png",
"frames":13,
},
"taunt":{
"file":"/images/sprites/animations/Puff.png",
"frames":7,
"alpha":1,
},
"burst":{
"file":"/images/sprites/animations/Electric.png",
"frames":6,
"alpha":0.7,
},
"gburst":{
"file":"/images/sprites/animations/ElectricG.png",
"frames":6,
"alpha":0.7,
},
"flare_blue":{
"file":"/images/sprites/animations/flare_effect_blue.png",
"frames":9,
"alpha":0.7,
},
"flare_yellow":{
"file":"/images/sprites/animations/flare_effect_yellow.png",
"frames":9,
"alpha":0.7,
},
"tangle":{
"file":"/images/sprites/animations/Tangle.png",
"frames":6,
"alpha":1,
"alpha":1,
"proportional":True,
"continuous":True,
"aspeed":"slow",
},
"dampened":{
"file":"/images/sprites/animations/Dampen.png",
"frames":6,
"alpha":1,
"alpha":1,
"proportional":True,
"continuous":True,
"aspeed":"slow",
},
"curse":{
"file":"/images/sprites/animations/Poison.png",
"frames":8,
"alpha":0.9,
"proportional":True,
"aspeed":"slow",
},
"stunned":{
"file":"/images/sprites/animations/NuclearA1.png",
"frames":6,
"alpha":0.4,
},
# "cursed":{
# "file":"/images/sprites/animations/Sick.png",
# "frames":4,
# "alpha":0.9,
# }
# "blood0":{
# "file":"/images/sprites/animations/BloodSplatter0.png", # physical-hit
# "frames":9,
# },
# "blood3":{
# "file":"/images/sprites/animations/BloodSplatter3.png", # physical-hit
# "frames":7,
# },
"confetti":{
"file":"/images/sprites/animations/confetti2.png",
"frames":12,
"alpha":0.4,
},
}
try:
from projectiles import projectiles
except:
from design.projectiles import projectiles
for id in projectiles:
if "animation" in projectiles[id] and "speed" in animations[projectiles[id]["animation"]]:
animations[projectiles[id]["animation"]]["speed"]=projectiles[id]["speed"]