Skip to content

Instantly share code, notes, and snippets.

@TottiLuukkanen
Created September 25, 2021 16:53
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 TottiLuukkanen/5079faea49ac57df461a7455814875dd to your computer and use it in GitHub Desktop.
Save TottiLuukkanen/5079faea49ac57df461a7455814875dd to your computer and use it in GitHub Desktop.
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