Skip to content

Commit

Permalink
Remove redundant exports from the game module
Browse files Browse the repository at this point in the history
  • Loading branch information
rexim committed Jul 2, 2024
1 parent 47e050b commit dfcb50e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
16 changes: 8 additions & 8 deletions game.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions game.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@
//
// Only simple functions that operate on objects that don't store any functions can be easily
// hot-reloaded. Examples are State and Player which we defined as interfaces.
export const EPS = 1e-6;
export const NEAR_CLIPPING_PLANE = 0.1;
export const FAR_CLIPPING_PLANE = 20.0;
export const FOV = Math.PI*0.5;
export const PLAYER_STEP_LEN = 0.5;
export const PLAYER_SPEED = 2;
export const PLAYER_SIZE = 0.5
const EPS = 1e-6;
const NEAR_CLIPPING_PLANE = 0.1;
const FAR_CLIPPING_PLANE = 20.0;
const FOV = Math.PI*0.5;
const PLAYER_STEP_LEN = 0.5;
const PLAYER_SPEED = 2;
const PLAYER_SIZE = 0.5

export class RGBA {
r: number;
Expand Down Expand Up @@ -274,7 +274,7 @@ function sceneIsWall(scene: Scene, p: Vector2): boolean {
return c !== null && c !== undefined;
}

export function sceneCanRectangleFitHere(scene: Scene, position: Vector2, size: Vector2): boolean {
function sceneCanRectangleFitHere(scene: Scene, position: Vector2, size: Vector2): boolean {
const x1 = Math.floor(position.x - size.x*0.5);
const x2 = Math.floor(position.x + size.x*0.5);
const y1 = Math.floor(position.y - size.y*0.5);
Expand Down

0 comments on commit dfcb50e

Please sign in to comment.