Added thingas
This commit is contained in:
@@ -1,38 +1,38 @@
|
||||
function fg_drawShadows(ctx, horses,horseHeight, horseWidth) {
|
||||
ctx.fillStyle = "rgba(0,0,0,0.25)";
|
||||
ctx.beginPath();
|
||||
ctx.ellipse(
|
||||
horses[3].x + (horseWidth /2) , // center of horses position
|
||||
HEIGHT - (horseHeight * 1.75),// center of lane
|
||||
(horseWidth * .75) / 2,
|
||||
(horseHeight * .25) / 2,
|
||||
0, 0, Math.PI *2);
|
||||
ctx.fill();
|
||||
|
||||
ctx.beginPath();
|
||||
ctx.ellipse(
|
||||
horses[2].x + (horseWidth /2) , // center of horses position
|
||||
HEIGHT - (horseHeight * 1.25),// center of lane
|
||||
(horseWidth * .75) / 2,
|
||||
(horseHeight * .25) / 2,
|
||||
0, 0, Math.PI *2);
|
||||
ctx.fill();
|
||||
|
||||
ctx.beginPath();
|
||||
ctx.ellipse(
|
||||
horses[1].x + (horseWidth /2) , // center of horses position
|
||||
HEIGHT - (horseHeight * .75),// center of lane
|
||||
(horseWidth * .75) / 2,
|
||||
(horseHeight * .25) / 2,
|
||||
0, 0, Math.PI *2);
|
||||
ctx.fill();
|
||||
|
||||
ctx.beginPath();
|
||||
ctx.ellipse(
|
||||
horses[0].x + (horseWidth /2) , // center of horses position
|
||||
HEIGHT - (horseHeight * .25),// center of lane
|
||||
(horseWidth * .75) / 2,
|
||||
(horseHeight * .25) / 2,
|
||||
0, 0, Math.PI *2);
|
||||
ctx.fill();
|
||||
function fg_drawShadows(ctx, horses,horseHeight, horseWidth) {
|
||||
ctx.fillStyle = "rgba(0,0,0,0.25)";
|
||||
ctx.beginPath();
|
||||
ctx.ellipse(
|
||||
horses[3].x + (horseWidth /2) , // center of horses position
|
||||
HEIGHT - (horseHeight * 1.75),// center of lane
|
||||
(horseWidth * .75) / 2,
|
||||
(horseHeight * .25) / 2,
|
||||
0, 0, Math.PI *2);
|
||||
ctx.fill();
|
||||
|
||||
ctx.beginPath();
|
||||
ctx.ellipse(
|
||||
horses[2].x + (horseWidth /2) , // center of horses position
|
||||
HEIGHT - (horseHeight * 1.25),// center of lane
|
||||
(horseWidth * .75) / 2,
|
||||
(horseHeight * .25) / 2,
|
||||
0, 0, Math.PI *2);
|
||||
ctx.fill();
|
||||
|
||||
ctx.beginPath();
|
||||
ctx.ellipse(
|
||||
horses[1].x + (horseWidth /2) , // center of horses position
|
||||
HEIGHT - (horseHeight * .75),// center of lane
|
||||
(horseWidth * .75) / 2,
|
||||
(horseHeight * .25) / 2,
|
||||
0, 0, Math.PI *2);
|
||||
ctx.fill();
|
||||
|
||||
ctx.beginPath();
|
||||
ctx.ellipse(
|
||||
horses[0].x + (horseWidth /2) , // center of horses position
|
||||
HEIGHT - (horseHeight * .25),// center of lane
|
||||
(horseWidth * .75) / 2,
|
||||
(horseHeight * .25) / 2,
|
||||
0, 0, Math.PI *2);
|
||||
ctx.fill();
|
||||
}
|
||||
Reference in New Issue
Block a user