3D working
This commit is contained in:
@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user