Skip to content

Commit

Permalink
fixed comet speed
Browse files Browse the repository at this point in the history
  • Loading branch information
flodlc committed Feb 8, 2022
1 parent f711fd7 commit 918db1a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@flodlc/nebula",
"version": "1.0.55",
"version": "1.0.56",
"main": "dist/index.cjs.js",
"module": "dist/index.es.js",
"typings": "dist/index.d.ts",
Expand Down
4 changes: 2 additions & 2 deletions src/astres/Comet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Random } from "../utils/random";
import { FPS } from "../config";
import { getRGB, parseColor } from "../utils/parseColor";

const SPEED = 125;
const SPEED = 115;

export class Comet extends Drawable {
ctx: CanvasRenderingContext2D;
Expand Down Expand Up @@ -78,7 +78,7 @@ export class Comet extends Drawable {
fromAngle + Math.PI + Math.PI / 6
),
distanceToTarget: Random.around(maxSideSize * 0.6, 0.3),
speed: Random.around(SPEED, 0.3, "%"),
speed: Random.around(SPEED, 0.15, "%"),
rgb: parseColor("rgb(255,207,207)"),
width: Random.between(0.2, 0.8),
startOpacity: 0,
Expand Down

1 comment on commit 918db1a

@vercel
Copy link

@vercel vercel bot commented on 918db1a Feb 8, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.