Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Pac-Man (PuzzleScript Script)
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
title Pac-Man
author Totti & Topias
homepage www.puzzlescript.net
realtime_interval 1.0
========
OBJECTS
========
Background
GREEN
Ghost
White Black
. . 0 . .
. 0 0 0 .
. 1 0 1 .
. 0 0 0 .
0 0 0 0 0
Wall
BROWN
Player
Yellow White Black
. 0 0 0 .
0 0 0 2 0
0 0 0 . .
0 0 0 0 0
. 0 0 0 .
Food
White
.....
.....
..0..
.....
.....
=======
LEGEND
=======
. = Background
- = Food
# = Wall
P = Player
O = Ghost
======
SOUNDS
======
SFX0 46473700
================
COLLISIONLAYERS
================
Background
Food
Player, Wall, Ghost
======
RULES
======
[> Player | Food ] -> [ > Player |] sfx0
[> Player | Ghost] -> [|Ghost]
[ Stationary Ghost ] -> [randomDir Ghost]
[ Player | | Ghost] -> [ Player | | < Ghost ]
[ Player ||| Ghost] -> [Player ||| < Ghost]
[> Ghost | Player] -> [|Ghost]
==============
==============
==============
WINCONDITIONS
==============
No Food
=======
LEVELS
=======
#######################
#P---##--###--#-----O-#
#-#-----#-----##-#-#--#
#-##---O--#----#-#-##-#
#---------#-##---###--#
#-####----#--#--------#
#--#-#----------O-###-#
##-#----###-#--##-#---#
#----####-----------#-#
#######################
#######################
#p----------O---------#
#-####-######-######-##
#-#-------------------#
#-#-#####-#-######-####
#-#------------O------#
#---##########-######-#
#-#-----#---##---#----#
####------#O---#---####
#----########-####----#
#-####---------######-#
#-#----#######------#-#
#---##---------####---#
#######################
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment