Skip to content

Instantly share code, notes, and snippets.

@SET001
Created May 22, 2022 20:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SET001/e2aaaa9060af49033c0e72a5e9971fe1 to your computer and use it in GitHub Desktop.
Save SET001/e2aaaa9060af49033c0e72a5e9971fe1 to your computer and use it in GitHub Desktop.
{
YellowLaser: BulletConfig(
damage: 234.0,
shoot_rate: 12.0,
speed: 123.0,
assets: BulletAssets(
animations: BulletAnimations(
hit_splash: Directional((
left: Animation(
sprite_sheet: SpriteSheetDescriptor(
config: SpriteSheetConfig(256., 256.,4,1),
path: "images/bullets/yellow_laser/hit_splash_left.png",
),
animation: AnimationSettings(
duration: 12,
range: RangeInclusive(
start: 0,
end: 3
)
)
),
right: Animation(
sprite_sheet: SpriteSheetDescriptor(
config: SpriteSheetConfig(256., 256.,4,1),
path: "images/bullets/yellow_laser/hit_splash_right.png",
),
animation: AnimationSettings(
duration: 12,
range: RangeInclusive(
start: 0,
end: 3
)
)
)
)),
shot_splash: Directional((
left: Animation(
sprite_sheet: SpriteSheetDescriptor(
config: SpriteSheetConfig(256., 256.,4,1),
path: "images/bullets/yellow_laser/shot_splash_left.png"
),
animation: AnimationSettings(
duration: 12,
range: RangeInclusive(
start: 0,
end: 3
)
)
),
right: Animation(
sprite_sheet: SpriteSheetDescriptor(
config: SpriteSheetConfig(256., 256.,4,1),
path: "images/bullets/yellow_laser/shot_splash_right.png"
),
animation: AnimationSettings(
duration: 12,
range: RangeInclusive(
start: 0,
end: 3
)
)
)
))
),
texture: Directionless("images/bullets/yellow_laser/bullet.png")
)
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment