Created
September 25, 2021 16:53
-
-
Save TottiLuukkanen/5079faea49ac57df461a7455814875dd to your computer and use it in GitHub Desktop.
Pac-Man (PuzzleScript Script)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Play this game by pasting the script in http://www.puzzlescript.net/editor.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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