UNPKG

planck-js

Version:

2D JavaScript/TypeScript physics engine for cross-platform HTML5 game development

12 lines (7 loc) 240 B
import { Testbed, World } from "planck"; const testbed = Testbed.mount(); const world = new World(); testbed.x = 0; testbed.y = 0; testbed.start(world); testbed.info("This is a template, update the code and implement something here!");