Skip to content

Instantly share code, notes, and snippets.

Created April 2, 2016 07:11
Show Gist options
  • Save anonymous/e1a1f1539179e7fbaa76eeda465c9ecc to your computer and use it in GitHub Desktop.
Save anonymous/e1a1f1539179e7fbaa76eeda465c9ecc to your computer and use it in GitHub Desktop.
title
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
(-
- Of Will and Blood
- version 0.13
-)
title [0.13] Of Will and Blood
author 0x77
homepage 0x77.bit
background_color #000
text_color #FFF
zoomscreen 13x13
realtime_interval .1
key_repeat_interval .15
( Disable while editing the level )
run_rules_on_level_start
========
OBJECTS
========
( Background )
BACKGROUND .
BLACK
( Cursor )
PLAYER @
#9C9C9C #757575 #F7E26B #000 #A29446
.001.
10001
12323
42222
10001
( HUD )
BAR_L
#D6D6D6
00000
0....
0....
0....
00000
BAR_M
#D6D6D6
00000
.....
.....
.....
00000
BAR_R
#D6D6D6
00000
....0
....0
....0
00000
STAT_HP 0
#A81E1E
STAT_ST 1
#2270A8
( Tiles )
EMPTY0
TRANSPARENT
EMPTY1
TRANSPARENT
EMPTY2
TRANSPARENT
EMPTY3
TRANSPARENT
EMPTY4
TRANSPARENT
EMPTY5
TRANSPARENT
GRASS ,
#577a48
GRASS_A0
#658C55 #45603A
.....
.0...
.1...
...0.
...1.
GRASS_A1
#658C55 #45603A
.....
..0..
.01.0
.1..1
.....
GRASS_A2
#658C55 #45603A
..0.0
..101
...1.
.0...
.1...
GRASS_A3
#658C55 #45603A
.....
.....
...0.
...1.
.....
GRASS_A4
#658C55 #45603A
....0
....1
..0..
..1..
.....
( Tokens )
R_TICK '
TRANSPARENT
M_TICK "
TRANSPARENT
X
TRANSPARENT
U
TRANSPARENT
D
TRANSPARENT
L
TRANSPARENT
R
TRANSPARENT
T_HUD +
TRANSPARENT
( Special )
BLOCK_U #
TRANSPARENT
BLOCK_D $
TRANSPARENT
BLOCK_L %
TRANSPARENT
BLOCK_R ¨
TRANSPARENT
=======
LEGEND
=======
( HUD )
STAT = STAT_HP or STAT_ST
BAR = BAR_L or BAR_M or BAR_R
HUD = STAT or BAR
( Tiles )
EMPTY = EMPTY0 or EMPTY1 or EMPTY2 or EMPTY3 or EMPTY4 or EMPTY5
GRASS_A = EMPTY0 or EMPTY1 or EMPTY2 or GRASS_A0 or GRASS_A1 or GRASS_A2 or GRASS_A3 or GRASS_A4
=======
SOUNDS
=======
================
COLLISIONLAYERS
================
( BG )
BACKGROUND
( Tiles )
GRASS
EMPTY GRASS_A
( Entities )
PLAYER
( HUD )
STAT
BAR
( Tokens )
X
U D L R
T_HUD R_TICK M_TICK
( Special )
BLOCK_U BLOCK_D BLOCK_L BLOCK_R
======
RULES
======
( Realtime fix )
[ STATIONARY @ ] ["] -> [ @ ] [']
[ MOVING @ ] ['] -> [ MOVING @ ] ["]
( Camera fix )
UP [ # | # || # ] -> [ ||| # U X ]
DOWN [ # | # || # ] -> [ ||| # D ]
LEFT [ # | # || # ] -> [ ||| # L ]
RIGHT [ # | # || # ] -> [ ||| # R ]
RIGHT [ # U X ||||||| ] -> [ # U ||||||| @ ]
[ # U | ... | UP @ ] -> [ # U | ... | @ ]
[ # D | ... | DOWN @ ] -> [ # D | ... | @ ]
[ # L | ... | LEFT @ ] -> [ # L | ... | @ ]
[ # R | ... | RIGHT @ ] -> [ # R | ... | @ ]
( HUD )
RIGHT [ + ||||||||||||| ] -> [ + | BAR_L 0 | BAR_M 0 | BAR_M 0 | BAR_M 0 | BAR_R 0 |||||||| ]
RIGHT [ + ||||||||||||| ] -> [ + ||||||||| BAR_L 1 | BAR_M 1 | BAR_M 1 | BAR_M 1 | BAR_R 1 ]
LATE [+] -> []
[ > @ ] [ HUD ] -> [ > @ ] [ > HUD ]
( Tiles )
[ GRASS NO GRASS_A ] -> [ GRASS RANDOM GRASS_A ]
==============
WINCONDITIONS
==============
=======
LEVELS
=======
(
.............
.............
.............
.............
.............
.............
......@......
.............
.............
.............
.............
.............
.............
)
"......#.##..............................
.,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,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