Skip to content

Instantly share code, notes, and snippets.

@Auroriax
Forked from anonymous/readme.txt
Last active November 7, 2019 14:16
Show Gist options
  • Save Auroriax/3829c82e27b98903772216fb78951193 to your computer and use it in GitHub Desktop.
Save Auroriax/3829c82e27b98903772216fb78951193 to your computer and use it in GitHub Desktop.
Sokobanana v2
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
title Sokobanana v2
author Tom Hermans [@Auroriax]
homepage auroriax.itch.io (I've got some other box pushing games you might like, check it out! :P)
again_interval 0.085
key_repeat_interval 0.15
background_color yellow
text_color black
noaction
run_rules_on_level_start
(V2: Fixed unintended solutions on level 3C and 4B. Thanks to Melany for pointing these out! Also added some extra animations and sounds for clarity.)
========
OBJECTS
========
Player0 P
white black
.000.
01010
.000.
.0.0.
00.00
Player90
white black
0..0.
00010
..000
00010
0..0.
Player180
white black
00.00
.0.0.
.000.
01010
.000.
Player270
white black
.0..0
01000
000..
01000
.0..0
AnimateDone
transparent
Background .
gray
00000
00000
00000
00000
00000
RoughFloor R
black
0.0.0
.0.0.
0.0.0
.0.0.
0.0.0
Banana B
yellow black
...1.
..00.
.000.
.0.00
00..0
Wall w
yellow
Box O
#0080FF
.....
.000.
.000.
.000.
.....
Pit A
Black #808080
.....
.....
.000.
.000.
.....
BigPit T
Black #808080
.....
.000.
00000
00000
.000.
Goal G
Black White
10101
01010
10101
01010
10101
DriftL
Transparent
DriftR
Transparent
DriftU
Transparent
DriftD
Transparent
Done
Transparent
BoxTarget S
lightblue
.000.
0...0
0...0
0...0
.000.
Signpost I
brown black
00000
01100
01010
..0..
..0..
One
black
.00..
..0..
..0..
..0..
..0..
Two
black
.00..
0..0.
..0..
.0...
0000.
Three
black
0000.
...0.
.000.
...0.
0000.
Four
black
..0..
.00..
0.0..
0000.
..0..
Five
black
0000.
00...
..0..
0..0.
.00..
Aye
black
0000.
0..0.
0000.
0..0.
0..0.
Bee
black
000..
0.0..
0000.
0..0.
0000.
Cee
black
0000.
0....
0....
0....
0000.
SpaceTemp |
black white
00000
00000
00000
00000
00000
Space1
black white
00000
00000
00000
00010
00000
Space2
black white
00000
00000
10000
00000
00000
Space3
black white
00100
00000
00000
00000
00000
Moon
Darkgray Gray Lightgray
.222.
21220
12120
21200
.000.
MiniTrigger
Transparent
PlayerMini0
White
.....
.000.
..0..
.000.
.....
PlayerMini90
White
.....
.0.0.
.000.
.0.0.
.....
VanishTrigger
Transparent
Star1
Yellow
.....
.....
..0..
.....
.....
Star2
Yellow
.....
..0..
.000.
..0..
.....
Star3
Yellow
..0..
..0..
00000
..0..
..0..
Star4
Yellow
..0..
..0..
00000
..0..
..0..
Star5
Yellow
..0..
..0..
00000
..0..
..0..
Star6
Yellow
..0..
..0..
00.00
..0..
..0..
Star7
Yellow
..0..
.....
0...0
.....
..0..
=======
LEGEND
=======
(Level numbers)
1 = Wall and One
2 = Wall and Two
3 = Wall and Three
4 = Wall and Four
5 = Wall and Five
[ = Wall and Aye
] = Wall and Bee
? = Wall and Cee
(Game)
Player = Player0 or Player90 or Player180 or Player270 or Star7
Drift = DriftL or DriftR or DriftU or DriftD
Obstacle = Wall or Signpost
Driftable = Player or Box
CantWalkInto = Pit or Bigpit
Y = Box and BoxTarget
} = Boxtarget and Pit
Z = Box and Banana
^ = SpaceTemp and BigPit
/ = SpaceTemp and Moon
K = SpaceTemp and VanishTrigger and Goal
J = SpaceTemp and MiniTrigger
=======
SOUNDS
=======
SFX0 70928908 (Falling down)
SFX1 96485908 (Slide)
SFX3 1461507 (Stop sliding)
SFX4 72598508 (Star)
SFX5 48186508 (Sound when hole fills up)
(Box move 59382707 )
Endlevel 96979508
(fart 5720708)
(soft bleep 52909108)
(box crashes down 2634308)
(slide? 80471308)
(alt stop slide 16789304)
================
COLLISIONLAYERS
================
Background
Banana, Goal, Pit, BigPit, RoughFloor, MiniTrigger
BoxTarget, SpaceTemp, Space1, Space2, Space3
Player0, Player90, Player180, Player270, Wall, Box, Signpost, Moon, PlayerMini0, PlayerMini90, Star1, Star2, Star3, Star4, Star5, Star6, Star7
Drift, One, Two, Three, Four, Five, Aye, Bee, Cee, VanishTrigger
Done
AnimateDone
======
RULES
======
(Debug mode skip levels)
[action player] -> [] win
(Space generation)
[SpaceTemp] -> [random Space1 random Space2 random Space3]
(Can't go into pits, but can slide over them)
[> Player | CantWalkInto] -> [ Player | CantWalkInto]
[Player Pit no Drift no Star7] -> [Pit Star1] sfx0
[Player BigPit no Drift no Star7] -> [BigPit Star1] sfx0
(Box pushing, again is used to make boxes fill up the hole right away)
[> Player | Box] -> [> Player | > Box] again
(Boxes fill up holes)
[Box Pit no Drift] -> [background] sfx5
[Box BigPit no Drift no Star7] -> [BigPit background Star1] sfx0
(Rough floors stop sliding)
[Driftable Drift Roughfloor] -> [Driftable Roughfloor]
(Signs)
up [> Player | Signpost] -> [Player | Signpost] message Slide over the peels to get to the goal. If there are boxes on the level, don't forget to push these to their designated squares. Press [Z] to undo a move, or [R] to start over the puzzle. Good luck!
(Player moves, steps on banana, slide starts)
left [left Driftable | Banana] -> [Driftable DriftL | Banana ] SFX1
right [right Driftable | Banana] -> [Driftable DriftR | Banana ] SFX1
up [up Driftable | Banana] -> [Driftable DriftU | Banana ] SFX1
down [down Driftable | Banana] -> [Driftable DriftD | Banana ] SFX1
(Drift compute)
late left [Driftable DriftL no Done | Driftable] -> [Driftable Done | DriftL Driftable] again
late left [Driftable DriftL no Done | no Obstacle] -> [ | Driftable DriftL Done] again
late left [Driftable DriftL Done | Obstacle] -> [Driftable | Obstacle] SFX3
late right [Driftable DriftR no Done | Driftable] -> [Driftable Done | DriftR Driftable] again
late right [Driftable DriftR no Done | no Obstacle] -> [ | Driftable DriftR Done] again
late right [Driftable DriftR Done | Obstacle] -> [Driftable | Obstacle] SFX3
late up [Driftable DriftU no Done | Driftable] -> [Driftable Done | DriftU Driftable] again
late up [Driftable DriftU no Done | no Obstacle] -> [ | Driftable DriftU Done] again
late up [Driftable DriftU Done | Obstacle] -> [Driftable | Obstacle] SFX3
late down [Driftable DriftD no Done | Driftable] -> [Driftable Done | DriftD Driftable] again
late down [Driftable DriftD no Done | no Obstacle] -> [ | Driftable DriftD Done] again
late down [Driftable DriftD Done | Obstacle] -> [Driftable | Obstacle] SFX3
[Done] -> []
(Get rid of drifters that haven't moved this turn and we don't we won't need anymore)
late [Driftable Drift no Done] -> [Driftable] SFX3 again
(Ending)
late [Star1 no AnimateDone] [no moon] -> [Star2 AnimateDone] [no moon] again
late [Star1 no AnimateDone] [moon] -> [Star2 AnimateDone] [moon] SFX4 again
late [Star2 no AnimateDone] -> [Star3 AnimateDone] again
late [Star3 no AnimateDone] -> [Star4 AnimateDone] again
late [Star4 no AnimateDone] -> [Star5 AnimateDone] again
late [Star5 no AnimateDone] -> [Star6 AnimateDone] again
late [Star6 no AnimateDone] -> [Star7 AnimateDone] again
late [Star7 no AnimateDone] [no Moon] -> [] [no Moon]
late [PlayerMini90 no Animatedone] -> [PlayerMini0 Animatedone] again
late up [PlayerMini0 no Animatedone |] -> [ | PlayerMini90 Animatedone] again
late [Player Minitrigger] -> [PlayerMini0]
late [PlayerMini0 VanishTrigger] -> [VanishTrigger Star1]
(Animation)
late [Player0 Drift no animatedone] -> [Player90 Drift AnimateDone]
late [Player90 Drift no animatedone] -> [Player180 Drift AnimateDone]
late [Player180 Drift no animatedone] -> [Player270 Drift AnimateDone]
late [Player270 Drift no animatedone] -> [Player0 Drift AnimateDone]
late [Player no Drift no Star7]-> [Player0]
late [AnimateDone] -> []
==============
WINCONDITIONS
==============
Some Player on Goal
No Drift on Player
All BoxTarget on Box
=======
LEVELS
=======
message Chapter I
.p..i..w
www..b.w
1[wwwgww
wwwww..w
w...t..w
w.bttt.w
ww....ww
wwwwwwwwwww
ww.....b..p
wwbwbwb.w..
ww.......wb
wg.wbwbwbw.
.b.b.......
wwbwbwwwwwb
1].........
wwwwwwwwwww
so..p
s....
.wbw.
.wo1.
...?.
w...g
message Chapter II
wwwwgwwww
2[wwtw...
wwww.....
ww..b...w
.b.tb.wow
p...t...w
ww....twwww
...w.ot....
pbtgy.ts.ts
...w..o..tw
ww.......tw
wwwwwwwww2]
w....wwww
w.wwbwwww
w.wwtw2?w
w.w.pwwww
w.wo..o..
.bss.ssw.
.woot....
.w..twwww
...wgwwww
message Chapter III
3[..ttt...
w..oaba...
w.p.aba.o.
w...t.too.
w...tgt...
3]..wgww..w
w..owawwo..
w.ooaaaa.o.
w...aaaaop.
w..baaaab..
ww....wwww
ww.oooww3?
aao.o.wwww
aa.o...www
aabttt.tga
aabb.p.www
message Chapter IV
4[wgwtst..w
w..t..t..ow
t..b.......
st.btbbt...
t..t..t.o..
.p.o..b...t
.b...tb..ts
..wwwwwwwww
4].....a..ww
wwaww.ta..wg
.o..a..at.w.
.bb.a..a...a
oo..a..a..op
s...ab.a..ww
w4?wstwwww
wwwwtgwwww
w..tb.t..w
wo...b..sw
...wb.t.p.
....tw..o.
ww......ww
message Epilouge
|||||||
|||k|||
|||||||
|/|||||
|||j|||
|||||||
|||||||
||^^^||
|^...^|
^.....^
...b...
.......
...p...
.......
message The End
message Sokobanana by Tom Hermans (@Auroriax). Thanks for playing!
(DEMO)
(www..b.
wwwb...
www...b
.b.....
....www
b...www
..bpwww)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment