Mashing (PuzzleScript Script)

Home   »   Mashing (PuzzleScript Script)

Play this game by pasting the script in http://www.puzzlescript.net/editor.html
title Mashing
author unsuspiciousperson
homepage www.puzzlescript.net

realtime_interval 0.6
noundo
key_repeat_interval 10


========
OBJECTS
========

Background
yellow 

Target 
transparent red
11111
10001
10101
10001
11111

Wall 
darkgreen

Ground
darkgreen

Player 
Red Yellow BLue 
.222.
.222.
22222
.222.
.2.2. 

Spike
Grey 
..0..
.000.
00.00
.000.
..0..

Sawdisc
gray
..0..
.000.
00000
.000.
..0..

altDisc
gray
0...0
.000.
.000.
.000.
0...0

jumpcountonground
transparent

jumpcount4left
transparent

jumpcount3left
transparent

jumpcount2left
transparent

jumpcount1left
transparent

jumpcount0left
transparent


=======
LEGEND
=======

danger = Spike or Sawdisc or altDisc

jumpcount = jumpcountonground or jumpcount4left or jumpcount3left or jumpcount2left or jumpcount1left or jumpcount0left

. = Background
# = Wall
$ = Ground
P = Player and jumpcountonground
* = Spike
s = Sawdisc
ƨ = altDisc
O = Target
discs = Sawdisc and altDisc

=======
SOUNDS
=======

sfx0 7

================
COLLISIONLAYERS
================

Background
Target, Spike
Sawdisc
altDisc
Player, Wall, Ground
jumpcountonground, jumpcount4left, jumpcount3left, jumpcount2left, jumpcount1left, jumpcount0left
======
RULES 
====== 

(skipping levels)

[action Player] -> [win]

(jumping limit system, most of it at least)

[up Player] [jumpcount1left] -> [up Player] [jumpcount0left]
[up Player] [jumpcount2left] -> [up Player] [jumpcount1left]
[up Player] [jumpcount3left] -> [up Player] [jumpcount2left]
[up Player] [jumpcount4left] -> [up Player] [jumpcount3left]
[up Player] [jumpcountonground] -> [up Player] [jumpcount4left]

[up Player][jumpcount0left] -> [cancel][cancel]

(Sawdisc code)

[stationary Sawdisc][stationary Player] -> [right Sawdisc][stationary Player]
[stationary altDisc][stationary Player] -> [left altDisc][stationary Player]

[> Sawdisc|Wall] -> [ left altDisc|Wall]
[> Sawdisc|Ground] -> [left altDisc|Ground]
[> altDisc|Wall] -> [right Sawdisc|Wall]
[> altDisc|Ground] -> [right Sawdisc|Ground]

(player death)

[stationary Player danger] -> [restart]
[moving Player danger] -> [restart]

(i have no idea how or why this part of the code works)

[stationary Player] -> [down Player sfx0]
[down Player|Ground][jumpcount] -> [stationary Player|Ground][jumpcountonground]
[stationary Player] -> [down Player]

==============
WINCONDITIONS
==============

All Player on Target

======= 
LEVELS
=======

Message This is not a puzzle game.

Message Press X to skip any level.

#########
#.......#
#.......#
#.......#
#.......#
#.P.*.O.#
$$$$$$$$$

#########
#.......#
#.......#
#.......#
#...*...#
#.P.*.O.#
$$$$$$$$$

###########
##..*######
##P..*#####
##$*..*####
####*..*###
#####*..*##
######*..*#
#######*..#
########*O#
###########

Message You fall down one step every time the "metronome" strikes.

Message The levels are arranged vaugely in order of difficulty.

Message Feel free to skip and come back later.

###########
#....#....#
#...O#P...#
#...##$...#
#.........#
#.........#
#*********#

###########
#....O....#
#.........#
#.........#
#.........#
#....P....#
$$$$$$$$$$$

###########
#.........#
#....O....#
#...***...#
#.........#
#....P....#
$$$$$$$$$$$

########
#...*..#
#..*..O#
#**..*$#
#.P.*..#
#$$$####

###########
#.....*..O#
#P..*...*##
#$$$*****##

Message You have a ""jump limit"" of 4.

Message Tip: you can use both WASD and arrow keys at the same time.

###########
#....O....#
#....*....#
#.........#
#.........#
#....P....#
$$$$$$$$$$$

#########
#.......#
#...*...#
#...*...#
#.P.*.O.#
$$$$$$$$$

#################
#...............#
#...............#
#P..s......s...O#
#$$$$$$$$$$$$$$$#

#################
#......sss......#
#...............#
#P.....sss.....O#
#$$$$$$$$$$$$$$$$

###########
########..#
#P....s...#
#$$$$$$$$O#

###########
#######...#
#P..s.s...#
#$$$$$$$$O#

##################
######O#######...#
#.....s.Ps.s.....#
#$$$$$$$$$$$$$$$*#

###############
#..############
#P..ƨ.ƨ.......#
#$$$$$$O#######

###############
#..############
#P..ƨ.ƨ.ƨ.....#
#$$$$$$O#######

###########
#....O....#
#..ƨ...s..#
#..$...$..#
#.s.....ƨ.#
#.$.ƨ.s.$.#
#....P....#
#$$$$$$$$$#

###############
##.....#.....##
##s...ƨ#ƨ...s##
#P...........O#
#$$$$*****$$$$#

###############
##.....#.....##
##***.*#*.***##
#P...........O#
#$$$$*****$$$$#

#############
#...*....*.O#
#P*s..s*.s.*#
#$$$$$$$#####

#######
#..O..#
#..*..#
#.....#
#.....#
#.*P*.#
#**$**#

Message ...and that's all for now.

Leave a Reply

Your email address will not be published. Required fields are marked *