Skip to content

Instantly share code, notes, and snippets.

@jcmiller11
Created November 9, 2019 18:38
Show Gist options
  • Select an option

  • Save jcmiller11/5cd16aea6a3d7f4af4a9998e3fed5511 to your computer and use it in GitHub Desktop.

Select an option

Save jcmiller11/5cd16aea6a3d7f4af4a9998e3fed5511 to your computer and use it in GitHub Desktop.
Sprite Sharing Demo (PuzzleScript Script)
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
title Sprite Sharing Demo
author jc
homepage www.puzzlescript.net
run_rules_on_level_start
========
OBJECTS
========
Background
LIGHTGREEN GREEN
11111
01111
11101
11111
10111
Wall
BROWN DARKBROWN
00010
11111
01000
11111
00010
PlayerSprite
Black Orange White Blue
.000.
.111.
22222
.333.
.3.3.
Player
transparent
Player2
transparent
=======
LEGEND
=======
. = Background
# = Wall
P = Player
2 = Player2
Players = Player or Player2
=======
SOUNDS
=======
================
COLLISIONLAYERS
================
Background
Player, Player2, Wall
PlayerSprite
======
RULES
======
[Players no PlayerSprite] -> [Players PlayerSprite]
[PlayerSprite no Players] -> []
==============
WINCONDITIONS
==============
=======
LEVELS
=======
###########
#.........#
#.P.......#
#.........#
#.........#
#.........#
#.......2.#
#.........#
###########
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment