blaze-2d
Version:
A fast and simple WebGL 2 2D game engine written in TypeScript
19 lines • 503 B
JavaScript
import { vec2 } from "gl-matrix";
import Physics from "./physics/physics";
import World from "./world";
/**
* Represents a game scene.
*/
export default class Scene {
/**
* Creates a {@link Scene}.
*
* @param world The scene's game world
* @param physics The scene's physics world
*/
constructor(world = new World(vec2.fromValues(40, 40)), physics = new Physics()) {
this.world = world;
this.physics = physics;
}
}
//# sourceMappingURL=scene.js.map