Skip to content

Instantly share code, notes, and snippets.

@TottiLuukkanen
Created September 27, 2021 07:12
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/e2e28f9de0dc0285f847452714dd3ecb to your computer and use it in GitHub Desktop.
Save TottiLuukkanen/e2e28f9de0dc0285f847452714dd3ecb to your computer and use it in GitHub Desktop.
Cap-Man (PuzzleScript Script)
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
title Cap-Man
author Totti & Topias
homepage www.puzzlescript.net
realtime_interval 1.0
youtube qtZ0hl-unM4
========
OBJECTS
========
Background
gray
Ghost
White Black
. . 0 . .
. 0 0 0 .
. 1 0 1 .
. 0 0 0 .
0 0 0 0 0
Wall
BROWN LIGHTBROWN
00000
11010
00000
00111
00000
Player
BLUE LIGHTBROWN
. 0 0 0 .
. 0 1 0 0
. 1 1 1 .
. . 1 . .
. 1 . 1 .
Food
White
.....
.....
..0..
.....
.....
=======
LEGEND
=======
. = Background
- = Food
# = Wall
P = Player
O = Ghost
======
SOUNDS
======
SFX0 10175100
SFX1 51013107
sfx2 63019302
================
COLLISIONLAYERS
================
Background
Food
Player, Wall, Ghost
======
RULES
======
[> Player] -> [ > Player] sfx1
[> Player | Food ] -> [ > Player |] sfx0
[> Player | Ghost] -> [|Ghost] restart sfx2
[ Stationary Ghost ] -> [randomDir Ghost]
[ Player | | Ghost] -> [ Player | | < Ghost ]
[ Player ||| Ghost] -> [Player ||| < Ghost]
[> Ghost | Player] -> [|Ghost] restart sfx2
==============
==============
==============
WINCONDITIONS
==============
No Food
=======
LEVELS
=======
#######################
#o---------#----------#
#-###-#########-##--#-#
#-#-#-#--------.-#-##-#
#-#-#-#-########-#--#-#
#---#-#-#------#-#--#-#
#-#---#---####-#-#--#-#
#-#---#-#-#-p#-#-#-##-#
#-#-----#------#-#--#-#
#-#-#---#-#--#-#------#
#-#-#-#--.####-#----#-#
#-#-#-#-#o-------#-##-#
#---#-#-########-#--#-#
#-#-#--------.------#-#
#-#########-#########-#
#--------------------o#
#######################
#######################
#o--------------------#
#-#########-#########-#
#-#-----------------#-#
#-#-#######-#######-#o#
#-#-#-------------#-#-#
#-#-#--#-#####-##-#---#
#---##-#----p#--#-#-#-#
###-#--#-#---#-#--#-#-#
#-#-#--#-#-----#--#-#-#
#-#-##-#-#####-##-#-#-#
#-#-#o------------#-#-#
#-#-###############-#-#
#-#---------o-------#-#
#-###-############-##-#
#----------------#----#
#######################
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment