Skip to content

Instantly share code, notes, and snippets.

@jcmiller11
Created August 20, 2023 15:20
Show Gist options
  • Select an option

  • Save jcmiller11/4c434b7ce434489275eab5f0d5981724 to your computer and use it in GitHub Desktop.

Select an option

Save jcmiller11/4c434b7ce434489275eab5f0d5981724 to your computer and use it in GitHub Desktop.
puZZlescripT - Shooting (PuzzleScript Script)
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
title puZZlescripT - Shooting
author Mynaher
homepage www.puzzlescript.net
color_palette ega
========
OBJECTS
========
Background
black
Wall
lightgray
Player
white darkblue
10001
01010
00000
01110
10001
Bullet_U
white
.000.
00.00
.000.
.....
.....
Bullet_R
white
.000.
00.00
.000.
.....
.....
Bullet_D
white
.000.
00.00
.000.
.....
.....
Bullet_L
white
.000.
00.00
.000.
.....
.....
u
transparent
r
transparent
d
transparent
l
transparent
Boom
red yellow
.0.0.
0.1.0
.111.
0.1.0
.0.0.
=======
LEGEND
=======
. = Background
# = Wall
P = Player and d
direction = u or r or d or l
bullet = Bullet_U or Bullet_R or Bullet_D or Bullet_L
Destroyable = Wall
=======
SOUNDS
=======
sfx0 18901501
================
COLLISIONLAYERS
================
Background
direction
Player, Wall, bullet
Boom
======
RULES
======
[bullet_u] -> [up bullet_u]
[bullet_r] -> [right bullet_r]
[bullet_l] -> [left bullet_l]
[bullet_d] -> [down bullet_d]
[direction no player] -> []
[up player] -> [up player up u]
[down player] -> [down player down d]
[left player] -> [left player left l]
[right player] -> [right player right r]
up [action player u|no wall no bullet] -> [player u|bullet_u]sfx0
down [action player d|no wall no bullet] -> [player d|bullet_d]sfx0
left [action player l|no wall no bullet] -> [player l|bullet_l]sfx0
right [action player r|no wall no bullet] -> [player r|bullet_r]sfx0
[Boom Destroyable] -> []
[> Bullet|Destroyable] -> [|Boom Destroyable] again
[Bullet] -> again
==============
WINCONDITIONS
==============
=======
LEVELS
=======
#########
#.......#
#...p...#
#.......#
#.......#
#.......#
#.......#
#.......#
#########
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment