Skip to content

Instantly share code, notes, and snippets.

Created April 23, 2017 07:53
Show Gist options
  • Save anonymous/3e474aba2b29ead940ca55808b4f2a2f to your computer and use it in GitHub Desktop.
Save anonymous/3e474aba2b29ead940ca55808b4f2a2f to your computer and use it in GitHub Desktop.
title
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
title Small World
author Wheerd
homepage https://github.com/wheerd/ludum-dare-38
run_rules_on_level_start
noundo
norestart
========
OBJECTS
========
(Animals)
HungryLion
Yellow Brown Black
.111.
10001
12021
10001
.020.
FedLion
Orange DarkBrown Black
.111.
10001
12021
10001
.020.
HungryGiraffe
Yellow Brown Black
...0.
..120
..0..
001..
1.0..)
FedGiraffe
Orange DarkBrown Black
...0.
..120
..0..
001..
1.0..
HungryMouse
LightGrey Grey
.101.
.000.
.000.
..0..
.10..
FedMouse
Grey DarkGrey
.101.
.000.
.000.
..0..
.10..
HungryGrasshopper
Green DarkGreen
.....
.....
.1.0.
10100
1..1.
FedGrasshopper
#387214 DarkGreen
.....
.....
.1.0.
10100
1..1.
HungryBird
LightGrey Grey
.....
00.00
..1..
.....
.....
FedBird
Grey DarkGrey
.....
00.00
..1..
.....
.....
HungrySnake
Red DarkRed
.01..
...0.
.100.
0....
.0010
FedSnake
DarkRed Red
.01..
...0.
.100.
0....
.0010
HungryVulture
LightGrey Pink DarkGray
..1..
.010.
22022
22022
.1.1.
FedVulture
Grey DarkRed DarkGray
..1..
.010.
22022
22022
.1.1.
HungrySkunk
White Black LightGrey
0....
0000.
11120
1111.
.1.1.
FedSkunk
Grey Black DarkGrey
0....
0000.
11120
1111.
.1.1.
HungryMonkey
Brown LightBrown Black
.000.
02120
01110
.010.
.000.
FedMonkey
DarkBrown Brown Black
.000.
02120
01110
.010.
.000.
HungryAntelope
Brown
...00
...0.
0000.
0..0.
0..0.
FedAntelope
DarkBrown
...00
...0.
0000.
0..0.
0..0.
HungryLeopard
Yellow Orange
.....
...10
01000
0..0.
0..1.
FedLeopard
LightBrown Orange
.....
...10
01000
0..0.
0..1.
HungryHippo
Grey Black
.000.
01010
00000
00000
.0.0.
FedHippo
DarkGrey Black
.000.
01010
00000
00000
.0.0.
(Environment)
Background
LightGreen
Desert
#EDC9AF
Grass
#86AA1E
Lake
Blue
Rock
Grey DarkGrey
..10.
.1001
10001
10001
.111.
Tree
Green Brown
.000.
00000
.000.
..1..
..1..
Shrub
Green Brown Red
.....
.00..
.200.
.002.
..1..
(Meta)
PlayerInactive
DarkBlue
00000
0...0
0...0
0...0
00000
PlayerActive
Red
00000
0...0
0...0
0...0
00000
Eaten1
Transparent
(
Red
....0
.....
.....
.....
.....
)
Eaten2
Transparent
(
Red
....0
....0
.....
.....
.....
)
Eaten3
Red
....0
....0
....0
.....
.....
Eaten4
Red
....0
....0
....0
....0
.....
Fed1
Transparent
(
Blue
0....
.....
.....
.....
.....
)
Fed2
Transparent
(
Blue
0....
0....
.....
.....
.....
)
Fed3
Blue
0....
0....
0....
.....
.....
Fed4
Blue
0....
0....
0....
0....
.....
FeedTemp
Transparent
MonkeyShrub
Transparent
MonkeyTree
Transparent
MonkeyGrasshopper
Transparent
=======
LEGEND
=======
. = Background
# = Grass
% = Rock
: = Rock and Desert
& = Tree
$ = Shrub
_ = Lake
- = Desert
P = PlayerInactive
R = PlayerInactive and Desert
L = HungryLion
D = HungryLion and Desert
G = HungryGiraffe
E = HungryGiraffe and Desert
M = HungryMouse
W = HungryMouse and Desert
H = HungryGrasshopper
Q = HungryGrasshopper and Desert
B = HungryBird
S = HungrySnake
T = HungryVulture
U = HungryVulture and Desert
O = HungrySkunk
K = HungryMonkey
N = HungryMonkey and Desert
A = HungryAntelope
I = HungryAntelope and Desert
F = HungryLeopard
J = HungryLeopard and Desert
C = HungryHippo
Player = PlayerActive or PlayerInactive
Lion = HungryLion or FedLion
Giraffe = HungryGiraffe or FedGiraffe
Mouse = HungryMouse or FedMouse
Grasshopper = HungryGrasshopper or FedGrasshopper
Bird = HungryBird or FedBird
Snake = HungrySnake or FedSnake
Vulture = HungryVulture or FedVulture
Skunk = HungrySkunk or FedSkunk
Monkey = HungryMonkey or FedMonkey
Antelope = HungryAntelope or FedAntelope
Leopard = HungryLeopard or FedLeopard
Hippo = HungryHippo or FedHippo
Animal = Lion or Giraffe or Mouse or Grasshopper or Bird or Snake or Vulture or Skunk or Monkey or Antelope or Leopard or Hippo
Animal2 = Lion or Giraffe or Mouse or Grasshopper or Bird or Snake or Vulture or Skunk or Monkey or Antelope or Leopard or Hippo
Blocking = Tree or Rock or Shrub or Lake
Eaten = Eaten1 (or Eaten2 or Eaten3 or Eaten4)
Fed = Fed1 (or Fed2 or Fed3 or Fed4)
Hungry = HungryLion or HungryGiraffe or HungryMouse or HungryGrasshopper or HungryBird or HungrySnake or HungryVulture or HungrySkunk or HungryMonkey or HungryAntelope or HungryLeopard or HungryHippo
=======
SOUNDS
=======
================
COLLISIONLAYERS
================
Background
Grass, Desert
Blocking
Animal
PlayerInactive, PlayerActive
Eaten
Fed, Fed2
FeedTemp, Eaten2, Eaten3, Eaten4, Fed3, Fed4
MonkeyShrub
MonkeyTree
MonkeyGrasshopper
======
RULES
======
(Movement)
[ > PlayerActive Animal No Bird No Vulture | Blocking ] -> [ PlayerActive Animal | Blocking ]
[ > PlayerActive Animal | Animal2 ] -> [ Animal2 | PlayerActive Animal ]
[ > PlayerActive Animal ] -> [ > PlayerActive > Animal ]
[ Action PlayerActive ] -> [ PlayerInactive ]
[ Action PlayerInactive Animal ] -> [ PlayerActive Animal ]
(Reset)
late [ Eaten ] -> [ ]
late [ Fed ] -> [ ]
late [ Fed2 ] -> [ ]
late [ FedLion ] -> [ HungryLion ]
late [ FedGiraffe ] -> [ HungryGiraffe ]
late [ FedMouse ] -> [ HungryMouse ]
late [ FedGrasshopper ] -> [ HungryGrasshopper ]
late [ FedBird ] -> [ HungryBird ]
late [ FedSnake ] -> [ HungrySnake ]
late [ FedVulture ] -> [ HungryVulture ]
late [ FedSkunk ] -> [ HungrySkunk ]
late [ FedMonkey ] -> [ HungryMonkey ]
late [ FedAntelope ] -> [ HungryAntelope ]
late [ FedLeopard ] -> [ HungryLeopard ]
late [ FedHippo ] -> [ HungryHippo ]
(Eat)
(
late Down [ Lion No Fed | Giraffe No Eaten ] -> [ Lion | Giraffe Eaten1 ]
late Up [ Lion No FeedTemp | Giraffe No Eaten ] -> [ Lion FeedTemp | Giraffe Eaten1 ]
late Up [ Lion No FeedTemp | Giraffe Eaten1 ] -> [ Lion FeedTemp | Giraffe Eaten2 ]
late [ FeedTemp ] -> [ ]
late Left [ Lion No FeedTemp | Giraffe No Eaten ] -> [ Lion FeedTemp | Giraffe Eaten1 ]
late Left [ Lion No FeedTemp | Giraffe Eaten1 ] -> [ Lion FeedTemp | Giraffe Eaten2 ]
late Left [ Lion No FeedTemp | Giraffe Eaten2 ] -> [ Lion FeedTemp | Giraffe Eaten3 ]
late [ FeedTemp ] -> [ ]
late Right [ Lion No FeedTemp | Giraffe No Eaten ] -> [ Lion FeedTemp | Giraffe Eaten1 ]
late Right [ Lion No FeedTemp | Giraffe Eaten1 ] -> [ Lion FeedTemp | Giraffe Eaten2 ]
late Right [ Lion No FeedTemp | Giraffe Eaten2 ] -> [ Lion FeedTemp | Giraffe Eaten3 ]
late Right [ Lion No FeedTemp | Giraffe Eaten3 ] -> [ Lion FeedTemp | Giraffe Eaten4 ]
late [ FeedTemp ] -> [ ]
late [ Lion | Giraffe Eaten4 ] -> [ Lion Fed4 | Giraffe Eaten4 ]
late [ Lion | Giraffe Eaten3 ] -> [ Lion Fed3 | Giraffe Eaten3 ]
late [ Lion | Giraffe Eaten2 ] -> [ Lion Fed2 | Giraffe Eaten2 ]
late [ Lion | Giraffe Eaten1 ] -> [ Lion Fed1 | Giraffe Eaten1 ]
late [ Lion Fed1 | Giraffe Eaten1 ] -> [ FedLion | Giraffe ]
late [ Lion Fed2 | Giraffe Eaten2 ] -> [ FedLion | Giraffe ]
late [ Lion Fed1 | Giraffe Eaten2 ] -> [ FedLion | Giraffe ]
late [ Lion Fed3 | Giraffe Eaten3 ] -> [ FedLion | Giraffe ]
late [ Lion Fed2 | Giraffe Eaten3 ] -> [ FedLion | Giraffe ]
late [ Lion Fed1 | Giraffe Eaten3 ] -> [ FedLion | Giraffe ]
late [ Lion Fed4 | Giraffe Eaten4 ] -> [ FedLion | Giraffe ]
late [ Lion Fed3 | Giraffe Eaten4 ] -> [ FedLion | Giraffe ]
late [ Lion Fed2 | Giraffe Eaten4 ] -> [ FedLion | Giraffe ]
late [ Lion Fed1 | Giraffe Eaten4 ] -> [ FedLion | Giraffe ]
)
late [ Giraffe | Tree ] -> [ FedGiraffe Fed | Tree Eaten ]
late [ Mouse Grass ] -> [ FedMouse Grass ]
late [ Grasshopper Grass ] -> [ FedGrasshopper Grass ]
late [ Bird | Grasshopper ] -> [ FedBird Fed | Grasshopper Eaten ]
late [ Antelope | Shrub ] -> [ FedAntelope Fed | Shrub Eaten ]
late [ Snake | Mouse ] -> [ FedSnake Fed | Mouse Eaten ]
late [ Skunk | Bird ] -> [ FedSkunk Fed | Bird Eaten ]
late [ Skunk | Snake ] -> [ FedSkunk Fed | Snake Eaten ]
late [ Monkey | Shrub ] -> [ FedMonkey Fed MonkeyShrub | Shrub Eaten ]
late [ Monkey | Tree ] -> [ FedMonkey Fed MonkeyTree | Tree Eaten ]
late [ Monkey | Grasshopper ] -> [ FedMonkey Fed MonkeyGrasshopper | Grasshopper Eaten ]
late [ Leopard | Antelope ] -> [ FedLeopard Fed | Antelope Eaten ]
late [ Leopard | Monkey ] -> [ FedLeopard Fed | Monkey Eaten ]
late [ Leopard | | Antelope ] -> [ FedLeopard Fed | | Antelope Eaten ]
late [ Leopard | | Monkey ] -> [ FedLeopard Fed | | Monkey Eaten ]
late [ Hippo | Lake ] -> [ FedHippo Fed | Lake Eaten ]
late [ Lion | Giraffe ] -> [ FedLion Fed | Giraffe Eaten ]
late [ Lion | Hippo ] -> [ FedLion Fed | Hippo Eaten ]
late [ Antelope Grass ] -> [ FedAntelope Grass No Fed ]
late [ Vulture | Animal No Grasshopper No Vulture Eaten ] -> [ FedVulture | Animal Eaten ]
(Balance)
late [ Hippo Fed ] [ Lake Eaten ] -> [ Hippo ] [ Lake ]
late [ Antelope Fed | Shrub ] [ Shrub Eaten ] -> [ Antelope | Shrub ] [ Shrub ]
late [ Monkey Fed | Shrub ] [ Shrub Eaten ] -> [ Monkey | Shrub ] [ Shrub ]
late [ Giraffe Fed ] [ Tree Eaten ] -> [ Giraffe ] [ Tree ]
late [ Monkey Fed | Tree ] [ Tree Eaten ] -> [ Monkey | Tree ] [ Tree ]
late [ Bird Fed ] [ Grasshopper Eaten ] -> [ Bird ] [ Grasshopper ]
late [ Monkey Fed | Grasshopper ] [ Grasshopper Eaten ] -> [ Monkey | Grasshopper ] [ Grasshopper ]
late [ Snake Fed ] [ Mouse Eaten ] -> [ Snake ] [ Mouse ]
late [ Skunk Fed | Bird ] [ Bird Eaten ] -> [ Skunk | Bird ] [ Bird ]
late [ Skunk Fed | Snake ] [ Snake Eaten ] -> [ Skunk | Snake ] [ Snake ]
late [ Leopard Fed | Antelope ] [ Antelope Eaten ] -> [ Leopard | Antelope ] [ Antelope ]
late [ Leopard Fed | Monkey ] [ Monkey Eaten ] -> [ Leopard | Monkey ] [ Monkey ]
late [ Leopard Fed | | Antelope ] [ Antelope Eaten ] -> [ Leopard | | Antelope ] [ Antelope ]
late [ Leopard Fed | | Monkey ] [ Monkey Eaten ] -> [ Leopard | | Monkey ] [ Monkey ]
late [ Lion Fed | Giraffe ] [ Giraffe Eaten] -> [ Lion Fed2 | Giraffe ] [ Giraffe ]
late [ Lion Fed | Hippo ] [ Hippo Eaten] -> [ Lion Fed2 | Hippo ] [ Hippo ]
late [ Lion Fed2 | Giraffe ] [ Giraffe Eaten] -> [ Lion | Giraffe ] [ Giraffe ]
late [ Lion Fed2 | Hippo ] [ Hippo Eaten] -> [ Lion | Hippo ] [ Hippo ]
(late [ Vulture Fed ] [ Animal No Grasshopper No Vulture Eaten] -> [ Vulture ] [ Animal ])
(Rollback)
late [ Animal Desert ] -> [ Animal Desert Fed ]
late [ Lion Fed ] -> [ HungryLion Fed ]
late [ Lion Fed2 ] -> [ HungryLion Fed2 ]
late [ Giraffe Fed ] -> [ HungryGiraffe Fed ]
late [ Mouse Fed ] -> [ HungryMouse Fed ]
late [ Grasshopper Fed ] -> [ HungryGrasshopper Fed ]
late [ Bird Fed ] -> [ HungryBird Fed ]
late [ Snake Fed ] -> [ HungrySnake Fed ]
late [ Skunk Fed ] -> [ HungrySkunk Fed ]
late [ Monkey Fed ] -> [ HungryMonkey Fed ]
late [ Antelope Fed ] -> [ HungryAntelope Fed ]
late [ Leopard Fed ] -> [ HungryLeopard Fed ]
late [ Hippo Fed ] -> [ HungryHippo Fed ]
late [ Vulture Fed ] -> [ HungryVulture Fed ]
(Snakes are bad)
late [ Monkey | Snake ] -> [ HungryMonkey | Snake ]
late [ Bird | Snake ] -> [ HungryBird | Snake ]
(Monkey variety)
late [ Monkey No MonkeyShrub No MonkeyTree ] -> [ HungryMonkey ]
late [ Monkey No MonkeyGrasshopper No MonkeyTree ] -> [ HungryMonkey ]
late [ Monkey No MonkeyGrasshopper No MonkeyShrub ] -> [ HungryMonkey ]
==============
WINCONDITIONS
==============
No Hungry
No Fed
No Fed2
=======
LEVELS
=======
(Tutorial)
message You need to balance the ecosystem of this small world and make sure no animal starves.
message You can move animals next to their food source.
message Giraffes like to eat from trees.
P....
..&..
.....
..G..
.....
message Hippos need to be next to water.
P..__
...__
...._
.C...
.....
message Two animal cannot use the same food source.
P...%
.G&..
..G..
.....
...&.
message Lions eat giraffes and hippos.
message Lions are extra hungry and need two food sources.
P.&%L
.....
....C
G...%
.._.%
message Vultures can feed off any animal and can fly.
message Vultures eat what is left by other hunters.
P.&.G
.G...
%..L&
___..
.T._.
message Mice and grasshoppers need to be on lush grass lands.
P....
.##..
..#%%
M.%.#
.%.H#
message Monkeys like to eat from trees, shrubs or grasshoppers.
message Monkeys want variety.
P..K%
....%
.&...
..$..
.K.._
message Snakes eat mice, but some other animals are afraid of snakes.
%%%%%
_.#P%
_.#K&
...M%
SH.%%
message Birds eat grasshoppers and can fly.
P....
__.B.
M___.
.H.__
##.S_
message Antelopes eat grass or shrubs.
P.$$.
.A.A.
..A..
..#.$
.#...
message Leopards like to eat antelopes or monkeys.
message Leopards are fast, so they have a higher range.
P....
...F.
____%
.A#.%
.....
(
message Skunks eat birds and snakes.
P.TB&
%....
_____
H..._
...#O
)
(Actual levels)
message Now you know about all the animals of this small world.
message Time to balance the ecosystem!
message The desert has spread.
R-J#J
-#---
---.-
--.#-
:II-:
R--Q-
-&..-
--$.E
--.#-
-N---
R--U:
&K$.&
--..-
-F-.-
----:
R----
-B.S-
-..%-
-###-
-QW--
R-D--
---&-
&G&C.
-..LG
-&G._
R---:
--:.%
&L&C_
--.-.
--&GG
message The rain has made the desert green again.
$-.H-
.#.KK
$P.._
..__.
&_B#.
P%%G&
..%.&
%.L..
%.&&%
TT.G%
P&%G&
..&.%
%.L..
&.%&%
TT.G&
PS.B_
AC#.T
&.#K$
.FL.#
_HMGC
message You have balanced the ecosystem of this small world!
message All the animals are happy and thrive. Yay!
(
. = Background
# = Grass
% = Rock
: = Rock and Desert
& = Tree
$ = Shrub
_ = Lake
- = Desert
P = PlayerInactive
R = PlayerInactive and Desert
L = HungryLion
D = HungryLion and Desert
G = HungryGiraffe
E = HungryGiraffe and Desert
M = HungryMouse
H = HungryGrasshopper
Q = HungryGrasshopper and Desert
B = HungryBird
S = HungrySnake
T = HungryVulture
U = HungryVulture and Desert
O = HungrySkunk
K = HungryMonkey
N = HungryMonkey and Desert
A = HungryAntelope
I = HungryAntelope and Desert
F = HungryLeopard
J = HungryLeopard and Desert
C = HungryHippo
P....
.....
.....
.....
.....
R----
-----
-----
-----
-----
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment