Created
March 9, 2023 08:10
-
-
Save pancelor/ff896cbe88c966435f5d7da328eaf7af to your computer and use it in GitHub Desktop.
regression test: getTilesTraversingPoints infinite loop (Puzzlescript Plus Script)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Play this game by pasting the script in https://auroriax.github.io/PuzzleScript/editor.html |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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