Skip to content

Instantly share code, notes, and snippets.

@henriquelalves
Created August 7, 2024 08:31
Show Gist options
  • Save henriquelalves/1b0eaf3479fcce603ec777def50a9bc7 to your computer and use it in GitHub Desktop.
Save henriquelalves/1b0eaf3479fcce603ec777def50a9bc7 to your computer and use it in GitHub Desktop.
SokoRGBan (PuzzleScript Script)
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
title SokoRGBan
author Perons [twitch.tv/peronstv]
homepage perons.itch.io
========
OBJECTS
========
Background
#aaaaaa
Wall
#444444
Player
BLACK
.000.
.000.
00000
.000.
.0.0.
CrateRed
red
00000
00000
0...0
0...0
00000
CrateBlue
blue
00000
00000
0...0
0...0
00000
CrateGreen
green
00000
00000
0...0
0...0
00000
CrateMagenta
#bb00bb
00000
00000
0...0
0...0
00000
CrateLightBlue
#00ffff
00000
00000
0...0
0...0
00000
CrateYellow
#dddd00
00000
00000
0...0
0...0
00000
TargetRed
red
.....
.....
.000.
.000.
.....
TargetGreen
green
.....
.....
.000.
.000.
.....
TargetBlue
blue
.....
.....
.000.
.000.
.....
TargetMagenta
#bb00bb
.....
.....
.000.
.000.
.....
TargetLightBlue
#00ffff
.....
.....
.000.
.000.
.....
TargetYellow
#dddd00
.....
.....
.000.
.000.
.....
Priority1
transparent
Priority2
transparent
Priority3
transparent
Priority4
transparent
Priority5
transparent
=======
LEGEND
=======
. = Background
# = Wall
P = Player
R = CrateRed
G = CrateGreen
B = CrateBlue
M = TargetMagenta
C = TargetLightBlue
Y = TargetYellow
E = TargetRed
F = TargetGreen
D = TargetBlue
Crate = CrateRed or CrateBlue or CrateGreen or CrateMagenta or CrateLightBlue or CrateYellow
Priorities = Priority1 or Priority2 or Priority3 or Priority4 or Priority5
=======
SOUNDS
=======
EndLevel 23241900
Player Move 72996702
sfx0 42199300
ShowMessage 707107
================
COLLISIONLAYERS
================
Background
priorities
TargetRed
TargetGreen
TargetBlue
TargetMagenta
TargetLightBlue
TargetYellow
Player, Wall, CrateRed, CrateBlue, CrateGreen, CrateMagenta, CrateLightBlue, CrateYellow
======
RULES
======
[ > Player | Crate ] -> [ > Player | > crate]
[ > CrateRed | CrateGreen ] -> [ | CrateYellow] sfx0
[ > CrateGreen | CrateRed ] -> [ | CrateYellow] sfx0
[ > CrateRed | CrateBlue ] -> [ | CrateMagenta] sfx0
[ > CrateBlue | CrateRed ] -> [ | CrateMagenta] sfx0
[ > CrateGreen | CrateBlue ] -> [ | CrateLightBlue] sfx0
[ > CrateBlue | CrateGreen ] -> [ | CrateLightBlue] sfx0
(Priority2)
[ > Crate no priorities | Crate ] -> [ > Crate Priority1 | > Crate Priority2 ]
( [ > CrateRed Priority1 | CrateGreen ] -> [ | stationary CrateYellow] )
( [ > CrateGreen Priority1 | CrateRed ] -> [ | stationary CrateYellow] )
( [ > CrateRed Priority1 | CrateBlue ] -> [ | stationary CrateMagenta] )
( [ > CrateBlue Priority1 | CrateRed ] -> [ | stationary CrateMagenta] )
( [ > CrateGreen Priority1 | CrateBlue ] -> [ | stationary CrateLightBlue] )
( [ > CrateBlue Priority1 | CrateGreen ] -> [ | stationary CrateLightBlue] )
[ > CrateRed Priority2 | CrateGreen ] -> [ | stationary CrateYellow] sfx0
[ > CrateGreen Priority2 | CrateRed ] -> [ | stationary CrateYellow] sfx0
[ > CrateRed Priority2 | CrateBlue ] -> [ | stationary CrateMagenta] sfx0
[ > CrateBlue Priority2 | CrateRed ] -> [ | stationary CrateMagenta] sfx0
[ > CrateGreen Priority2 | CrateBlue ] -> [ | stationary CrateLightBlue] sfx0
[ > CrateBlue Priority2 | CrateGreen ] -> [ | stationary CrateLightBlue] sfx0
(Priority3)
[ > Crate Priority2 | Crate ] -> [ > Crate Priority2 | > Crate Priority3 ]
[ > CrateRed Priority3 | CrateGreen ] -> [ | stationary CrateYellow] sfx0
[ > CrateGreen Priority3 | CrateRed ] -> [ | stationary CrateYellow] sfx0
[ > CrateRed Priority3 | CrateBlue ] -> [ | stationary CrateMagenta] sfx0
[ > CrateBlue Priority3 | CrateRed ] -> [ | stationary CrateMagenta] sfx0
[ > CrateGreen Priority3 | CrateBlue ] -> [ | stationary CrateLightBlue] sfx0
[ > CrateBlue Priority3 | CrateGreen ] -> [ | stationary CrateLightBlue] sfx0
(Priority4)
[ > Crate Priority3 | Crate ] -> [ > Crate Priority3 | > Crate Priority4 ]
[ > CrateRed Priority4 | CrateGreen ] -> [ | stationary CrateYellow] sfx0
[ > CrateGreen Priority4 | CrateRed ] -> [ | stationary CrateYellow] sfx0
[ > CrateRed Priority4 | CrateBlue ] -> [ | stationary CrateMagenta] sfx0
[ > CrateBlue Priority4 | CrateRed ] -> [ | stationary CrateMagenta] sfx0
[ > CrateGreen Priority4 | CrateBlue ] -> [ | stationary CrateLightBlue] sfx0
[ > CrateBlue Priority4 | CrateGreen ] -> [ | stationary CrateLightBlue] sfx0
(Priority5)
[ > Crate Priority4 | Crate ] -> [ > Crate Priority4 | > Crate Priority5 ]
[ > CrateRed Priority5 | CrateGreen ] -> [ | stationary CrateYellow] sfx0
[ > CrateGreen Priority5 | CrateRed ] -> [ | stationary CrateYellow] sfx0
[ > CrateRed Priority5 | CrateBlue ] -> [ | stationary CrateMagenta] sfx0
[ > CrateBlue Priority5 | CrateRed ] -> [ | stationary CrateMagenta] sfx0
[ > CrateGreen Priority5 | CrateBlue ] -> [ | stationary CrateLightBlue] sfx0
[ > CrateBlue Priority5 | CrateGreen ] -> [ | stationary CrateLightBlue] sfx0
late [priorities] -> [ ]
==============
WINCONDITIONS
==============
all TargetMagenta on CrateMagenta
all TargetLightBlue on CrateLightBlue
all TargetYellow on CrateYellow
all TargetRed on CrateRed
all TargetGreen on CrateGreen
all TargetBlue on CrateBlue
=======
LEVELS
=======
Message Level 1
#########
#########
#d..b...#
#.......#
#.p.g..f#
#########
Message Level 2
#########
#########
#.......#
#..R....#
#.PG...Y#
#########
Message Level 3
#########
#########
#..r...m#
#.......#
#p.b.g.b#
#.......#
#....c..#
#########
Message Level 4
######
######
#y#..#
#c...#
#r...#
#b#g.#
#.#g.#
#...p#
######
Message Level 5
#########
#########
#p.#m#..#
#..r.bbc#
#..#g##.#
#.......#
#########
Message Level 6
#########
#########
#...y...#
#.#.b...#
#..rpr..#
#...g.#.#
#...m...#
#########
Message Level 7
########
########
#p.....#
#.rgr.e#
###g.#.#
###f.#.#
###y...#
########
Message Level 8
#########
#########
#p......#
#.r.g...#
#..gbg#f#
#.......#
##f.fm#.#
#########
Message Level 9
#########
#########
#...p...#
#..brg..#
##.#.#.##
#..#...##
#..efd..#
#########
Message Level 10
#########
#########
#.......#
#.p.....#
#.rgbbg.#
#..#r...#
#....####
#....####
#..myc###
#########
message Thank you for playing!
message Made live on twitch.tv/peronstv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment