Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/excaliburjs/Excalibur. 🎮 Your friendly TypeScript 2D game engine for the web 🗡️ excaliburjs.com
excalibur excaliburjs game-development game-engine game-framework gamedev games html5-canvas typescript
Something went wrong. Try again.
feat: [#2313] Add New Line Graphics Object (#2314) master
Related #2313 This PR adds a new graphics object `Line` for drawing lines using the graphics component! ```typescript const lineActor = new ex.Actor({ pos: ex.vec(100, 0) }); lineActor.graphics.anchor = ex.Vector.Zero; lineActor.graphics.use(new ex.Line({ start: ex.vec(0, 0), end: ex.vec(200, 200), color: ex.Color.Green, thickness: 10 })); game.add(lineActor); ```
Author Erik Onarheim Committer GitHub Date (May 15, 2022, 6:18 PM UTC) Commit d3c8c916 d3c8c916d28ebe5851bc96fb71f64fe73144fc00 Parent 429fcb76 429fcb76f65fdd1a5d28d71c1726ee71f95359fe