Compare commits
No commits in common. "master" and "master" have entirely different histories.
@ -1,7 +1,7 @@
|
||||
class Line {
|
||||
constructor(x1, y1, x2, y2, style = "#000000") {
|
||||
this.pos = { x: x1, y: y1 };
|
||||
this.target = { x: x2, y: y2 };
|
||||
this.target = { x: x2, y: y2 };
|
||||
this.style = style;
|
||||
}
|
||||
}
|
||||
|
@ -92,7 +92,7 @@ class CanvasRenderer {
|
||||
|
||||
ctx.fill();
|
||||
} else if (child.style && child.target) {
|
||||
ctx.beginPath();
|
||||
ctx.beginPath();
|
||||
ctx.moveTo(0,0);
|
||||
ctx.lineTo(child.target.x, child.target.y);
|
||||
ctx.strokeStyle = child.style;
|
||||
|
2
package-lock.json
generated
2
package-lock.json
generated
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "asdf-games",
|
||||
"version": "1.1.6",
|
||||
"version": "1.1.5",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "asdf-games",
|
||||
"version": "1.1.6",
|
||||
"version": "1.1.5",
|
||||
"description": "Javascript gaming framework, based upon the framework made in the book HTML5 Games: Novice to Ninja by Sitepoint.",
|
||||
"main": "lib/index.js",
|
||||
"repository": {
|
||||
|
Loading…
Reference in New Issue
Block a user