Skip to content

Instantly share code, notes, and snippets.

@Stingby12
Created June 16, 2021 19:54
Show Gist options
  • Save Stingby12/04858939fab10c7f0f38e3ad39c8e426 to your computer and use it in GitHub Desktop.
Save Stingby12/04858939fab10c7f0f38e3ad39c8e426 to your computer and use it in GitHub Desktop.
Path lines Extanded (PuzzleScript Script)
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
title Path lines Extanded
author Omen777 {Original by Rosden Shadow}
homepage rosden.itch.io
run_rules_on_level_Start
(Ctrl + F "rosden-" to see all my comments)
(rosden- smoother animation)
again_interval 0.2
background_color #423D39
text_color #FFD9FC
========
OBJECTS
========
Background
#423D39 #5B4846
00000
01010
00100
01010
00000
BackgroundStop
#423D39 #5B4846
00100
01110
11011
01110
00100
pathline
#E0AAF2 #FFD9FC
00000
01010
00100
01010
00000
pathlineStop
#E0AAF2 #FFD9FC
00100
01110
11011
01110
00100
Target
#847A5C #E5C17E
.....
.010.
.1.1.
.010.
.....
Wall
#A87EE5 #E0AAF2 #705C84 #42393C
20001
20001
22220
23232
32323
overwall
#A87EE5 #E0AAF2 #705C84 #42393C
.....
.....
.....
01111
20001
LightWall
#E5C17E #F2F2AA #847A5C #5B5746
20001
20001
22220
23232
32323
overlightwall
#E5C17E #F2F2AA #847A5C #5B5746
.....
.....
.....
01111
20001
Normalright
#F3FFD9 #BCE57E #A87EE5 #705C84
.000.
11202
11313
11110
.1.1.
Normalleft
#F3FFD9 #BCE57E #A87EE5 #705C84
.000.
20211
31311
01111
.1.1.
Creatureleft
#A87EE5 #705C84 #F2F2AA #E5C17E
.000.
11202
11313
11110
.1.1.
Creatureright
#A87EE5 #705C84 #F2F2AA #E5C17E
.000.
20211
31311
01111
.1.1.
LightCrate
#E5C17E #F2F2AA #847A5C #5B5746
20011
20001
22001
32223
.333.
overlightcrate
#E5C17E #F2F2AA #847A5C #5B5746
.....
.....
.....
.....
.111.
crate
#7EE58D #D9FFDC #5C8466 #4F5B46
20011
20001
22001
32223
.333.
overcrate
#7EE58D #D9FFDC #5C8466 #4F5B46
.....
.....
.....
.....
.111.
swapcrate
Orange Yellow
00000
0...0
0...0
0...0
00000
swapwall
black
.....
.....
.....
.....
.....
thefloor
#423D39
00000
00000
00000
00000
00000
stopper
black
.....
.....
.....
.....
.....
shiftright
black
.....
.....
.....
.....
.....
shiftup
black
.....
.....
.....
.....
.....
shiftdown
black
.....
.....
.....
.....
.....
shiftleft
black
.....
.....
.....
.....
.....
EyeOfLight
#E5C17E #F2F2AA #847A5C #5B5746 #7EE58D #5C8466
0.1.1
.011.
24541
.322.
3.3.2
EyeCollect
#E5C17E #F2F2AA #847A5C #5B5746
.1.1.
2.0.1
.0.0.
2.0.1
.2.2.
EyeCollect2
#E5C17E #F2F2AA #847A5C #5B5746
..1..
.0.1.
2.0.1
.2.0.
..2..
EyeCollect3
#E5C17E #F2F2AA #847A5C #5B5746
.....
..0..
.0.0.
..0..
.....
EyeCollect4
#E5C17E #F2F2AA #847A5C #5B5746
.....
.....
..0..
.....
.....
(rosden- attempting animation)
playerani
#F3FFD9 #BCE57E #A87EE5 #705C84
.000.
11202
11313
11110
.1.1.
animoveright
transparent
animoveup
transparent
=======
LEGEND
=======
. = Background and stopper
x = BackgroundStop and stopper
# = Wall
& = LightWall
P = Normalright
L = Normalright and BackgroundStop and stopper
R = Creatureleft
E = Creatureleft and BackgroundStop and stopper
* = LightCrate
@ = LightCrate and Target
O = Target
c = crate
+ = crate and Target
- = thefloor
0 = EyeOfLight
(rosden- attempting animation)
Y= playerani and animoveright
1 = animoveright
2 = animoveup
t = LightCrate and animoveup
m = LightCrate and animoveright
feel=overwall or overlightwall or overcrate or overLightcrate
pushable=LightCrate or crate or swapcrate
win=LightCrate or wall or crate
collect = EyeCollect or EyeCollect2 or EyeCollect3 or EyeCollect4
player = Normalright or Normalleft or Creatureleft or Creatureright
Normal = Normalright or Normalleft or playerani (rosden- added playerani)
Creature = Creatureleft or Creatureright
shift=shiftright or shiftup or shiftdown or shiftleft
safe = pathline or pathlineStop
mainlayer=player or wall or EyeOfLight or lightwall or pushable or swapwall or thefloor
=======
SOUNDS
=======
pushable MOVE 36772507
sfx0 6257504
sfx1 87155302
endlevel 74089700
sfx2 53166103
================
COLLISIONLAYERS
================
Background
BackgroundStop
pathline
pathlineStop
Target
shiftright
shiftleft
shiftup
shiftdown
collect
animoveright,animoveup
Player, Creature, Wall, LightWall, pushable,swapwall,thefloor, EyeOfLight,playerani
stopper
feel
======
RULES
======
[feel]->[]
[shift]->[]
[stopper]->[]
(rosden- attempting animation)
[playerani animoveright] ->[ right playerani animoveright]
[playerani animoveup] ->[ up playerani animoveup]
[ > Playerani | pushable ] -> [ > Playerani | > pushable ]
[right playerani animoveright| EyeOfLight] -> [playerani | EyeCollect] sfx2
[> player | EyeOfLight] -> [player | EyeCollect] sfx2
[EyeCollect] -> [EyeCollect2]
[EyeCollect2] -> [EyeCollect3]
[EyeCollect3] -> [EyeCollect4]
[EyeCollect4] -> [ ]
[Background no mainlayer] -> [background stopper]
[LightCrate]->[LightCrate shiftright shiftleft shiftup shiftdown]
[LightWall]->[LightWall shiftright shiftleft shiftup shiftdown] (Rosden- This code was missing and it fixes the bug)
right [shiftright| ]->[shiftright | shiftright]
up [shiftup| ]->[shiftup | shiftup]
down [shiftdown| ]->[shiftdown | shiftdown]
left [shiftleft| ]->[shiftleft | shiftleft]
[shift]->[shift pathline]
[pathline stopper] -> [pathline]
[shift BackgroundStop]->[shift pathlinestop]
[pathlinestop stopper] -> [pathlinestop]
[ > Player | pushable ] -> [ > Player | > pushable ]
[ > pushable | mainlayer ] -> [ pushable | mainlayer ] sfx0
[ > pushable | BackgroundStop ] -> [pushable | BackgroundStop] sfx0
[ > pushable | pathlineStop ] -> [pushable | pathlineStop] sfx0
[> Normal | stopper] -> [ Normal | stopper]
[> Normal | pushable no safe] -> [Normal |< pushable no safe]
[> Normal | Creature no safe] -> [Normal |> Creature no safe]
(late [Normal no safe] -> [no safe] sfx1) (Rosden- where the bug was)
[ left Normalright] -> [ left Normalleft]
[ right Normalleft] -> [ right Normalright]
[ right Creatureright] -> [ right Creatureleft]
[ left Creatureleft] -> [ left Creatureright]
(-------------------)
late [shift]->[]
late [stopper]->[]
late [pathline]->[Background]
late [pathlineStop]->[BackgroundStop]
late [LightCrate]->[LightCrate shiftright shiftleft shiftup shiftdown]
late [lightWall]->[LightWall shiftright shiftleft shiftup shiftdown]
late right [shiftright| ]->[shiftright | shiftright]
late up [shiftup| ]->[shiftup | shiftup]
late down [shiftdown| ]->[shiftdown | shiftdown]
late left [shiftleft| ]->[shiftleft | shiftleft]
late [shift]->[shift pathline]
late [pathline stopper] -> [pathline]
late [shift BackgroundStop]->[shift pathlinestop]
late [pathlinestop stopper] -> [pathlinestop]
late [Normal no safe] -> [no safe] sfx1 ( Rosden- This code has to be later to let the lights die first before you check they are dead)
(you could with the code avoid dying altogether though movement by placing an object before the check and if the check happens teleport you back to the original position if that area is safe, and you destroy that object at the end of each turn)
(------------------)
late up [wall| ]-> [wall|overwall]
late up [lightwall| ]-> [lightwall|overlightwall]
late up [LightCrate| ]-> [LightCrate|overLightCrate]
late up [Crate| ]-> [Crate|overCrate]
(rosden- the key to animation)
[]-> again
==============
WINCONDITIONS
==============
All Target on win
Some Normal
No EyeOfLight
No collect
=======
LEVELS
=======
message IMPORTANT NOTE
message This is an extanded version of Path lines by Rosden Shadow.
message The new levels and objects are created by me and the entire game is not meant to be a pirated copy.
message Thank you.
message Cover up all targets with blocks.
message Level 1 | Light block
--------
########
#p*...o#
########
message You may have noticed a weird light on the ground.
message Level 2 | Light block
--------
########
#......#
#p*...o#
#......#
########
message This is the safe arena.
message Don't go deeper in the darkness.
message Level 3 | Light block
---------
#########
#.......#
#p.*..o.#
#.......#
#.o..*..#
#.......#
#########
message Level 4 | Light block
--------
-######-
##..*.##
#......#
#......#
#......#
#..*...#
#......#
#...o..#
##.p..##
-######-
message Level 5 | Light block
--------
-######-
##....##
#......#
#......#
#...*..#
#..*...#
#.o....#
#....o.#
##.p..##
-######-
message Level 6 | Light block
---------
-#######-
##.....##
#..p....#
#.**.**.#
#.......#
#...o...#
#...o...#
#...o...#
##.....##
-#######-
message Level 7 | Light block
---------
-#######-
##.....##
#..p....#
#..***..#
#.......#
#.......#
#.o.@.o.#
#.......#
##.....##
-#######-
message Don't worry about the walls.
message The light can go through them.
message Level 8 | Light block
-------------
##########---
#....#p..####
#....#*..#..#
#.*..#......#
#....*...##.#
#........##o#
#........####
##########---
message Level 9 | Light block
-------------
##########---
#..*.#...####
#....#.o....#
#.*..#......#
#........#*.#
#......o.#p.#
#........####
##########---
message Level 10 | Light block
-------
#######
#o....#
#.....#
#o....#
##...##
##**###
#..*..#
#..p.o#
##...##
-#####-
message Level 11 | Light block
---------------
###############
#...#..o..#...#
#....*.#.*....#
#...#..o..#...#
#.p.*..#..*...#
#...#..o..#...#
#....*.#.*....#
#...#..o..#...#
###############
message It's pretty shiny here.
message Do you see the walls ?
message Level 12 | Light block, Light wall
-----------
######&####
#.........#
#p.*......#
#.........#
#..o......#
#.........#
########&##
message They emit light too.
message You can see from the color.
message Level 13 | Light block, Light wall
----------
#&&#####--
#......###
#.......o#
#......###
#...*..#--
#p..*..#--
#......###
#.......o#
#......###
########--
message Level 14 | Light block, Light wall
-------
#######
#.....#
#....o#
&..*..&
#.....#
&o.*..&
#.....#
&..*..&
#....o#
#..p..#
#######
message The speed of light in this place is very high.
message In fact, the speed is so high that no wall nor flesh can stop him.
message Don't worry, it's not deadly.
message Level 15 | Light block, Light wall
---------
##&#&#&##
#.......#
#..p....#
#o.....o#
#####...#
#..*....#
#....*..#
#.......#
#.......#
#########
message Level 16 | Light block, Light wall
----------
###&##&###
#........#
#.*....*.#
&..#o.#..&
#..o.....#
#.....o..#
&..#.o#..&
#.*.p..*.#
#........#
###&##&###
message I hope this one is possible...
message Level 17 | Light block, Light wall
------------
#&####------
#....#######
#.....p....#
#....*@@o..#
#..........#
#....#######
#&####------
message No all targets must have a light block on it.
message Here is a normal block, for a proof.
message Level 18 | Light block, Normal block
---------
#########
#.......#
#...p...#
#o.**c.o#
#.......#
#.......#
#########
message Level 19 | Light block, Normal block
--------
########
#......#
#.*..o.#
#.o....#
#....c.#
#p*..o.#
#......#
########
message You can still push the normal blocks out of the light.
message But you can't push them when they are in the darkness.
message Level 20 | Light block, Normal block
--------
########
#......#
#......#
#......#
#op.c.o#
#....*.#
#.*....#
#......#
########
message Level 21 | Light block, Normal block
---------
#########
#.......#
#...o...#
#...o...#
#...o...#
#...*...#
#...c...#
#p..*...#
#.......#
#########
message Level 22 | Light block, Normal block
(this one is actually possible)
-----------
###########
#.........#
#.........#
#p.*...o..#
#..c...o..#
#..*...o..#
#.........#
#.........#
###########
message Hold on, I was talking about speed of light...
message Level 23 | Light block, Light wall, Normal block
------------
############
#..........#
&.p.*..o...#
#........o.#
#.c........#
&...o..*...#
#..........#
############
message The photons emited from the light blocks are the strongest.
message But their speed is so fast that they never curve.
message Never once.
message Level 24 | Light block, Light wall, Normal block
----------------
#&&####&&#-##&&#
#........#-#...#
#.p......#-#...#
#.......*###...#
#.*.###......c.#
#...#-#........#
#ooo#-#........#
#&&##-#&&####&&#
message These kind of photons is never found anywhere.
message Level 25 | Light block, Light wall, Normal block
-----------------
#&#&#-##&##-#&#&#
#...#-#...#-#...#
#...###...###.*.#
#....#.....#....#
#.o..+..@..+..o.#
#....#.....#....#
#.*.###...###...#
#.p.#-#...#-#...#
##&##-#&#&#-##&##
message Level 26 | Light block, Light wall, Normal block
-----------
##&##&##&##
#.........#
&.........&
#..cococ..#
#..o*o*o..#
&..cococ..&
#..o*o*o..#
#..cococ..#
&.........&
#...p.....#
##&##&##&##
message Look out !
message You almost tripped.
message Level 27 | Light block, Ground stopper, Normal block
--------
####----
#..#----
#*.#----
#..#####
#o@xc.o#
#..#####
#..#----
#p.#----
####----
message Something seems off with the ground.
message Level 28 | Light block, Ground stopper
---------
#########
#.......#
#.x..*x.#
#.......#
#.o*x.o.#
#.......#
#.x.p*x.#
#.......#
#########
message You can't push them on these tiles.
message Level 29 | Light block, Ground stopper
#############
#.....x.....#
#..o..x.....#
#..x..*..x..#
#.px..@..x..#
#..x..*..x..#
#.....x..o..#
#.....x.....#
#############
message Level 30 | Light block, Ground stopper
-----------
###########
#.........#
#.xox*x.x.#
#.....o.*.#
#.x.x.x.x.#
#....p....#
#.x.x.x.x.#
#.*.o.....#
#.x.x*xox.#
#.........#
###########
message Level 31 | Light block, Light wall, Ground stopper
-------------
#############
&...x.o.....&
&.p.x.......&
#...x...x...#
#.*.x...x.*.#
#...x...x...#
&.......x...&
*.....o.x...&
#############
message Level 32 | Light block, Light wall, Ground stopper
------------
###&####&###
#xxxx##xxxx#
#x........x#
&x.*....*.x&
#x..x.ox..x#
##..o.....##
##.....o..##
#x..xo.x..x#
&x.*.p..*.x&
#x........x#
#xxxx##xxxx#
###&####&###
message Use the light blocks and make sure one of the two blocks is lining up to the normal one.
message Then push the light blocks to their targets.
message Level 33 | Light block, Ground stopper, Normal block
-----------
########---
#xxxxxx#---
#x..@.x##--
#x....x####
#x....xc.o#
#l@...x####
#xxxxxx##--
########---
message Level 34 | Light block, Ground stopper, Normal block
------------
#########---
#xxxxxxx#---
#x.....x#---
#x..@..x##--
#x..x@.x####
#x.....xc.o#
#x@....x####
#xlxxxxx##--
#########---
message Level 35 | Light block, Ground stopper, Normal block
--------------
############--
#xxxx#xxxx####
#x...#...xc.o#
#x.o.#...x####
#x*..#...x##--
#x.......x#---
#x...#...x#---
#x.o.#.*.x#---
#x.*.#...x#---
#xxlx#xxxx#---
###########---
message You hear footsteps...
message Level 36 | Light wall, Normal block, Creature
(I had to replace the light wall with a light block since the player dies just before the light wall could light up the player)
(if you found a way to fix this, this would be very helpfull)
(rosden- should be fixed)
----------
#######&##
#.r..#.o.#
#....#...#
#....#...#
#...r#...#
#r...#...#
#..r.#...#
#....#.c.#
#.r..#.p.#
##########
message Oh look, it's the others that failed the challege of this dungeon.
message Why don't you give them a warm welcome ?
message Level 37 | Light block, Creature
--------
########
#....p.#
#.o..*.#
#....r.#
#......#
#.*..o.#
#......#
########
message Level 38 | Light block, Creature
--------
########
#......#
#.*.po.#
#......#
#......#
#.o..*.#
#......#
#......#
#.*r.o.#
#......#
########
message I'm sorry, I forgot to mention another one of this dungeon's powers...
message A transformative one.
message Level 39 | Light block, Normal block, Creature
(had to make a S because of a dumb bug)
(if you found a way to fix this, this would be very helpfull)
(rosden- bug required 1 line of extra code that was missed)
--------------
#######-------
#.....#--#####
#..@..#--#.co#
#.....#--#.###
#.....#--#...#
#.....#--###.#
#..@..#--#p..#
#..r..#--#####
#######-------
message Remember when I told you not to go deeper in the darkness ?
message This is what happened to the idiots that didn't followed the rules.
message Level 40 | Light block, Normal block, Creature
----------
---####---
--##..###-
###.....#-
#....*#.#-
#.*.#...#-
#...r..##-
########--
----------
-#######--
-#p#...###
-#...#.co#
-#########
message They didn't listened to me.
message Now they must accept their fate.
message Level 41 | Light block, Ground stopper, Normal block, Creature
----------------------
######################
#xxxx##........#xx#xx#
#x.o.##......o.#x.o.x#
#x...x#........#x...x#
#x.r.x#........#x.r.x#
#x...x#...c....#x...x#
#x...x#........##...x#
#x.*.x#.p......##.*.##
####xx#........##xxx##
######################
message This has never happened to you, right ?
message Level 42 | Light block, Normal block, Creature
------------------------
-#######-######-########
-#.....#-#....#-#......#
-#.oco.#-#....#-#.o++*r#
##.cr*.#-#..p.#-#......#
#..oco.#-#....#-#####..#
#......#-#....#-----####
########-######---------
message Level 43 | Light block, Light wall, Normal block, Creature
-------------
##&###&###&##
#...#...#...#
#.o.#.*.#.r.#
#...#...#...#
#...#...#...#
#...+.p.+...#
#...#...#...#
#...#...#...#
#.r.#.*.#.o.#
#...#...#...#
##&###&###&##
message Level 44 | Light block, Normal block, Creature
---------------
########-###---
#.c.c.c#-#o#---
#c.*.c.#-#c###-
#.c.c.c#-#...#-
#c.crc.#-###.#-
#.c.*.c#-#p..#-
#c.c.c.#-#####-
########-------
message You are almost there.
message Level 45 | Light wall, Normal block, Creature
---------
--#####--
-#&*&&&#-
#&rrrrr&#
#&rcoor&#
#&rpocr&#
#&rccor&#
#&rrrrr&#
-#&&&&&#-
--#####--
message Level 46 | Light block, Ground stopper, Normal block, Creature
--------------
##############
#xxxx#xxxxxxx#
#e.........*x#
#xxxxxxxx#xxx#
##############
--------------
-######-###&#-
-#....###...#-
-#.cc.....#p#-
-#.c.#ooo...#-
-#...######&#-
-#####--------
--------------
##############
#xxxxxxxxxxxx#
#x*.........e#
###xxxxxxxx###
--##########--
message I'm running out of ideas so here is a level that already exist.
message Level 47 | Light block, Light wall
#######
##...o#
#.....#
#.*...#
#..*..#
#...*.#
#o.p.o#
#.....#
####..&
---####
message Level 48 | Light block, Light wall, Normal block, Creature
---------------------------
--#####-----#####----------
###...#-----&...#----------
#.r**.#-----#p#.#-----####-
#.#...#---###oo.#-----#..#-
#.###.#--##.....#--####..##
#...o.##-#..c#..#-##.*.*..#
####o..#-#.c.####-#.r.*...#
---#...#-#..##----#ooo#####
---#####-####-----#####----
message Level 49 | Light block, Ground stopper, Normal block, Creature
(this might be the hardest puzzle I ever made)
---------------
----#######----
-##-#xxexx#-##-
-#--#..c..#--#-
----#.....#----
#######@#######
#x..#..o..#..x#
#x..#.....#..x#
#ec.@o.l.o@.ce#
#x..#.....#..x#
#x..#..o..#..x#
#######@#######
----#.....#----
-#--#..c..#--#-
-##-#xxexx#-##-
----#######----
message Level 50 | Light block
-----------------
#################
#...............#
#...............#
#..@@*.o*o.o@@..#
#..o.@.o*o.@.*..#
#..@@*..@..o@@..#
#..o.@.*o*.@.*..#
#..@@*.*o*.o@@..#
#.......p.......#
#...............#
#################
message Thank you.
message I will give you the prise you deserve.
message Congratulations for completing all of the levels, and thank you for entering this dungeon.
(I tried animating the collection but I didn't worked out well...)
(rosden- creating animation attempt)
--------------
--##########--
--#........#--
--#..10....#--
--#..2.....#--
--##.2....##--
####.t....####
#Ym112.......#
##############
(rosden- old level)
(--------------
--##########--
--#........#--
--#...0....#--
--#........#--
--##......##--
####.*....####
#p*..........#
##############)
message Take this as a memory.
message It's too late for me now, but maybe you can use this to help others.
message
message Original by Rosden Shadow
message Extended by Omen777
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment