Skip to content

Commit

Permalink
fix: shooter example didn't have opacity component (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
amyspark-ng authored May 28, 2024
1 parent 8aff565 commit 9bace6e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions examples/shooter.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ scene("battle", () => {
text("KILL", { size: 160 }),
pos(width() / 2, height() / 2),
anchor("center"),
opacity(),
lifespan(1),
fixed(),
]);
Expand All @@ -79,6 +80,7 @@ scene("battle", () => {
text("THE", { size: 80 }),
pos(width() / 2, height() / 2),
anchor("center"),
opacity(),
lifespan(2),
late(1),
fixed(),
Expand All @@ -88,6 +90,7 @@ scene("battle", () => {
text(bossName.toUpperCase(), { size: 120 }),
pos(width() / 2, height() / 2),
anchor("center"),
opacity(),
lifespan(4),
late(2),
fixed(),
Expand Down Expand Up @@ -185,6 +188,7 @@ scene("battle", () => {
pos(p.add(rand(vec2(-rad), vec2(rad)))),
rect(4, 4),
scale(1 * size, 1 * size),
opacity(),
lifespan(0.1),
grow(rand(48, 72) * size),
anchor("center"),
Expand Down

0 comments on commit 9bace6e

Please sign in to comment.