31 lines
No EOL
737 B
JavaScript
31 lines
No EOL
737 B
JavaScript
Renderer = new Render("canvas");
|
|
|
|
let rubiks = new Player(1, 100, 50, "rubiks");
|
|
let atsuyo = new Player(2, 500, 70, "atsuyo");
|
|
let vincent = new Player(3, 600, 70, "vincent");
|
|
let migliore = new Player(4, 700, 70, "migliore");
|
|
let leroux = new Player(5, 200, 30, "leroux");
|
|
let lele = new Player(6, 700, 700, "lele");
|
|
|
|
rubiks.visibleDir=3;
|
|
rubiks.dir=3;
|
|
atsuyo.dir=5;
|
|
atsuyo.visibleDir=5;
|
|
|
|
|
|
Renderer.AddPlayer(rubiks);
|
|
Renderer.AddPlayer(atsuyo);
|
|
Renderer.AddPlayer(vincent);
|
|
Renderer.AddPlayer(migliore);
|
|
Renderer.AddPlayer(leroux);
|
|
Renderer.AddPlayer(lele);
|
|
|
|
|
|
setInterval(game);
|
|
|
|
function game() {
|
|
rubiks.update([],[]);
|
|
atsuyo.update([],[]);//.visibleDir=atsuyo.visibleDir-0.1;
|
|
//migliore.x=migliore.x-0.1;
|
|
Renderer.ReloadAff();
|
|
} |