
Fixed level rendering at edges. Fixed clipping through tiles at high speeds. Added more levels. Fixed particle collisions. Added mouse click detection. Added particle spawning on mouse click. Added water. Added death with animation. Particles and actors now only render when on screen and only run when within 2000 pixels. Added speed multiplier to movement, you can now play with a low frame rate. Added sound with option for it in main menu. Particles get pushed away if you go near them. Added enemy that goes back and forth and spawns with the level. Added xvel and yvel monitors. Added blur to menu title. Changed credits. Removed loader. Other minor changes.
349 lines
No EOL
9.8 KiB
JavaScript
349 lines
No EOL
9.8 KiB
JavaScript
function defineLevels(){
|
|
levelparts = [
|
|
[
|
|
'.....................'
|
|
,'.....................'
|
|
,'.....................'
|
|
,'.###.................'
|
|
,'.###.................'
|
|
,'.###.................'
|
|
,'.###.................'
|
|
,'.###.................'
|
|
,'.###.................'
|
|
,'.###.................'
|
|
,'.###.................'
|
|
,'.###.................'
|
|
,'.###.................'
|
|
,'.##########..........'
|
|
,'.##########..........'
|
|
,'.####################'
|
|
,'.####################'
|
|
,'.####################'
|
|
,'.####################'
|
|
,'.####################'
|
|
,false, '5n', 1, 1, 0 // What type of connection it has left, right, the minimum level it appears, the maximum, and the rarity
|
|
],
|
|
[
|
|
'...................'
|
|
,'...................'
|
|
,'...................'
|
|
,'...................'
|
|
,'...................'
|
|
,'...................'
|
|
,'...................'
|
|
,'...................'
|
|
,'...................'
|
|
,'...................'
|
|
,'...................'
|
|
,'...................'
|
|
,'...................'
|
|
,'...................'
|
|
,'...................'
|
|
,'###################'
|
|
,'###################'
|
|
,'###################'
|
|
,'###################'
|
|
,'###################'
|
|
,'5n', '5n', 1, 50, 2 // What type of connection it has left, right, the minimum level it appears, the maximum, and the rarity
|
|
],
|
|
[
|
|
'...................'
|
|
,'...................'
|
|
,'...................'
|
|
,'...................'
|
|
,'...................'
|
|
,'...................'
|
|
,'...................'
|
|
,'...................'
|
|
,'...................'
|
|
,'...................'
|
|
,'................###'
|
|
,'................###'
|
|
,'.....########...###'
|
|
,'.....########...###'
|
|
,'.....###........###'
|
|
,'########...########'
|
|
,'########...########'
|
|
,'###################'
|
|
,'###################'
|
|
,'###################'
|
|
,'5n', '10n', 2, 10, 10
|
|
],
|
|
[
|
|
'...................'
|
|
,'...................'
|
|
,'...................'
|
|
,'...................'
|
|
,'...................'
|
|
,'...................'
|
|
,'...................'
|
|
,'...................'
|
|
,'...................'
|
|
,'................##.'
|
|
,'######..........##.'
|
|
,'######.............'
|
|
,'######....###......'
|
|
,'##........###......'
|
|
,'##.E......###......'
|
|
,'###################'
|
|
,'###################'
|
|
,'###################'
|
|
,'###################'
|
|
,'###################'
|
|
,'10n', '5n', 2, 15, 7
|
|
],
|
|
[
|
|
'...................'
|
|
,'...................'
|
|
,'...................'
|
|
,'...................'
|
|
,'...................'
|
|
,'...................'
|
|
,'...................'
|
|
,'...................'
|
|
,'...................'
|
|
,'...................'
|
|
,'###################'
|
|
,'###################'
|
|
,'###################'
|
|
,'##.................'
|
|
,'##.................'
|
|
,'###################'
|
|
,'###################'
|
|
,'###################'
|
|
,'###################'
|
|
,'###################'
|
|
,'10n', '10g3', 2, 15, 5
|
|
],
|
|
[
|
|
'...................'
|
|
,'...................'
|
|
,'...................'
|
|
,'...................'
|
|
,'...................'
|
|
,'...................'
|
|
,'...................'
|
|
,'...................'
|
|
,'...................'
|
|
,'...................'
|
|
,'###.......#########'
|
|
,'#####.....#########'
|
|
,'#######...#########'
|
|
,'................###'
|
|
,'................###'
|
|
,'###################'
|
|
,'###################'
|
|
,'###################'
|
|
,'###################'
|
|
,'###################'
|
|
,'10g3', '10n', 2, 15, 15
|
|
],
|
|
[
|
|
'...................'
|
|
,'...................'
|
|
,'...................'
|
|
,'...................'
|
|
,'...................'
|
|
,'...................'
|
|
,'...................'
|
|
,'...................'
|
|
,'...................'
|
|
,'...................'
|
|
,'###................'
|
|
,'###................'
|
|
,'#######............'
|
|
,'###................'
|
|
,'###................'
|
|
,'###################'
|
|
,'###################'
|
|
,'###################'
|
|
,'###################'
|
|
,'###################'
|
|
,'10n', '5n', 2, 15, 6
|
|
],
|
|
[
|
|
'...................'
|
|
,'...................'
|
|
,'...................'
|
|
,'...................'
|
|
,'...................'
|
|
,'...................'
|
|
,'...................'
|
|
,'...................'
|
|
,'...................'
|
|
,'...................'
|
|
,'###################'
|
|
,'###################'
|
|
,'###################'
|
|
,'###################'
|
|
,'###################'
|
|
,'###################'
|
|
,'###################'
|
|
,'###################'
|
|
,'###################'
|
|
,'###################'
|
|
,'10n', '10n', 2, 15, 3
|
|
],
|
|
[
|
|
'...................'
|
|
,'...................'
|
|
,'...................'
|
|
,'...................'
|
|
,'...................'
|
|
,'...................'
|
|
,'...................'
|
|
,'...................'
|
|
,'...................'
|
|
,'...................'
|
|
,'####wwwwwwwwww#####'
|
|
,'####wwwwwwwwww#####'
|
|
,'#######wwwwwww#####'
|
|
,'#######wwwwwww#####'
|
|
,'###################'
|
|
,'###################'
|
|
,'###################'
|
|
,'###################'
|
|
,'###################'
|
|
,'###################'
|
|
,'10n', '10n', 2, 15, 10
|
|
],
|
|
[
|
|
'...................'
|
|
,'...................'
|
|
,'...................'
|
|
,'...................'
|
|
,'...................'
|
|
,'...................'
|
|
,'...................'
|
|
,'...................'
|
|
,'...................'
|
|
,'...................'
|
|
,'...................'
|
|
,'.........E.........'
|
|
,'......#######......'
|
|
,'......#######......'
|
|
,'......#######......'
|
|
,'###################'
|
|
,'###################'
|
|
,'###################'
|
|
,'###################'
|
|
,'###################'
|
|
,'5n', '5n', 2, 15, 4
|
|
],
|
|
[
|
|
'...................'
|
|
,'...................'
|
|
,'...................'
|
|
,'...................'
|
|
,'...................'
|
|
,'...................'
|
|
,'...................'
|
|
,'...................'
|
|
,'...................'
|
|
,'...................'
|
|
,'...................'
|
|
,'...................'
|
|
,'...................'
|
|
,'....###########....'
|
|
,'....###########....'
|
|
,'###################'
|
|
,'###################'
|
|
,'###################'
|
|
,'###################'
|
|
,'###################'
|
|
,'5n', '5n', 2, 15, 6
|
|
],
|
|
[
|
|
'...................'
|
|
,'...................'
|
|
,'...................'
|
|
,'...................'
|
|
,'...................'
|
|
,'...................'
|
|
,'...................'
|
|
,'...................'
|
|
,'...................'
|
|
,'....###.......###..'
|
|
,'....#####.....#####'
|
|
,'....#####.....#####'
|
|
,'...................'
|
|
,'...................'
|
|
,'...................'
|
|
,'########....#######'
|
|
,'########xxxx#######'
|
|
,'###################'
|
|
,'###################'
|
|
,'###################'
|
|
,'5n', '5n', 2, 15, 5
|
|
],
|
|
[
|
|
'...................'
|
|
,'...................'
|
|
,'...................'
|
|
,'...................'
|
|
,'...................'
|
|
,'...................'
|
|
,'...................'
|
|
,'...................'
|
|
,'...................'
|
|
,'...................'
|
|
,'...................'
|
|
,'...................'
|
|
,'...................'
|
|
,'...................'
|
|
,'...................'
|
|
,'###################'
|
|
,'###################'
|
|
,'###################'
|
|
,'###################'
|
|
,'###################'
|
|
,'5n', '5n', 2, 15, 3
|
|
],
|
|
[
|
|
'...................'
|
|
,'...................'
|
|
,'...................'
|
|
,'...................'
|
|
,'...................'
|
|
,'...................'
|
|
,'...................'
|
|
,'...................'
|
|
,'...................'
|
|
,'...................'
|
|
,'...................'
|
|
,'...................'
|
|
,'...................'
|
|
,'...................'
|
|
,'...................'
|
|
,'######xxxxxxx######'
|
|
,'###################'
|
|
,'###################'
|
|
,'###################'
|
|
,'###################'
|
|
,'5n', '5n', 2, 15, 10
|
|
],
|
|
[
|
|
'......................................'
|
|
,'......................................'
|
|
,'......................................'
|
|
,'......................................'
|
|
,'......................................'
|
|
,'......................................'
|
|
,'......................................'
|
|
,'......................................'
|
|
,'......................................'
|
|
,'......................................'
|
|
,'..............#######...##############'
|
|
,'..............###...........##.......#'
|
|
,'.........########...........##.......#'
|
|
,'.........##.........#####...####..####'
|
|
,'.........##.........#####..........###'
|
|
,'###########....##########..........###'
|
|
,'###########....#######################'
|
|
,'######################################'
|
|
,'######################################'
|
|
,'######################################'
|
|
,'5n', '10n', 2, 15, 20
|
|
]
|
|
];
|
|
} |