Created
September 15, 2021 18:36
-
-
Save bregehr/76a3fa807355ead8d36f42ca5394ba6a to your computer and use it in GitHub Desktop.
Test Mouse (Puzzlescript+ Script)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Play this game by pasting the script in https://auroriax.github.io/PuzzleScript/editor.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
title Test Mouse | |
author bregehr | |
homepage www.puzzlescript.net | |
sprite_size 7 | |
run_rules_on_level_start | |
mouse_left lmb | |
mouse_drag drag | |
background_color #383838 | |
(mechanics) | |
(cover up all dotted tiles) | |
(cannot move into slime twice in a row) | |
(once moved into oil, must move at least more into oil before leaving) | |
(walls like alcazar) | |
(white and black segregation) | |
(number shows amount of neighboring cells occupied by the line) | |
(hole/zero-g makes you travel in a straight line until stopped by normal ground) | |
(pushable blocks) | |
(cover up all 1 dot cells, then two, then three ect. a more restricted cover up.) | |
(ADD LINE EXIT to win level, for more interesting puzzles.) | |
(white and black embedded into blocks) | |
(white and black blocks, period.) | |
(tiles that turn into a wall when left, meaning you cannot push blocks into your line.) | |
(blocks of the same color glue together when pushed together) | |
(blocks or pieces of blocks can be nailed down so they cannot move. black and white are this by default.) | |
======== | |
OBJECTS | |
======== | |
lmb | |
transparent | |
drag | |
yellow | |
Background | |
#787878 #666666 | |
1111111 | |
1000001 | |
1000001 | |
1000001 | |
1000001 | |
1000001 | |
1111111 | |
bg1 | |
#858585 | |
bg2 | |
#8f8f8f | |
player | |
transparent | |
Wall | |
#545454 | |
lineUP | |
#d4d4d4 | |
....... | |
....... | |
....... | |
...0... | |
...0... | |
...0... | |
...0... | |
lineDOWN | |
#d4d4d4 | |
...0... | |
...0... | |
...0... | |
...0... | |
....... | |
....... | |
....... | |
lineLEFT | |
#d4d4d4 | |
....... | |
....... | |
....... | |
...0000 | |
....... | |
....... | |
....... | |
lineRIGHT | |
#d4d4d4 | |
....... | |
....... | |
....... | |
0000... | |
....... | |
....... | |
....... | |
lineStart | |
#d4d4d4 #e3e3e3 #c2c2c2 | |
..111.. | |
.10000. | |
1000002 | |
1000002 | |
1000002 | |
.00002. | |
..222.. | |
lineEnd | |
#ffffff | |
....... | |
....... | |
..000.. | |
..000.. | |
..000.. | |
....... | |
....... | |
cover | |
#317394 | |
....... | |
....... | |
..000.. | |
..0.0.. | |
..000.. | |
....... | |
....... | |
red | |
#db1438 #fc2b51 #ba0929 | |
1111111 | |
1000002 | |
1000002 | |
1000002 | |
1000002 | |
1000002 | |
1222222 | |
redgoal | |
#9e001c50 | |
used | |
transparent | |
visualUsed | |
#00000040 | |
levelstart | |
transparent | |
test | |
transparent | |
exit | |
#d4d4d4 #c2c2c2 #a19191 | |
.00100. | |
0001000 | |
0022200 | |
1122211 | |
0022200 | |
0001000 | |
.00100. | |
white | |
#ebebeb #f7f7f7 #d1d1d1 | |
1111111 | |
1000002 | |
1000002 | |
1000002 | |
1000002 | |
1000002 | |
1222222 | |
black | |
#333333 #525252 #2b2b2b | |
1111111 | |
1000002 | |
1000002 | |
1000002 | |
1000002 | |
1000002 | |
1222222 | |
failedx | |
#e00000 | |
....... | |
.0...0. | |
..0.0.. | |
...0... | |
..0.0.. | |
.0...0. | |
....... | |
nailed | |
#03030350 | |
....... | |
....... | |
....... | |
...0... | |
....... | |
....... | |
....... | |
regionUp | |
#ffe1d670 #ffe1d645 | |
0000000 | |
1111111 | |
....... | |
....... | |
....... | |
....... | |
....... | |
regionDown | |
#ffe1d670 #ffe1d645 | |
....... | |
....... | |
....... | |
....... | |
....... | |
1111111 | |
0000000 | |
regionLeft | |
#ffe1d670 #ffe1d645 | |
01..... | |
01..... | |
01..... | |
01..... | |
01..... | |
01..... | |
01..... | |
regionRight | |
#ffe1d670 #ffe1d645 | |
.....10 | |
.....10 | |
.....10 | |
.....10 | |
.....10 | |
.....10 | |
.....10 | |
colorCheckFlag | |
transparent | |
showinfo | |
transparent | |
======= | |
LEGEND | |
======= | |
. = Background | |
# = Wall | |
P = player | |
S = lineStart and lineEnd and levelstart and bg1 and player | |
, = cover | |
e = exit | |
r = red | |
q = red and cover | |
o = red and nailed | |
t = redgoal | |
u = white | |
w = white and nailed | |
i = black | |
b = black and nailed | |
region = regionUp or regionDown or regionLeft or regionRight | |
color = white or black | |
line = lineStart or lineUP or lineDOWN or lineLEFT or lineRIGHT | |
stop = used or wall or lineStart | |
blockgoal = redgoal | |
block = red or white or black | |
======= | |
SOUNDS | |
======= | |
lineEnd create 83423304 | |
================ | |
COLLISIONLAYERS | |
================ | |
Background | |
player | |
bg1, bg2 | |
Wall | |
exit | |
blockgoal | |
block | |
cover | |
nailed | |
lineUP | |
lineDOWN | |
lineLEFT | |
lineRIGHT | |
used | |
visualUsed | |
lineEnd | |
lineStart | |
regionUp | |
regionDown | |
regionLeft | |
regionRight | |
failedx | |
lmb, drag | |
levelstart | |
test | |
colorCheckFlag | |
showinfo | |
====== | |
RULES | |
====== | |
(START SETUP) | |
(Checkerboard) | |
startloop | |
[levelstart][bg1 | no bg1 no bg2] -> [levelstart][bg1 | bg2] | |
[levelstart][bg2 | no bg1 no bg2] -> [levelstart][bg2 | bg1] | |
endloop | |
[levelstart] -> [] | |
[ lmb ] -> [ ] | |
[ > player] -> cancel | |
(show/hide extra information) | |
[ action player no showinfo ] -> [ player showinfo ] | |
[ action player showinfo ] -> [ player ] | |
(for movement and other rules like blocks) | |
[ lineEnd | drag no stop ] -> [ > lineEnd | drag ] | |
(insert collisions and rigidbodies here, end movement will be erased after.) | |
[ > lineEnd | stationary block ] -> [ > lineEnd | > block ] | |
(rigidbody and collisions) | |
startloop | |
[ > block | stationary block ] -> [ > block | > block ] | |
[ moving red | stationary red ] -> [ moving red | moving red ] | |
[ moving white | stationary white ] -> [ moving white | moving white ] | |
[ moving black | stationary black ] -> [ moving black | moving black ] | |
endloop | |
(wall stopping and nail stopping) | |
[ > block | wall ] -> cancel | |
[ > block nailed ] -> cancel | |
(line creation) | |
right [ > lineEnd no lineleft | drag no stop ] -> [ lineleft | lineEnd lineright drag ] | |
left [ > lineEnd no lineright | drag no stop ] -> [ lineright | lineEnd lineleft drag ] | |
up [ > lineEnd no linedown | drag no stop ] -> [ linedown | lineEnd lineup drag ] | |
down [ > lineEnd no lineup | drag no stop ] -> [ lineup | lineEnd linedown drag ] | |
[ drag ] -> [ ] | |
(line used) | |
[used] -> [] | |
[line no used] -> [line used] | |
(line used VISUAL) | |
late [ visualUsed ] -> [] | |
late [ showinfo ][ used no block ] -> [ showinfo ][ used visualUsed ] | |
(testing if white finds black) | |
late [ lineEnd exit ][ white ][ black ][ lineStart ] -> [ lineEnd exit ][ white ][ black ][ lineStart colorCheckFlag ] | |
late [ colorCheckFlag ][ white no test ] -> [ colorCheckFlag ][ white test ] | |
startloop | |
late [ colorCheckFlag ][ test | no used no wall ] -> [ colorCheckFlag ][ test | test ] | |
late [ colorCheckFlag ][ test | color used no test ] -> [ colorCheckFlag ][ test | color used test ] | |
endloop | |
(U failed) | |
late [ test black ][ color test ] -> [ test black ][ color test failedx ] | |
late [ test black ][colorCheckFlag] -> [ test black ][] | |
(U win) | |
late [ colorCheckFlag ][ color ] -> [ colorCheckFlag ][ color colorCheckFlag ] | |
(Visual regions) | |
late [region] -> [] | |
late right [ showinfo ][ test | no test ] -> [ showinfo ][ test regionRight | ] | |
late left [ showinfo ][ test | no test ] -> [ showinfo ][ test regionLeft | ] | |
late up [ showinfo ][ test | no test ] -> [ showinfo ][ test regionUp | ] | |
late down [ showinfo ][ test | no test ] -> [ showinfo ][ test regionDown | ] | |
( | |
COLOR MECHANIC EXPLAINED | |
Used tiles divide the grid into sections. | |
In each section, there may not be white and black. | |
Tiles with white and black that are ALSO USED are considered a region tile, ie they become part of the region they | |
are next to. In other words, colors under a line allow for the flow of a region, if you imagine each region as a lake. | |
) | |
============== | |
WINCONDITIONS | |
============== | |
all cover on used | |
all exit on lineEnd | |
all redgoal on red | |
all color on colorCheckFlag | |
======= | |
LEVELS | |
======= | |
( | |
Section ideas: | |
Pry red from wall | |
Seperate stuck together white and black | |
Basic segregation | |
) | |
######### | |
#s......# | |
#.b.w.w.# | |
#.......# | |
#.b.w.b.# | |
#.......# | |
#.b.w.w.# | |
#......e# | |
######### | |
####### | |
#s...e# | |
#..u..# | |
#.iu..# | |
#.i...# | |
#.....# | |
####### | |
######### | |
#sttttte# | |
#...t...# | |
#...t...# | |
#.rrrrr.# | |
#...r...# | |
#...r...# | |
######### | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment