Skip to content

Instantly share code, notes, and snippets.

@bbb651
Last active February 7, 2024 09:23
Show Gist options
  • Select an option

  • Save bbb651/7c199ee130b65854b7ca3a3b1b9ef390 to your computer and use it in GitHub Desktop.

Select an option

Save bbb651/7c199ee130b65854b7ca3a3b1b9ef390 to your computer and use it in GitHub Desktop.
Nabokos (PuzzleScript Script)
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
title Nabokos
author bbb651
homepage github.com/bbb651
require_player_movement
========
OBJECTS
========
BackgroundNormal .
lightgreen green
11111
01111
11101
11111
10111
BackgroundHeart ,
#ecaeae #e86e6e
11111
01111
11101
11111
10111
Player p
black orange white blue
.000.
.111.
22222
.333.
.3.3.
Wall #
brown darkbrown
00010
11111
01000
11111
00010
CrateNormal *
orange
00000
0...0
0...0
0...0
00000
CrateHeartBottom Ⅴ
#d54848 #611e1e
00000
10001
10001
1.0.1
11111
CrateHeartSlash /
#d54848 #611e1e
00000
00001
000.1
00..1
01111
CrateHeartBackslash \
#d54848 #611e1e
00000
10000
1.000
1..00
11110
CrateHeartLeftTop ╭
#611e1e #d54848
00001
0..11
0..11
0.111
00111
CrateHeartLeftBottom ╰
#611e1e #d54848
00111
0.111
0..11
0..11
00001
CrateHeartRightTop ╮
#d54848 #611e1e
01111
00..1
00..1
000.1
00011
CrateHeartRightBottom ╯
#d54848 #611e1e
00011
000.1
00..1
00..1
01111
CrateHeartTopLeft ◿
#611e1e #d54848
00000
0...0
0..11
01111
11111
CrateHeartTopRight ◺
#611e1e #d54848
00000
0...0
11..0
11110
11111
TargetNormal o
darkblue
.....
.000.
.0.0.
.000.
.....
TargetHeart
darkblue
.000.
.0.0.
.0.0.
.0.0.
.000.
Active
transparent
=======
LEGEND
=======
Background = BackgroundNormal or BackgroundHeart
Crate = CrateNormal or CrateHeartBottom or CrateHeartSlash or CrateHeartBackslash or CrateHeartLeftTop or CrateHeartLeftBottom or CrateHeartRightTop or CrateHeartRightBottom or CrateHeartTopLeft or CrateHeartTopRight
Target = TargetNormal or TargetHeart
Moveable = Player or Crate
@ = CrateNormal and TargetNormal
℗ = Player and TargetNormal
0 = TargetHeart and BackgroundHeart
=======
SOUNDS
=======
Moveable move 36772507
================
COLLISIONLAYERS
================
Background
Target
Wall, Player, Crate
Active
======
RULES
======
( Original movement, you are the moveable object and you "walk" into the player for it to push you )
( [ < Player no Active | Moveable | no Moveable ] -> [ > Player Active | > Moveable Active | ] )
( Normal sokoban movement )
[ > Player no Active | Moveable | no Moveable ] -> [ > Player Active | > Moveable Active | ]
[moving Moveable no Active] -> [Moveable]
[Active] -> []
==============
WINCONDITIONS
==============
all Target on Crate
=======
LEVELS
=======
#######
#.℗...#
#....p#
#.....#
#p*...#
#...p.#
#######
#########
#..p..#p#
#p*...#p#
#.p...#.#
#.....#@#
#....o#.#
#########
##########
#...o..o.#
#...*..*.#
#pp......#
#..p.....#
#...p....#
##########
..####
..#.o#
.##@*#
.#...#
##...#
#....#
##pp.#
.#pp.#
.#####
########
#......#
#.*....#
#..p..o#
#..pp..#
#...p..#
########
########
#p....o#
#..**..#
#..*p*.#
#......#
#......#
#.....p#
########
######.
#.#pp##
#.*...#
#℗....#
#℗....#
#.*...#
#.#pp##
######.
..####.
###pp##
#.*...#
#℗....#
#℗....#
#.*...#
###pp##
..####.
###########
#.........#
#..◿◺.◿◺..#
#.╭,,Ⅴ,,╮.#
#.╰,0,0,╯.#
#..\,,,/..#
#...\,/...#
#....Ⅴ....#
#....p....#
###########
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment