Skip to content

Instantly share code, notes, and snippets.

@pancelor
Created March 9, 2023 08:10
Show Gist options
  • Save pancelor/ff896cbe88c966435f5d7da328eaf7af to your computer and use it in GitHub Desktop.
Save pancelor/ff896cbe88c966435f5d7da328eaf7af to your computer and use it in GitHub Desktop.
regression test: getTilesTraversingPoints infinite loop (Puzzlescript Plus Script)
Play this game by pasting the script in https://auroriax.github.io/PuzzleScript/editor.html
title regression test: getTilesTraversingPoints infinite loop
author pancelor
mouse_drag m_drag
mouse_left m_down
========
objects
========
m_down
transparent
m_drag
green
.....
..0..
.000.
..0..
.....
m_prev
red
.....
.....
..0..
.....
.....
player @
blue
background .
black
wall #
brown
=======
legend
=======
=======
sounds
=======
player move 30943107
================
collisionlayers
================
background
wall, player
m_drag
m_down
m_prev
======
rules
======
[m_down] -> [m_drag]
(move player)
[player m_prev | m_drag] -> [> player m_prev | m_drag]
(clean up mouse objects)
[m_drag][m_prev] -> [m_drag][]
[m_drag] -> [m_prev]
[m_down] -> []
(postconditions:
- no m_down
- no m_drag
- either 0 or 1 m_prev exists (only 0 before first click)
)
==============
winconditions
==============
=======
levels
=======
###########
###########
##....#####
##.......##
###@....###
##......###
##.......##
###########
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment