Skip to content

Instantly share code, notes, and snippets.

@increpare
Created March 21, 2021 22:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save increpare/05273f050ea04617647460422f8b76fa to your computer and use it in GitHub Desktop.
Save increpare/05273f050ea04617647460422f8b76fa to your computer and use it in GitHub Desktop.
Kurrywurst (PuzzleScript Script)
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
title Kurrywurst
run_rules_on_level_start
color_palette 6
background_color darkbrown
text_color lightred
again_interval 0.2
========
OBJECTS
========
Background
lightgray
plate_tl $
#306082
00...
0....
.....
.....
.....
plate_bl %
#306082
.....
.....
.....
0....
00...
plate_tr ^
#306082
...00
....0
.....
.....
.....
plate_br &
#306082
.....
.....
.....
....0
...00
mouth_open_lip_ul
red #876044 #6c482e
11221
11111
11111
11111
00000
mouth_open_lip_ur
red #876044 #6c482e
12211
11111
11111
11111
00000
cheek_l
#876044
00000
00000
.0000
..000
...00
cheek_r
#876044
00000
00000
0000.
000..
00...
chin_l
#876044 darkbrown
00000
00000
00000
00000
00000
chin_r
#876044 darkbrown
00000
00000
00000
00000
00000
mouth_open_tl
white black
00000
00000
11111
11111
11111
mouth_open_tr
white black
00000
00000
11111
11111
11111
mouth_open_bl
white black
11111
11111
11111
00000
00000
mouth_open_br
white black
11111
11111
11111
00000
00000
mouth_open_mid_lt
red #876044
11110
11110
11110
11110
11110
mouth_open_mid_lb
red #876044
11110
11110
11110
11110
11110
mouth_open_mid_rt
red #876044
01111
01111
01111
01111
01111
mouth_open_mid_rb
red #876044
01111
01111
01111
01111
01111
mouth_open_lip_bl
red #876044 white
00000
11111
11111
11111
11111
mouth_open_lip_br
red #876044 white
00000
11111
11111
11111
11111
(chew anim:)
skin_concealer
#876044
tile_1
red #876044
11111
11111
11111
11111
11100
tile_2
red #876044 white
11111
11111
00000
00000
22222
tile_3
red #876044 white
11111
11111
00000
00000
22222
tile_4
red #876044 white
11111
11111
11111
11111
00111
tile_5
red #876044
11100
11111
11111
11111
11111
tile_6
red #876044 white
22222
00000
00000
11111
11111
tile_7
red #876044 white
22222
00000
00000
11111
11111
tile_8
red #876044 white
00111
11111
11111
11111
11111
void #
#306082
fork_head
Black yellow white #876044
.1.1.
11.11
11.11
11111
11111
fork_forking
Black yellow white #876044
.....
.....
11.11
11111
11111
player_back
yellow
Sauce_tl q
darkred
..000
.0000
00000
00000
.0000
Sauce_tr w
darkred
0000.
00000
0000.
00000
00000
Sauce_t !
darkred
00.00
00000
00000
00000
00000
sauce_b "
darkred
00000
00000
00000
00000
000.0
Sauce_br e
darkred
00000
00000
0000.
0000.
000..
Sauce_bl r
darkred
.0000
.0000
00000
00000
...00
wurst_tl_o 1
brown orange
..000
.0111
.0111
01110
01110
wurst_tr_o 2
brown lightbrown
000..
0110.
0110.
11110
11110
wurst_br_o 3
brown lightbrown
11110
11110
0110.
0110.
000..
wurst_bl_o 4
brown orange
01110
01110
.0111
.0111
..000
wurst_tl_m a
brown orange red
..020
.2222
.0211
01210
22210
wurst_tr_m s
brown lightbrown red
020..
2220.
0122.
11210
11222
wurst_br_m d
brown lightbrown red
11110
11222
2120.
2222.
020..
wurst_bl_m f
brown orange red
02110
22210
.0222
.2211
..200
do_eat
transparent
do_eat2
transparent
supported
transparent
=======
LEGEND
=======
6 = chin_l
7 = mouth_open_lip_ul
8 = mouth_open_lip_ur
9 = chin_r
y = mouth_open_mid_lt
u = mouth_open_tl
i = mouth_open_tr
o = mouth_open_mid_rt
h = mouth_open_mid_lb
j = mouth_open_bl
k = mouth_open_br
l = mouth_open_mid_rb
n = cheek_l
m = mouth_open_lip_bl
, = mouth_open_lip_br
/ = cheek_r
. = Background
P = fork_head
player = fork_head or fork_forking
sauce = Sauce_tl or Sauce_tr or Sauce_br or Sauce_bl or sauce_t or sauce_b
wurst_tl = wurst_tl_o or wurst_tl_m
wurst_tr = wurst_tr_o or wurst_tr_m
wurst_bl = wurst_bl_o or wurst_bl_m
wurst_br = wurst_br_o or wurst_br_m
wurst = wurst_tl or wurst_tr or wurst_br or wurst_bl
wurst_sauced = wurst_tl_m or wurst_tr_m or wurst_bl_m or wurst_br_m
mouth_inside = mouth_open_tl or mouth_open_tr or mouth_open_bl or mouth_open_br
mouth = mouth_open_tl or mouth_open_tr or mouth_open_bl or mouth_open_br
lips = mouth_open_lip_ul or mouth_open_lip_ur or mouth_open_lip_bl or mouth_open_lip_br or mouth_open_mid_lt or mouth_open_mid_lb or mouth_open_mid_rt or mouth_open_mid_rb or cheek_l or cheek_r or chin_l or chin_r
face = mouth or lips
animtiles = tile_1 or tile_2 or tile_3 or tile_4 or tile_5 or tile_6 or tile_7 or tile_8 or skin_concealer
=======
SOUNDS
=======
sfx1 20784702
sfx2 44627704
sfx3 52259107
sfx4 10106904
================
COLLISIONLAYERS
================
do_eat,do_eat2
supported
Background
void
plate_tl, plate_bl, plate_tr, plate_br
mouth, lips
animtiles
Sauce
fork_head, player_back, wurst
fork_forking
======
RULES
======
( [ > player | void ] -> cancel )
( [ > player | sauce ] -> cancel )
[ face ]->[face void]
[moving fork_forking wurst ] -> [moving fork_forking moving wurst]
up [ up fork_head | wurst ] -> [ player_back | fork_forking wurst ] sfx3
down [horizontal player | player_back] -> [ horizontal player | horizontal player_back ]
down [horizontal player_back | player_back] -> [ horizontal player_back | horizontal player_back ]
down [ down player | player_back ] -> [ down Player | ]
[ > Player | wurst ] -> [ > Player | > wurst ]
[ > player_back | wurst ] -> [ > player_back | > wurst ]
[ > wurst | wurst ] -> [ > wurst | > wurst ]
+ right [ moving wurst_tl | wurst_tr ] -> [ moving wurst_tl | moving wurst_tr ]
+ right [ wurst_tl | moving wurst_tr ] -> [ moving wurst_tl | moving wurst_tr ]
+ right [ moving wurst_bl | wurst_br ] -> [ moving wurst_bl | moving wurst_br ]
+ right [ wurst_bl | moving wurst_br ] -> [ moving wurst_bl | moving wurst_br ]
+ down [ moving wurst_tl | wurst_bl ] -> [ moving wurst_tl | moving wurst_bl ]
+ down [ wurst_tl | moving wurst_bl ] -> [ moving wurst_tl | moving wurst_bl ]
+ down [ moving wurst_tr | wurst_br ] -> [ moving wurst_tr | moving wurst_br ]
+ down [ wurst_tr | moving wurst_br ] -> [ moving wurst_tr | moving wurst_br ]
late [wurst_tl_o sauce ] -> [ wurst_tl_m ] sfx4
late [wurst_tr_o sauce ] -> [ wurst_tr_m ] sfx4
late [wurst_bl_o sauce ] -> [ wurst_bl_m ] sfx4
late [wurst_br_o sauce ] -> [ wurst_br_m ] sfx4
late down [ player | no player_back ] -> [player | player_back]
late down [ player_back | no player_back ] -> [player_back | player_back]
late up [ player_back | no player no player_back ] -> [ | ]
(animation frame 1)
right [ do_eat ] [ 6 |7 |8 |9] -> [do_eat] [6 skin_concealer|7 skin_concealer|8 skin_concealer|9]
right [ do_eat ] [ y |u |i |o] -> [do_eat] [y tile_1|u tile_2|i tile_3|o tile_4]
right [ do_eat ] [ h |j |k |l] -> [do_eat] [h tile_5|j tile_6|k tile_7|l tile_8]
right [ do_eat ] [ m |,] -> [do_eat] [m skin_concealer|, skin_concealer]
[ do_eat ] [wurst mouth_inside] ->[ do_eat ] [mouth_inside]
[ do_eat ] [fork_forking mouth_inside] -> [ do_eat ] [fork_head mouth_inside]
(animation frame 2)
late [ do_eat2] [animtiles] -> [do_eat2] [] again sfx1
late [do_eat2]->[]
(trigger 2nd animation from from 1st)
late [ do_eat] -> [do_eat2] again sfx2
(eat condition: top-left sausage over top-left mouth and some sauce over mouth)
(late [ wurst_tl mouth_open_tl ] [ wurst_sauced mouth_inside ] -> [ wurst_tl mouth_open_tl do_eat] [ wurst_sauced mouth_inside ] again)
late [ wurst_tl mouth_open_tl ] -> [ wurst_tl mouth_open_tl do_eat] again
(check for unsupported sausages - if any end up pushed off, cancel turn)
late [wurst no void] -> [ wurst supported ]
late [ wurst fork_forking ]-> [wurst fork_forking supported]
late right [supported wurst_tl | wurst_tr] -> [supported wurst_tl | supported wurst_tr]
+ late right [wurst_tl | supported wurst_tr] -> [supported wurst_tl | supported wurst_tr]
+ late right [supported wurst_bl | wurst_br] -> [supported wurst_bl | supported wurst_br]
+ late right [wurst_bl | supported wurst_br] -> [supported wurst_bl | supported wurst_br]
+ late down [ supported wurst_tl | wurst_bl ]->[ supported wurst_tl | supported wurst_bl ]
+ late down [ wurst_tl | supported wurst_bl ]->[ supported wurst_tl | supported wurst_bl ]
+ late down [ supported wurst_tr | wurst_br ]->[ supported wurst_tr | supported wurst_br ]
+ late down [ wurst_tr | supported wurst_br ]->[ supported wurst_tr | supported wurst_br ]
late [wurst no supported ]-> cancel
late [supported]->[]
==============
WINCONDITIONS
==============
no wurst
no do_eat
no do_eat2
=======
LEVELS
=======
######6789#######
######yuio#######
######hjkl#######
######nm,/#######
#################
##$...........^##
##.q!w.........##
##.r"e.........##
##.............##
##.12.12.12.12.##
##.43.43.43.43.##
##%..p........&##
#################
#################
message mm lecker!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment