Skip to content

Commit

Permalink
Merge pull request #44 from ikbensiep/sh/perf-sprite-positioning
Browse files Browse the repository at this point in the history
Fix paths, improve smoke sprite
  • Loading branch information
ikbensiep authored Feb 13, 2024
2 parents 955389e + 1beb2a7 commit ec2d212
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Binary file modified assets/smoke/smoke-sprite.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 6 additions & 2 deletions css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -591,6 +591,10 @@ div.car-body {
&.smoke {

--mask-image: url('../assets/smoke/smoke-sprite-2.png');

&:nth-child(3n) {
--mask-image: url('../assets/smoke/smoke-sprite.png');
}

background: white;
background-image: radial-gradient(at 50% 0, rgb(255, 255, 255), rgb(168, 220, 255), rgba(174, 232, 255, 0.027));
Expand All @@ -606,9 +610,9 @@ div.car-body {
&.dust {
opacity: .5;
background: transparent;
background-image: url('/assets/noise.png'), radial-gradient(rgba(255, 230, 128, 0.603), rgba(255, 255, 0, 0.295));
background-image: url('../assets/noise.png'), radial-gradient(rgba(255, 230, 128, 0.603), rgba(255, 255, 0, 0.295));
background-size: 200%, 100%;
--mask-image: url('/assets/smoke/smoke-sprite-2.png');
--mask-image: url('../assets/smoke/smoke-sprite-2.png');

}

Expand Down

0 comments on commit ec2d212

Please sign in to comment.