SC CODE: // Copyright 2024. Civilware. All rights reserved.
// TELA Decentralized Web Document (TELA-DOC-1)
Function InitializePrivate() Uint64
10 IF init() == 0 THEN GOTO 30
20 RETURN 1
30 STORE("nameHdr", "levels.js")
31 STORE("descrHdr", "Levels data file")
32 STORE("iconURLHdr", "")
33 STORE("dURL", "levels.js")
34 STORE("docType", "TELA-JS-1")
35 STORE("subDir", "")
36 STORE("fileCheckC", "1c888b108631bdb63f13bce8153a911879d003e0d5f43d6d9ff2beb8c3252ff")
37 STORE("fileCheckS", "137441d397e4f90ee0f83b14628c521e2b8cba4b87f9bf22b40abe1200673f74")
100 RETURN 0
End Function
Function init() Uint64
10 IF EXISTS("owner") == 0 THEN GOTO 30
20 RETURN 1
30 STORE("owner", address())
50 STORE("docVersion", "1.0.0")
60 STORE("hash", HEX(TXID()))
70 STORE("likes", 0)
80 STORE("dislikes", 0)
100 RETURN 0
End Function
Function address() String
10 DIM s as String
20 LET s = SIGNER()
30 IF IS_ADDRESS_VALID(s) THEN GOTO 50
40 RETURN "anon"
50 RETURN ADDRESS_STRING(s)
End Function
Function Rate(r Uint64) Uint64
10 DIM addr as String
15 LET addr = address()
16 IF r < 100 && EXISTS(addr) == 0 && addr != "anon" THEN GOTO 30
20 RETURN 1
30 STORE(addr, ""+r+"_"+BLOCK_HEIGHT())
40 IF r < 50 THEN GOTO 70
50 STORE("likes", LOAD("likes")+1)
60 RETURN 0
70 STORE("dislikes", LOAD("dislikes")+1)
100 RETURN 0
End Function
/*const levelPlatforms=[];
const levelEnemies=[];
const levelData = [];
levelPlatforms[1]= [
{ points: [{ x: 750, y: 770}, { x: 975, y:660}, { x: 1175, y: 770}]},
{ points: [{ x: 800, y: 800}, { x: 900, y: 800}]}, // ladder
{ points: [{ x:800, y: 900}, { x: 900, y: 900}]}, // ladder
{ points: [{ x: 0, y: 500},{ x: 0, y: 1050},{ x: 450, y: 1050},{ x: 1600, y: 1000}, { x: 2000, y: 1000}, { x: 3600, y: 950}]},
{ points: [{ x:2980, y: 875}, { x: 3050, y: 875}]}, // building front step
{ points: [{ x: 3600, y: 950}, { x: 3600, y: 0}]}, //wall
];
levelEnemies[1]= [
{x:810, y:760, type:"defender"},
{x:800, y:1000, type:"grunt"},
{x:1000, y:400, type:"grunt"},
{x:1150, y:400, type:"grunt"},
{x:1200, y:400, type:"grunt"},
{x:3000, y:800, type:"grunt"},
{x:3020, y:800, type:"grunt"}
];
levelData[1] = {
playerStart: { x: 80, y: 800, facing: 1 },
maxAlive: 3,
maxSpawn: 7,
objective: {
message: "Find and disable the quantum spyware control center",
count: 7
},
doors: [{
id: "exit",
type: "exit",
x: 3010,
y: 870,
scaleX: 0, // closed
targetScaleX: 0, // where it wants to go
speed: 1, // rotation speed
closed:true,
locked: true
}],
tileMap:[{x:0,y:0},{x:2000,y:0}],
background:"stars"
};
levelPlatforms[2]= [
{ points: [{ x: -50, y: 1200}, { x: -50, y: 0}]}, //wall
{ points: [{ x: 530, y: 1050}, { x: 630, y: 1050}]},
{ points: [{ x: 610, y: 1110}, { x: 840, y: 1110}]}, //counter
{ points: [{ x: 950, y: 1130}, { x: 1055, y: 1130}]}, //couch
{ points: [{ x: 1030, y: 990}, { x: 1125, y: 990}]}, //soda machine
{ points: [{ x: -50, y: 1180}, { x: 2000, y: 1180}]},//floor
{ points: [{ x: 2000, y: 1200}, { x: 2000, y: 0}]}, //wall
];
levelEnemies[2]= [
{x:600, y:950, type:"grunt"},
{x:900, y:1100, type:"grunt"},
{x:950, y:1100, type:"grunt"},
{x:550, y:950, type:"grunt"},
{x:600, y:950, type:"grunt"},
{x:600, y:950, type:"grunt"},
{x:600, y:950, type:"grunt"},
{x:600, y:950, type:"grunt"},
{x:1500, y:1100, type:"grunt"},
{x:1550, y:1100, type:"grunt"},
];
levelData[2] = {
playerStart: { x: 200, y: 800, facing: 1 },
maxAlive: 4,
maxSpawn: 10,
objective: {
count: 10
},
doors: [
{id: "exit", type: "exit", x: 1800, y: 1100, scaleX: 0, targetScaleX: 0, speed: 1, closed:true, locked: true},
{id: "enemy1", type: "enemyEntrance", x: 1000, y: 1200, closed:true, locked: false },
],
tileMap:[{x:0,y:0}]
};
levelPlatforms[3]= [
{ points: [{ x: 0, y: 1180, oneWay:"right"}, { x: 0, y: 0}]}, //wall
{ points: [
{ x: 300, y: 825}, { x: 300, y: 800},
{ x: 325, y: 800}, { x: 325, y: 775},
{ x: 350, y: 775}, { x: 350, y: 750},
{ x: 375, y: 750}, { x: 375, y: 725},
{ x: 400, y: 725}, { x: 400, y: 700},
{ x: 425, y: 700}, { x: 425, y: 675},
{ x: 450, y: 675}, { x: 450, y: 650},
{ x: 1175, y: 650}, { x: 1175, y: 200},//upper floor
]}, // stairs 3
{ points: [
{ x: 75, y: 725},{ x: 75, y: 825},//wall right
{ x: 225, y: 825}, { x: 250, y: 825},
{ x: 250, y: 850}, { x: 275, y: 850},
{ x: 275, y: 875}, { x: 300, y: 875},
{ x: 300, y: 900}, { x: 325, y: 900},
{ x: 325, y: 925}, { x: 350, y: 925},
{ x: 350, y: 950}, { x: 375, y: 950},
{ x: 375, y: 975}, { x: 400, y: 975},
{ x: 400, y: 1000},
]},
{ points: [
{ x: 300, y: 1150},
{ x: 325, y: 1150}, { x: 325, y: 1125},
{ x: 350, y: 1125}, { x: 350, y: 1100},
{ x: 375, y: 1100}, { x: 375, y: 1075},
{ x: 400, y: 1075}, { x: 400, y: 1050},
{ x: 425, y: 1050}, { x: 425, y: 1025},
{ x: 450, y: 1025}, { x: 450, y: 1000},
{ x: 625, y: 1000}, { x: 625, y: 900}//wall right
]}, // stairs 1
{ points: [{ x: 1060, y: 530}, { x: 1175, y: 530}]},//box
{ points: [{ x: 0, y: 420}, { x: 1060, y: 420}]},//top floor
{ points: [{ x: 725, y: 1180, oneWay:"left"}, { x: 725, y: 650}]}, //wall
{ points: [{ x: -100, y: 1180}, { x: 900, y: 1180}]},//floor
];
levelEnemies[3]= [
{x:550, y:600, type:"grunt"},
{x:600, y:600, type:"grunt"},
{x:500, y:340, type:"grunt"},
{x:250, y:340, type:"grunt"},
{x:200, y:340, type:"grunt"},
{x:-80, y:1100, type:"grunt"},
{x:800, y:1100, type:"grunt"},
];
levelData[3] = {
playerStart: { x: 100, y: 1100, facing: 1 },
maxAlive: 3,
maxSpawn: 7,
objective: {
message: "",
count: 7
},
doors: [
{id: "exit", type: "exit", x: 150, y: 350, scaleX: 0, targetScaleX: 0, speed: 1, closed:true, locked: true},
],
tileMap:[{x:0,y:0}]
};
levelPlatforms[4]= [
{ points: [{ x: 4200, y: 400}, { x:4200, y: 310}, { x:4350, y: 310}, { x:4350, y: 400}]},//cart
{ points: [{ x: 2200, y: 400}, { x:2200, y: 310}, { x:2350, y: 310}, { x:2350, y: 400}]},//cart
{ points: [
{ x: 325, y: 370},
{ x: 380, y: 310}, //ramp
{ x: 420, y: 310},
{ x:420, y: 260},
{ x:465, y: 260},
{ x:465, y: 285},
{ x:510, y: 285},
{ x:510, y: 310},
{ x:500, y: 310},
{ x:500, y: 370}
]},//boxes
{ points: [ { x:650, y: 165}, { x:1175, y: 165}]},// pipe
{ points: [ { x:1250, y: 240}, { x:1950, y: 240}]},// pipe
{ points: [ { x:2050, y: 185}, { x:2750, y: 185}]},// pipe
{ points: [ { x:4050, y: 185}, { x:4750, y: 185}]},// pipe
{ points: [ { x:140, y: 280}, { x:200, y: 280}]},// ladder
{ points: [ { x:140, y: 210}, { x:200, y: 210}]},
{ points: [ { x:140, y: 140}, { x:200, y: 140}]},
{ points: [ { x:140, y: 70}, { x:200, y: 70}]},
{ points: [{ x: 0, y: 400}, { x:6000, y: 400}]},//top floor
];
levelEnemies[4]= [
{x:50, y:200, type:"grunt"},
{x:5850, y:200, type:"grunt"},
{x:5900, y:200, type:"grunt"},
{x:5950, y:200, type:"grunt"},
{x:100, y:200, type:"grunt"},
{x:2000, y:200, type:"grunt"},
{x:2500, y:100, type:"grunt"},
{x:50, y:200, type:"grunt"},
{x:3950, y:200, type:"grunt"},
{x:3900, y:200, type:"grunt"},
{x:3850, y:200, type:"grunt"},
{x:50, y:200, type:"grunt"},
{x:3100, y:200, type:"grunt"},
{x:3900, y:200, type:"grunt"},
{x:3950, y:200, type:"grunt"},
{x:3050, y:200, type:"grunt"},
{x:3900, y:200, type:"grunt"},
{x:4050, y:200, type:"grunt"},
{x:100, y:200, type:"grunt"},
{x:150, y:200, type:"grunt"},
];
levelData[4] = {
playerStart: { x:5700 , y: 200, facing: -1},
maxAlive: 20,
maxSpawn: 20,
objective: {
message: "",
count: 20
},
doors: [{
id: "exit",
type: "exit",
x: 170,
y: 60,
scaleX: 0,
targetScaleX: 0,
speed: 1,
closed:true,
locked: false
}],
tileMap:[{x:0,y:0},{x:2000,y:0},{x:4000,y:0}]
};
levelPlatforms[5]= [
{ points: [{ x: 0, y: 1050}, { x:815, y: 1050}]},//roof 1
{ points: [{ x: 934, y: 1170}, { x:1560, y: 1170, oneWay:"left"}, { x:1560, y: 915}]},//roof 2
{ points: [{ x:1560, y: 1170}, { x:1825, y: 915}]},//extra no fall
{ points: [{ x:1560, y: 915}, { x:1825, y: 915}]},//roof 2 plaform
{ points: [{ x: 1240, y: 1170}, { x:1355, y: 940}, { x:1420, y: 940}, { x:1530, y: 1170}]},//tower
{ points: [{ x: 2000, y: 1240}, { x:2590, y: 680}, { x:2660, y: 680},{ x:2660, y: 560}]},
{ points: [ { x:3025, y: 560},{ x:3025, y: 660},{ x:3570, y: 1890}, { x:4000, y: 1890}, { x:4000, y: 1500}]},//building 3
{ points: [{ x:2660, y: 560}, { x:3025, y: 560}]}//top platform
];
levelEnemies[5]= [
{x:1050, y:750, type:"grunt"},
{x:150, y:850, type:"grunt"},
{x:1620, y:600, type:"defender"},
{x:1660, y:600, type:"defender"},
{x:2660, y:600, type:"defender"},
{x:2700, y:500, type:"defender"},
];
levelData[5] = {
playerStart: { x:110 , y: 850, facing: 1},
maxAlive: 4,
maxSpawn: 6,
objective: {
message: "",
count: 6
},
doors: [{
id: "exit",
type: "exit",
x: 3760,
y: 1850,
scaleX: 0,
targetScaleX: 0,
speed: 1,
closed:true,
locked: false
}],
tileMap:[{x:0,y:0},{x:2000,y:0}],
background:"stars"
};
levelPlatforms[6]= [
{ points: [{ x: 50, y: 50}, { x: 50, y: 950}]},
{ points: [{ x: 50, y: 950},{ x: 550, y: 1401}, { x: 1450, y: 1401},{ x: 1950, y: 950}]},
{ points: [{ x: 1950, y: 950}, { x: 1950, y: 0}]},//floor 1
{ points: [ { x: 170, y: 935},{ x: 400, y: 850}, { x: 1500, y: 850}, { x: 1830, y: 935}]},//boss
{ points: [{ x: 0, y: 1420},{ x: 550, y: 1420}]},
{ points: [{ x: 1450, y: 1420},{ x: 2000, y: 1420}]},
];
levelEnemies[6]= [
{x:1050, y:750, type:"boss"},
{x:1150, y:750, type:"defender"},
{x:760, y:750, type:"defender"},
{x:1850, y:1340, type:"grunt"},
{x:100, y:1340, type:"grunt"},
{x:1900, y:1340, type:"grunt"},
{x:100, y:1340, type:"grunt"},
];
levelData[6] = {
playerStart: { x:650 , y: 1340, facing: 1},
maxAlive: 5,
maxSpawn: 7,
objective: {
message: "Overthrow the dark overlord's command center",
count: 7
},
doors: [],
tileMap:[{x:0,y:0},{x:2000,y:0}]
};*/ |
| SC Arguments: [Name:SC_ACTION Type:uint64 Value:'1' Name:SC_CODE Type:string Value:'// Copyright 2024. Civilware. All rights reserved.
// TELA Decentralized Web Document (TELA-DOC-1)
Function InitializePrivate() Uint64
10 IF init() == 0 THEN GOTO 30
20 RETURN 1
30 STORE("nameHdr", "levels.js")
31 STORE("descrHdr", "Levels data file")
32 STORE("iconURLHdr", "")
33 STORE("dURL", "levels.js")
34 STORE("docType", "TELA-JS-1")
35 STORE("subDir", "")
36 STORE("fileCheckC", "1c888b108631bdb63f13bce8153a911879d003e0d5f43d6d9ff2beb8c3252ff")
37 STORE("fileCheckS", "137441d397e4f90ee0f83b14628c521e2b8cba4b87f9bf22b40abe1200673f74")
100 RETURN 0
End Function
Function init() Uint64
10 IF EXISTS("owner") == 0 THEN GOTO 30
20 RETURN 1
30 STORE("owner", address())
50 STORE("docVersion", "1.0.0")
60 STORE("hash", HEX(TXID()))
70 STORE("likes", 0)
80 STORE("dislikes", 0)
100 RETURN 0
End Function
Function address() String
10 DIM s as String
20 LET s = SIGNER()
30 IF IS_ADDRESS_VALID(s) THEN GOTO 50
40 RETURN "anon"
50 RETURN ADDRESS_STRING(s)
End Function
Function Rate(r Uint64) Uint64
10 DIM addr as String
15 LET addr = address()
16 IF r < 100 && EXISTS(addr) == 0 && addr != "anon" THEN GOTO 30
20 RETURN 1
30 STORE(addr, ""+r+"_"+BLOCK_HEIGHT())
40 IF r < 50 THEN GOTO 70
50 STORE("likes", LOAD("likes")+1)
60 RETURN 0
70 STORE("dislikes", LOAD("dislikes")+1)
100 RETURN 0
End Function
/*const levelPlatforms=[];
const levelEnemies=[];
const levelData = [];
levelPlatforms[1]= [
{ points: [{ x: 750, y: 770}, { x: 975, y:660}, { x: 1175, y: 770}]},
{ points: [{ x: 800, y: 800}, { x: 900, y: 800}]}, // ladder
{ points: [{ x:800, y: 900}, { x: 900, y: 900}]}, // ladder
{ points: [{ x: 0, y: 500},{ x: 0, y: 1050},{ x: 450, y: 1050},{ x: 1600, y: 1000}, { x: 2000, y: 1000}, { x: 3600, y: 950}]},
{ points: [{ x:2980, y: 875}, { x: 3050, y: 875}]}, // building front step
{ points: [{ x: 3600, y: 950}, { x: 3600, y: 0}]}, //wall
];
levelEnemies[1]= [
{x:810, y:760, type:"defender"},
{x:800, y:1000, type:"grunt"},
{x:1000, y:400, type:"grunt"},
{x:1150, y:400, type:"grunt"},
{x:1200, y:400, type:"grunt"},
{x:3000, y:800, type:"grunt"},
{x:3020, y:800, type:"grunt"}
];
levelData[1] = {
playerStart: { x: 80, y: 800, facing: 1 },
maxAlive: 3,
maxSpawn: 7,
objective: {
message: "Find and disable the quantum spyware control center",
count: 7
},
doors: [{
id: "exit",
type: "exit",
x: 3010,
y: 870,
scaleX: 0, // closed
targetScaleX: 0, // where it wants to go
speed: 1, // rotation speed
closed:true,
locked: true
}],
tileMap:[{x:0,y:0},{x:2000,y:0}],
background:"stars"
};
levelPlatforms[2]= [
{ points: [{ x: -50, y: 1200}, { x: -50, y: 0}]}, //wall
{ points: [{ x: 530, y: 1050}, { x: 630, y: 1050}]},
{ points: [{ x: 610, y: 1110}, { x: 840, y: 1110}]}, //counter
{ points: [{ x: 950, y: 1130}, { x: 1055, y: 1130}]}, //couch
{ points: [{ x: 1030, y: 990}, { x: 1125, y: 990}]}, //soda machine
{ points: [{ x: -50, y: 1180}, { x: 2000, y: 1180}]},//floor
{ points: [{ x: 2000, y: 1200}, { x: 2000, y: 0}]}, //wall
];
levelEnemies[2]= [
{x:600, y:950, type:"grunt"},
{x:900, y:1100, type:"grunt"},
{x:950, y:1100, type:"grunt"},
{x:550, y:950, type:"grunt"},
{x:600, y:950, type:"grunt"},
{x:600, y:950, type:"grunt"},
{x:600, y:950, type:"grunt"},
{x:600, y:950, type:"grunt"},
{x:1500, y:1100, type:"grunt"},
{x:1550, y:1100, type:"grunt"},
];
levelData[2] = {
playerStart: { x: 200, y: 800, facing: 1 },
maxAlive: 4,
maxSpawn: 10,
objective: {
count: 10
},
doors: [
{id: "exit", type: "exit", x: 1800, y: 1100, scaleX: 0, targetScaleX: 0, speed: 1, closed:true, locked: true},
{id: "enemy1", type: "enemyEntrance", x: 1000, y: 1200, closed:true, locked: false },
],
tileMap:[{x:0,y:0}]
};
levelPlatforms[3]= [
{ points: [{ x: 0, y: 1180, oneWay:"right"}, { x: 0, y: 0}]}, //wall
{ points: [
{ x: 300, y: 825}, { x: 300, y: 800},
{ x: 325, y: 800}, { x: 325, y: 775},
{ x: 350, y: 775}, { x: 350, y: 750},
{ x: 375, y: 750}, { x: 375, y: 725},
{ x: 400, y: 725}, { x: 400, y: 700},
{ x: 425, y: 700}, { x: 425, y: 675},
{ x: 450, y: 675}, { x: 450, y: 650},
{ x: 1175, y: 650}, { x: 1175, y: 200},//upper floor
]}, // stairs 3
{ points: [
{ x: 75, y: 725},{ x: 75, y: 825},//wall right
{ x: 225, y: 825}, { x: 250, y: 825},
{ x: 250, y: 850}, { x: 275, y: 850},
{ x: 275, y: 875}, { x: 300, y: 875},
{ x: 300, y: 900}, { x: 325, y: 900},
{ x: 325, y: 925}, { x: 350, y: 925},
{ x: 350, y: 950}, { x: 375, y: 950},
{ x: 375, y: 975}, { x: 400, y: 975},
{ x: 400, y: 1000},
]},
{ points: [
{ x: 300, y: 1150},
{ x: 325, y: 1150}, { x: 325, y: 1125},
{ x: 350, y: 1125}, { x: 350, y: 1100},
{ x: 375, y: 1100}, { x: 375, y: 1075},
{ x: 400, y: 1075}, { x: 400, y: 1050},
{ x: 425, y: 1050}, { x: 425, y: 1025},
{ x: 450, y: 1025}, { x: 450, y: 1000},
{ x: 625, y: 1000}, { x: 625, y: 900}//wall right
]}, // stairs 1
{ points: [{ x: 1060, y: 530}, { x: 1175, y: 530}]},//box
{ points: [{ x: 0, y: 420}, { x: 1060, y: 420}]},//top floor
{ points: [{ x: 725, y: 1180, oneWay:"left"}, { x: 725, y: 650}]}, //wall
{ points: [{ x: -100, y: 1180}, { x: 900, y: 1180}]},//floor
];
levelEnemies[3]= [
{x:550, y:600, type:"grunt"},
{x:600, y:600, type:"grunt"},
{x:500, y:340, type:"grunt"},
{x:250, y:340, type:"grunt"},
{x:200, y:340, type:"grunt"},
{x:-80, y:1100, type:"grunt"},
{x:800, y:1100, type:"grunt"},
];
levelData[3] = {
playerStart: { x: 100, y: 1100, facing: 1 },
maxAlive: 3,
maxSpawn: 7,
objective: {
message: "",
count: 7
},
doors: [
{id: "exit", type: "exit", x: 150, y: 350, scaleX: 0, targetScaleX: 0, speed: 1, closed:true, locked: true},
],
tileMap:[{x:0,y:0}]
};
levelPlatforms[4]= [
{ points: [{ x: 4200, y: 400}, { x:4200, y: 310}, { x:4350, y: 310}, { x:4350, y: 400}]},//cart
{ points: [{ x: 2200, y: 400}, { x:2200, y: 310}, { x:2350, y: 310}, { x:2350, y: 400}]},//cart
{ points: [
{ x: 325, y: 370},
{ x: 380, y: 310}, //ramp
{ x: 420, y: 310},
{ x:420, y: 260},
{ x:465, y: 260},
{ x:465, y: 285},
{ x:510, y: 285},
{ x:510, y: 310},
{ x:500, y: 310},
{ x:500, y: 370}
]},//boxes
{ points: [ { x:650, y: 165}, { x:1175, y: 165}]},// pipe
{ points: [ { x:1250, y: 240}, { x:1950, y: 240}]},// pipe
{ points: [ { x:2050, y: 185}, { x:2750, y: 185}]},// pipe
{ points: [ { x:4050, y: 185}, { x:4750, y: 185}]},// pipe
{ points: [ { x:140, y: 280}, { x:200, y: 280}]},// ladder
{ points: [ { x:140, y: 210}, { x:200, y: 210}]},
{ points: [ { x:140, y: 140}, { x:200, y: 140}]},
{ points: [ { x:140, y: 70}, { x:200, y: 70}]},
{ points: [{ x: 0, y: 400}, { x:6000, y: 400}]},//top floor
];
levelEnemies[4]= [
{x:50, y:200, type:"grunt"},
{x:5850, y:200, type:"grunt"},
{x:5900, y:200, type:"grunt"},
{x:5950, y:200, type:"grunt"},
{x:100, y:200, type:"grunt"},
{x:2000, y:200, type:"grunt"},
{x:2500, y:100, type:"grunt"},
{x:50, y:200, type:"grunt"},
{x:3950, y:200, type:"grunt"},
{x:3900, y:200, type:"grunt"},
{x:3850, y:200, type:"grunt"},
{x:50, y:200, type:"grunt"},
{x:3100, y:200, type:"grunt"},
{x:3900, y:200, type:"grunt"},
{x:3950, y:200, type:"grunt"},
{x:3050, y:200, type:"grunt"},
{x:3900, y:200, type:"grunt"},
{x:4050, y:200, type:"grunt"},
{x:100, y:200, type:"grunt"},
{x:150, y:200, type:"grunt"},
];
levelData[4] = {
playerStart: { x:5700 , y: 200, facing: -1},
maxAlive: 20,
maxSpawn: 20,
objective: {
message: "",
count: 20
},
doors: [{
id: "exit",
type: "exit",
x: 170,
y: 60,
scaleX: 0,
targetScaleX: 0,
speed: 1,
closed:true,
locked: false
}],
tileMap:[{x:0,y:0},{x:2000,y:0},{x:4000,y:0}]
};
levelPlatforms[5]= [
{ points: [{ x: 0, y: 1050}, { x:815, y: 1050}]},//roof 1
{ points: [{ x: 934, y: 1170}, { x:1560, y: 1170, oneWay:"left"}, { x:1560, y: 915}]},//roof 2
{ points: [{ x:1560, y: 1170}, { x:1825, y: 915}]},//extra no fall
{ points: [{ x:1560, y: 915}, { x:1825, y: 915}]},//roof 2 plaform
{ points: [{ x: 1240, y: 1170}, { x:1355, y: 940}, { x:1420, y: 940}, { x:1530, y: 1170}]},//tower
{ points: [{ x: 2000, y: 1240}, { x:2590, y: 680}, { x:2660, y: 680},{ x:2660, y: 560}]},
{ points: [ { x:3025, y: 560},{ x:3025, y: 660},{ x:3570, y: 1890}, { x:4000, y: 1890}, { x:4000, y: 1500}]},//building 3
{ points: [{ x:2660, y: 560}, { x:3025, y: 560}]}//top platform
];
levelEnemies[5]= [
{x:1050, y:750, type:"grunt"},
{x:150, y:850, type:"grunt"},
{x:1620, y:600, type:"defender"},
{x:1660, y:600, type:"defender"},
{x:2660, y:600, type:"defender"},
{x:2700, y:500, type:"defender"},
];
levelData[5] = {
playerStart: { x:110 , y: 850, facing: 1},
maxAlive: 4,
maxSpawn: 6,
objective: {
message: "",
count: 6
},
doors: [{
id: "exit",
type: "exit",
x: 3760,
y: 1850,
scaleX: 0,
targetScaleX: 0,
speed: 1,
closed:true,
locked: false
}],
tileMap:[{x:0,y:0},{x:2000,y:0}],
background:"stars"
};
levelPlatforms[6]= [
{ points: [{ x: 50, y: 50}, { x: 50, y: 950}]},
{ points: [{ x: 50, y: 950},{ x: 550, y: 1401}, { x: 1450, y: 1401},{ x: 1950, y: 950}]},
{ points: [{ x: 1950, y: 950}, { x: 1950, y: 0}]},//floor 1
{ points: [ { x: 170, y: 935},{ x: 400, y: 850}, { x: 1500, y: 850}, { x: 1830, y: 935}]},//boss
{ points: [{ x: 0, y: 1420},{ x: 550, y: 1420}]},
{ points: [{ x: 1450, y: 1420},{ x: 2000, y: 1420}]},
];
levelEnemies[6]= [
{x:1050, y:750, type:"boss"},
{x:1150, y:750, type:"defender"},
{x:760, y:750, type:"defender"},
{x:1850, y:1340, type:"grunt"},
{x:100, y:1340, type:"grunt"},
{x:1900, y:1340, type:"grunt"},
{x:100, y:1340, type:"grunt"},
];
levelData[6] = {
playerStart: { x:650 , y: 1340, facing: 1},
maxAlive: 5,
maxSpawn: 7,
objective: {
message: "Overthrow the dark overlord's command center",
count: 7
},
doors: [],
tileMap:[{x:0,y:0},{x:2000,y:0}]
};*/'] |