Skip to content

Instantly share code, notes, and snippets.

Created February 13, 2015 06:27
Show Gist options
  • Save anonymous/41af11361cbf8f5f3e10 to your computer and use it in GitHub Desktop.
Save anonymous/41af11361cbf8f5f3e10 to your computer and use it in GitHub Desktop.
title
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
title Twinkle, Twinkle Little Square
author Mark Richardson
norepeat_action
norestart
========
OBJECTS
========
Background
Black
Wall
Black
StarA
#888 #444 #222
...1.
1212.
.101.
.2121
.1...
Star0
#888 #444 #222
...1.
1212.
.101.
.2121
.1...
Star1
#F88 #F00 #800
...1.
1212.
.101.
.2121
.1...
Star2
#8F8 #0F0 #080
...1.
1212.
.101.
.2121
.1...
Star3
#88F #00F #008
...1.
1212.
.101.
.2121
.1...
Star4
#FF0 #880 #440
...1.
1212.
.101.
.2121
.1...
Star5
#F0F #808 #404
...1.
1212.
.101.
.2121
.1...
Star6
#0FF #088 #044
...1.
1212.
.101.
.2121
.1...
Star7
#FFF #888 #444
...1.
1212.
.101.
.2121
.1...
Cursor1
White
.0.0.
0...0
.....
0...0
.0.0.
Cursor2
White
00.00
0...0
.....
0...0
00.00
Cursor3
White
0...0
.....
.....
.....
0...0
Cursor4
White
0...0
.....
.....
.....
0...0
Player
White
00.00
0...0
.....
0...0
00.00
=======
LEGEND
=======
. = Background
# = Wall
* = Star0
P = Player and Cursor1
Q = Player and Cursor1 and Star0
StarX = Star1 or Star2 or Star3 or Star4 or Star5 or Star6 or Star7
StarZ = Star0 or StarX
CursorX = Cursor2 or Cursor3 or Cursor4
=======
SOUNDS
=======
================
COLLISIONLAYERS
================
Background
StarA, StarZ
Cursor1, CursorX
Player, Wall
======
RULES
======
(Move point cursor)
[> Player Cursor1] -> [> Player > Cursor1]
[> Cursor1|Wall] -> cancel
(Move square cursor)
[> Player Cursor2|Cursor1][Cursor3][Cursor4] -> [|Player Cursor1][][]
[> Player Cursor2|Wall] -> cancel
[> Player Cursor2][Cursor4|Wall] -> cancel
[> Player Cursor2|Cursor4|no Wall][stationary Cursor3] -> [|Player Cursor2|v Cursor4][v Cursor3]
[> Player Cursor2|no Wall][stationary Cursor3][stationary Cursor4|no Wall] -> [|Player Cursor2][v Cursor3][|v Cursor4]
[> CursorX|Wall] -> cancel
(Delete constellation with point cursor)
[action Player Cursor1 Star1][no Player Star1] -> [action Player Cursor1 Star1][Star0]
[action Player Cursor1 Star2][no Player Star2] -> [action Player Cursor1 Star2][Star0]
[action Player Cursor1 Star3][no Player Star3] -> [action Player Cursor1 Star3][Star0]
[action Player Cursor1 Star4][no Player Star4] -> [action Player Cursor1 Star4][Star0]
[action Player Cursor1 Star5][no Player Star5] -> [action Player Cursor1 Star5][Star0]
[action Player Cursor1 Star6][no Player Star6] -> [action Player Cursor1 Star6][Star0]
[action Player Cursor1 Star7][no Player Star7] -> [action Player Cursor1 Star7][Star0]
[action Player Cursor1 StarX] -> [Player Cursor1 Star0]
(Delete constellation with square cursor)
[action Player Cursor2 StarZ][Cursor3 StarZ][Cursor4 StarZ] -> [action Player Cursor2 action StarZ][Cursor3 action StarZ][Cursor4 action StarZ]
[action Star1][stationary Star1] -> [action Star1][Star0]
[action Star2][stationary Star2] -> [action Star2][Star0]
[action Star3][stationary Star3] -> [action Star3][Star0]
[action Star4][stationary Star4] -> [action Star4][Star0]
[action Star5][stationary Star5] -> [action Star5][Star0]
[action Star6][stationary Star6] -> [action Star6][Star0]
[action Star7][stationary Star7] -> [action Star7][Star0]
[action StarZ] -> [Star0]
(Turn point cursor into a square cursor)
right [action Player Cursor1 Star0|no Wall] -> [action Cursor1 Star0|Player Cursor2]
down [action Cursor1|Wall] -> cancel
down [action Cursor1|] -> [Cursor1|action Cursor3]
right [action Cursor3|Wall] -> cancel
right [action Cursor3|] -> [Cursor3|Cursor4]
(Create constellation)
[action Player Cursor2 Star0][Cursor1 Star0][Cursor3 Star0][Cursor4 Star0] -> [action Player Cursor1 StarA][StarA][StarA][StarA]
[action Player Cursor1 StarA][Star1][Star2][Star3][Star4][Star5][Star6] -> [action Player Cursor1 Star7][Star1][Star2][Star3][Star4][Star5][Star6]
[action Player Cursor1 StarA][Star1][Star2][Star3][Star4][Star5] -> [action Player Cursor1 Star6][Star1][Star2][Star3][Star4][Star5]
[action Player Cursor1 StarA][Star1][Star2][Star3][Star4] -> [action Player Cursor1 Star5][Star1][Star2][Star3][Star4]
[action Player Cursor1 StarA][Star1][Star2][Star3] -> [action Player Cursor1 Star4][Star1][Star2][Star3]
[action Player Cursor1 StarA][Star1][Star2] -> [action Player Cursor1 Star3][Star1][Star2]
[action Player Cursor1 StarA][Star1] -> [action Player Cursor1 Star2][Star1]
[action Player Cursor1 StarA] -> [action Player Cursor1 Star1]
[action Player Cursor1 StarX][StarA] -> [action Player Cursor1 StarX][StarX]
==============
WINCONDITIONS
==============
no Star0
=======
LEVELS
=======
message ♪Twinkle, twinkle little square, how I wonder why you're there?
###################
#.................#
#.................#
#.....*...........#
#.................#
#.*....*..........#
#.................#
#.......*.....*...#
#.................#
#...*....P........#
#.................#
#.................#
#....*............#
#.................#
#...........*.....#
#.................#
#.................#
#.................#
###################
message ♪ Is your arrangement but a sign, that the sky is by design?
###################
#.................#
#.................#
#.................#
#........*........#
#.................#
#....*.........*..#
#.................#
#..........*......#
#........P........#
#......*..........#
#.................#
#..*.........*....#
#.................#
#........*........#
#.................#
#.................#
#.................#
###################
message ♪Twinkle, twinkle little square, why, I wonder, are you there?
###################
#.................#
#.............*...#
#.................#
#.*.....*.......*.#
#.................#
#.................#
#....*............#
#.................#
#........P........#
#.*.....*.........#
#.................#
#.......*.......*.#
#....*............#
#...............*.#
#.................#
#...*.............#
#.................#
###################
message The books say light travels fast, but that we see your distant past.
###################
#.................#
#.................#
#.................#
#.........*.......#
#......*..........#
#...........*.....#
#.*.*.............#
#........*........#
#.*...*..P....*...#
#.....*...........#
#...*......*......#
#............*....#
#.......*.........#
#............*....#
#....*............#
#.................#
#.................#
###################
message A massive ball of nuclear fusion, knowledge shared but never proven.
###################
#.................#
#.................#
#.................#
#.................#
#.......***.......#
#......*..........#
#.........*.*.....#
#....*.*...*.*....#
#....*...P...*....#
#......*.....*....#
#.....*.*.*.......#
#..........*......#
#........**.......#
#.................#
#.................#
#.................#
#.................#
###################
message ♪ Twinkle, twinkle little star, ♪how can I trust what you are?
###################
#.................#
#.....*..*........#
#.................#
#......*...**.....#
#............*....#
#....**..*...*....#
#........P*.....*.#
#...*..*...*......#
#.........*...*...#
#........***.*....#
#.................#
#......*..........#
#...*.............#
#.................#
#.................#
#............*....#
#.................#
###################
message ♪ Your equal sides just bring me grief, ♪precision that's beyond belief.
###################
#.................#
#......*...*......#
#...........*.....#
#.................#
#...........*.....#
#......*..........#
#.*.**..*.......*.#
#.......*..*......#
#.....*.*P........#
#....*...*........#
#.*....*....**..*.#
#.............*...#
#.....*...........#
#..*..*...........#
#.........*.......#
#......*...*......#
#.................#
###################
message ♪ Was your creator galactic, or sinisterly domestic?
###################
#..........*......#
#.................#
#.................#
#.........*.......#
#..*....*....*....#
#*....*....*......#
#...*....*........#
#......*....*.....#
#....*...P*....*..#
#..*....*....*....#
#.....*....*....*.#
#...*....*....*...#
#......*..........#
#.........*.......#
#.......*.........#
#.....*...........#
#.................#
###################
message ♪ Twinkle, twinkle little square. I can't sleep knowing you're there.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment