Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Creating variables
- var pawnColor = [];//pawn - pionka(ako ne znaesh, you dumbass ;)
- var pawnPos = []; //pawnPossition
- var pawnCount = 0;
- for(var player = 0; player < 4; player++){
- for(var pawn = 0; pawn < 4; pawn++){
- pawnColor[pawnCount] = player;
- pawnPos[pawnCount] = -1;
- }
- }
- endlessCanvas = true;
- function update() {
- }
- function renderCell(pos, x , y){
- }
- function draw() {
- /*context.fillStyle = '#8c0f0f'
- context.fillRect(0, 0, 800, 600);
- for(var x = 0; x < 15; x++){
- for(var y = 0; y < 15; y++){
- context.fillStyle = 'white';
- context.fillRect(x * 35 + 40, 10 + 60 * y, 30, 30);
- }
- }*/
- var lastX = canvas.width / 2;
- var lastY = 0;
- var size = 50;
- for(var pos = 1; pos <= 7; pos++){
- lastX += size;
- context.fillRect(lastX, lastY, size, size);
- }
- for(var pos = 2; pos <= 7; pos++){
- lastY += size;
- context.fillRect(lastX, lastY, size, size);
- for(var pawn = 0; pawn < pawnCount; pawn++){
- }
- }
- for(var pos = 7; pos <= 12; pos++){
- lastY += size;
- context.fillRect(lastX, lastY, size, size);
- }
- }
- function keyup(key) {
- }
- function mouseup() {
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement