Skip to content

Instantly share code, notes, and snippets.

@sfiera
Last active February 16, 2021 05:43
Show Gist options
  • Save sfiera/72649bfb7b72f42306261e6211841b57 to your computer and use it in GitHub Desktop.
Save sfiera/72649bfb7b72f42306261e6211841b57 to your computer and use it in GitHub Desktop.
(Bug report?
When moving into the green square, the restart is triggered.
When moving into the red square, it doesn’t restart.
That’s because the red square is on the same layer as the player.
The move into the red square doesn’t succeed, so the whole turn is cancelled.
But the move into the green square succeeds, so the game restarts.)
title No Restart
author Chris Pickel
homepage www.puzzlescript.net
require_player_movement
========
OBJECTS
========
Background .
Black
Player P
White
Green G
Green
Red R
Red
=======
LEGEND
=======
Color = Red or Green
=======
SOUNDS
=======
================
COLLISIONLAYERS
================
Background
Player, Red
Green
======
RULES
======
[> Player | Color] -> restart
==============
WINCONDITIONS
==============
=======
LEVELS
=======
P...
..GR
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment