Skip to content

Instantly share code, notes, and snippets.

@Draknek
Forked from anonymous/readme.txt
Created July 11, 2014 16:46
Show Gist options
  • Select an option

  • Save Draknek/6b273c1dfb01e82068ef to your computer and use it in GitHub Desktop.

Select an option

Save Draknek/6b273c1dfb01e82068ef to your computer and use it in GitHub Desktop.
BunnySim 1
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
title BunnySim
author Alan Hazelden
homepage www.draknek.org
(verbose_logging)
========
OBJECTS
========
Background
LIGHTGREEN GREEN
11111
01111
11101
11111
10111
Death
Red
AdultBunny
White Grey
.0.0.
.101.
.000.
.000.
00.00
BabyBunny
White Grey
.....
.0.0.
.101.
.000.
00.00
Wall
BROWN DARKBROWN
00010
11111
01000
11111
00010
Player
Black Orange White Blue
.000.
.111.
22222
.333.
.3.3.
Heart
Pink
.....
.0.0.
.000.
..0..
.....
U
red
..0..
.0.0.
.....
.....
.....
D
red
.....
.....
.....
.0.0.
..0..
L
red
.....
.0...
0....
.0...
.....
R
red
.....
...0.
....0
...0.
.....
=======
LEGEND
=======
. = Background
# = Wall
P = Player
" = AdultBunny and L
! = Death
Bunny = AdultBunny or BabyBunny
Animal = AdultBunny or BabyBunny
Solid = Animal or Player or Wall
Direction = U or D or L or R
=======
SOUNDS
=======
================
COLLISIONLAYERS
================
Direction
Background
Death
AdultBunny, BabyBunny, Player, Wall, Heart
======
RULES
======
[ BabyBunny ] -> [ AdultBunny ]
[ AdultBunny | Heart | AdultBunny ] -> [ AdultBunny | ^ BabyBunny | AdultBunny ]
[ up Animal no Direction ] -> [ up Animal U ]
[ down Animal no Direction ] -> [ down Animal D ]
[ left Animal no Direction ] -> [ left Animal L ]
[ right Animal no Direction ] -> [ right Animal R ]
[ stationary Animal U ] -> [ up Animal U ]
[ stationary Animal D ] -> [ down Animal D ]
[ stationary Animal L ] -> [ left Animal L ]
[ stationary Animal R ] -> [ right Animal R ]
[ AdultBunny | no Solid no Death no Heart | AdultBunny ] -> [ < AdultBunny action L | Heart | > AdultBunny action L ]
[ up Animal action Direction ] -> [ Animal U ]
[ down Animal action Direction ] -> [ Animal D ]
[ left Animal action Direction ] -> [ Animal L ]
[ right Animal action Direction ] -> [ Animal R ]
startloop
[ > Animal | Death ] -> [ no Direction | Death ]
[ > Player | no Solid ] -> [ | Player no Heart ]
[ > Animal Direction | no Solid ] -> [ | Animal Direction no Heart ]
[ moving Animal stationary U ] -> [ left Animal action L ]
[ moving Animal stationary L ] -> [ down Animal action D ]
[ moving Animal stationary D ] -> [ right Animal action R ]
[ moving Animal stationary R ] -> [ up Animal action U ]
[ action Direction ] -> [ Direction ]
endloop
[ moving Animal ] -> [ Animal ]
==============
WINCONDITIONS
==============
=======
LEVELS
=======
####......
#..#######
#"..."...#
#......p.#
#........#
#..#######
####......
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment