3D working

This commit is contained in:
Kbz-8
2024-02-22 06:01:56 +01:00
parent 81355bf7b5
commit a7fff2f1a2
13 changed files with 71 additions and 50 deletions

View File

@ -5,18 +5,18 @@ class Wall
/**
* @param {Segment} start
*/
constructor (rail)
constructor (game, rail)
{
/**
* @type {Segment}
*/
this.rail = rail === undefined ? new Segment() : rail;
this.rail = rail === undefined ? new Segment(game) : rail;
}
draw(ctx)
draw(ctx)
{
this.rail.draw(ctx);
}
}
from_json(data)
{