Version 0.4.2

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.
This commit is contained in:
Markus Scully 2013-08-11 12:44:22 +01:00
parent ebee9b7931
commit e20e535802
7 changed files with 411 additions and 310 deletions

278
level.js
View file

@ -1,95 +1,26 @@
function defineLevels(){
levels = [
[
'################################################'
,'################################################'
,'##..............................................'
,'##..............................................'
,'##.............................##########.....##'
,'##.............................##########.....##'
,'##...................####.....................##'
,'##...................####.....................##'
,'##...........................####.............##'
,'##...........................####.............##'
,'##............................................##'
,'##..###..##........####..............###########'
,'###########........#############################'
,'################################################'
,'################################################'
,'################################################'
,'################################################'
,'################################################'
,'################################################'
,'################################################'
],
[
'#################################################'
,'#################################################'
,'#..............................................##'
,'#..............................................##'
,'##################.............................##'
,'##################....#######..................##'
,'#.....................#######..................##'
,'#................................#####.........##'
,'#................................#####.........##'
,'#.....................########.................##'
,'#.....................########.................##'
,'#............######............................##'
,'#............######............................##'
,'#......###.....................................##'
,'#.....####.....................................##'
,'#....#####.....................................##'
,'#...######xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx##'
,'#..#######xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx##'
,'#################################################'
,'#################################################'
],
[
'..................................................................................................................'
,'..................................................................................................................'
,'..................................................................................................................'
,'..................................................................................................................'
,'..................................................................................................................'
,'..................................................................................................................'
,'..................................................................................................................'
,'..................................................................................................................'
,'........####......................................................................................................'
,'........####......................................................................................................'
,'........####......................................................................................................'
,'##..............................................................................................................##'
,'##...............###.......................#####.................................###............................##'
,'##...............###............................................................................................##'
,'##...............#######........................................................................................##'
,'##################################################xxxxx###########################################################'
,'##################################################################################################################'
,'##################################################################################################################'
,'##################################################################################################################'
,'##################################################################################################################'
]
];
levelparts = [
[
'...................'
,'...................'
,'...................'
,'##.................'
,'##.................'
,'##.................'
,'##.................'
,'##.................'
,'##.................'
,'##.................'
,'##.................'
,'##.................'
,'##.................'
,'#########..........'
,'#########..........'
,'###################'
,'###################'
,'###################'
,'###################'
,'###################'
'.....................'
,'.....................'
,'.....................'
,'.###.................'
,'.###.................'
,'.###.................'
,'.###.................'
,'.###.................'
,'.###.................'
,'.###.................'
,'.###.................'
,'.###.................'
,'.###.................'
,'.##########..........'
,'.##########..........'
,'.####################'
,'.####################'
,'.####################'
,'.####################'
,'.####################'
,false, '5n', 1, 1, 0 // What type of connection it has left, right, the minimum level it appears, the maximum, and the rarity
],
[
@ -161,6 +92,121 @@ function defineLevels(){
,'###################'
,'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
],
[
'...................'
,'...................'
@ -194,10 +240,33 @@ function defineLevels(){
,'...................'
,'...................'
,'...................'
,'....###............'
,'....#####.....###..'
,'...................'
,'...................'
,'...................'
,'...................'
,'....###########....'
,'....###########....'
,'###################'
,'###################'
,'###################'
,'###################'
,'###################'
,'5n', '5n', 2, 15, 6
],
[
'...................'
,'...................'
,'...................'
,'...................'
,'...................'
,'...................'
,'...................'
,'...................'
,'...................'
,'....###.......###..'
,'....#####.....#####'
,'..............#####'
,'....#####.....#####'
,'...................'
,'...................'
,'...................'
,'########....#######'
@ -228,7 +297,30 @@ function defineLevels(){
,'###################'
,'###################'
,'###################'
,'5n', '5n', 2, 15, 2
,'5n', '5n', 2, 15, 3
],
[
'...................'
,'...................'
,'...................'
,'...................'
,'...................'
,'...................'
,'...................'
,'...................'
,'...................'
,'...................'
,'...................'
,'...................'
,'...................'
,'...................'
,'...................'
,'######xxxxxxx######'
,'###################'
,'###################'
,'###################'
,'###################'
,'5n', '5n', 2, 15, 10
],
[
'......................................'