Created
June 28, 2019 15:35
-
-
Save jcmiller11/260cb62e80178130c875cb4cc7ce7d9e to your computer and use it in GitHub Desktop.
Slot Machine (PuzzleScript Script)
This file contains 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 http://www.puzzlescript.net/editor.html |
This file contains 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 Slot Machine | |
author JC | |
homepage http://www.puzzlescript.net | |
noundo | |
norepeat_action | |
again_interval 0.1 | |
======== | |
OBJECTS | |
======== | |
Background | |
White | |
00000 | |
00000 | |
00000 | |
00000 | |
00000 | |
Player | |
Transparent | |
Reel1 | |
Black | |
..... | |
..... | |
..... | |
..... | |
..... | |
Reel2 | |
Transparent | |
Reel3 | |
Transparent | |
Red | |
Red | |
00000 | |
00000 | |
00000 | |
00000 | |
00000 | |
Green | |
Green | |
00000 | |
00000 | |
00000 | |
00000 | |
00000 | |
AllGold | |
lightbrown | |
00000 | |
00000 | |
00000 | |
00000 | |
00000 | |
TopGold | |
lightbrown | |
00000 | |
00000 | |
0.0.0 | |
..... | |
..... | |
BottomGold | |
lightbrown | |
..... | |
..... | |
0.0.0 | |
00000 | |
00000 | |
Cherry | |
Red Green | |
.1... | |
.0.1. | |
0000. | |
.0000 | |
...0. | |
Lemon | |
Yellow | |
..... | |
.000. | |
00000 | |
.000. | |
..... | |
Orange | |
Orange Green | |
..... | |
.0001 | |
00011 | |
00000 | |
.000. | |
Plum | |
Purple Green | |
..... | |
.0001 | |
00011 | |
00000 | |
.000. | |
Bell | |
Yellow | |
..0.. | |
.000. | |
.000. | |
.000. | |
00000 | |
Bar | |
Black White | |
..... | |
00000 | |
01110 | |
00000 | |
..... | |
Seven | |
Red | |
..... | |
.0000 | |
...0. | |
..0.. | |
..0.. | |
C0 | |
transparent | |
C1 | |
transparent | |
C2 | |
transparent | |
C3 | |
transparent | |
C4 | |
transparent | |
C5 | |
transparent | |
C6 | |
transparent | |
C7 | |
transparent | |
C8 | |
transparent | |
C9 | |
transparent | |
C10 | |
transparent | |
C11 | |
transparent | |
C12 | |
transparent | |
C13 | |
transparent | |
C14 | |
transparent | |
C15 | |
transparent | |
C16 | |
transparent | |
C17 | |
transparent | |
C18 | |
transparent | |
C19 | |
transparent | |
C20 | |
transparent | |
C21 | |
transparent | |
C22 | |
transparent | |
C23 | |
transparent | |
C24 | |
transparent | |
======= | |
LEGEND | |
======= | |
Item = Cherry or Bar or Plum or Orange or Lemon or Bell or Seven | |
Reel = Reel1 or Reel2 or Reel3 | |
Gold = AllGold or TopGold or BottomGold | |
Counter = C0 or C1 or C2 or C3 or C4 or C5 or C6 or C7 or C8 or C9 or C10 or C11 or C12 or C13 or C14 or C15 or C16 or C17 or C18 or C19 or C20 or C21 or C22 or C23 or C24 | |
Start1 = C6 or C7 or C8 or C9 or C10 or C11 | |
Start2 = C12 or C13 or C14 or C15 or C16 or C17 | |
Start3 = C18 or C19 or C20 or C21 or C22 or C23 or C24 | |
. = Background | |
1 = Reel1 | |
2 = Reel2 | |
3 = Reel3 | |
G = AllGold | |
P = Player and AllGold | |
Q = Reel1 and AllGold | |
W = Reel2 and AllGold | |
E = Reel3 and AllGold | |
A = Reel1 and TopGold | |
S = Reel2 and TopGold | |
D = Reel3 and TopGold | |
Z = Reel1 and BottomGold | |
X = Reel2 and BottomGold | |
C = Reel3 and BottomGold | |
R = Red | |
======= | |
SOUNDS | |
======= | |
Item Move 58162507 | |
Sfx0 76116505 | |
================ | |
COLLISIONLAYERS | |
================ | |
Counter | |
Player | |
Background | |
Reel | |
Cherry, Bar, Plum, Orange, Lemon, Seven, Bell | |
Red, Green, Gold | |
====== | |
RULES | |
====== | |
[Green | Green | Green] -> [Red | Red | Red] | |
[orthogonal Player] -> cancel | |
[Action Player][Counter|Counter|Counter]->[Player][||] | |
[Red No Counter|Reel1] -> [Red Random Start1|Reel1] | |
[Red No Counter|Reel2] -> [Red Random Start2|Reel2] | |
[Red No Counter|Reel3] -> [Red Random Start3|Reel3] | |
Down [Reel1 no Item|Reel1 no Item|Reel1 no Item|Reel1 no Item|Reel1 no Item|Reel1 no Item] -> [Reel1 Cherry|Reel1 Plum|Reel1 Orange|Reel1 Lemon|Reel1 Seven|Reel1 Bell] | |
Down [Reel2 no Item|Reel2 no Item|Reel2 no Item|Reel2 no Item|Reel2 no Item|Reel2 no Item] -> [Reel2 Cherry|Reel2 Plum|Reel2 Orange|Reel2 Lemon|Reel2 Seven|Reel2 Bell] | |
Down [Reel3 no Item|Reel3 no Item|Reel3 no Item|Reel3 no Item|Reel3 no Item|Reel3 no Item] -> [Reel3 Cherry|Reel3 Plum|Reel3 Orange|Reel3 Lemon|Reel3 Seven|Reel3 Bell] | |
DOWN[Red Counter No C0|Reel1] [Reel1 Item] -> [Red Counter No C0|Reel1] [Reel1 Up Item] | |
late[Red Item|Reel1][Reel1 No Item] -> [Red|Reel1][Reel1 Item] | |
DOWN[Red Counter No C0|Reel2] [Reel2 Item] -> [Red Counter No C0|Reel2] [Reel2 Up Item] | |
late[Red Item|Reel2][Reel2 No Item] -> [Red|Reel2][Reel2 Item] | |
DOWN[Red Counter No C0|Reel3] [Reel3 Item] -> [Red Counter No C0|Reel3] [Reel3 Up Item] | |
late[Red Item|Reel3][Reel3 No Item] -> [Red|Reel3][Reel3 Item] | |
[C1] -> [C0] | |
[C2] -> [C1] | |
[C3] -> [C2] | |
[C4] -> [C3] | |
[C5] -> [C4] | |
[C6] -> [C5] | |
[C7] -> [C6] | |
[C8] -> [C7] | |
[C9] -> [C8] | |
[C10] -> [C9] | |
[C11] -> [C10] | |
[C12] -> [C11] | |
[C13] -> [C12] | |
[C14] -> [C13] | |
[C15] -> [C14] | |
[C16] -> [C15] | |
[C17] -> [C16] | |
[C18] -> [C17] | |
[C19] -> [C18] | |
[C20] -> [C19] | |
[C21] -> [C20] | |
[C22] -> [C21] | |
[C23] -> [C22] | |
[C24] -> [C23] | |
[Player] -> Again | |
Late [Cherry Reel1 no Gold | Cherry Reel2 no Gold | Cherry Reel3 no Gold] [Red C0| Red C0| Red C0] -> [Cherry Reel1 | Cherry Reel2 | Cherry Reel3][Green C0| Green C0| Green C0] Sfx0 | |
Late [Bar Reel1 no Gold | Bar Reel2 no Gold | Bar Reel3 no Gold] [Red C0| Red C0| Red C0] -> [Bar Reel1 | Bar Reel2 | Bar Reel3][Green C0| Green C0| Green C0] Sfx0 | |
Late [Plum Reel1 no Gold | Plum Reel2 no Gold | Plum Reel3 no Gold] [Red C0| Red C0| Red C0] -> [Plum Reel1 | Plum Reel2 | Plum Reel3][Green C0| Green C0| Green C0] Sfx0 | |
Late [Orange Reel1 no Gold | Orange Reel2 no Gold | Orange Reel3 no Gold] [Red C0| Red C0| Red C0] -> [Orange Reel1 | Orange Reel2 | Orange Reel3][Green C0| Green C0| Green C0] Sfx0 | |
Late [Lemon Reel1 no Gold | Lemon Reel2 no Gold | Lemon Reel3 no Gold] [Red C0| Red C0| Red C0] -> [Lemon Reel1 | Lemon Reel2 | Lemon Reel3][Green C0| Green C0| Green C0] Sfx0 | |
Late [Seven Reel1 no Gold | Seven Reel2 no Gold | Seven Reel3 no Gold] [Red C0| Red C0| Red C0] -> [Seven Reel1 | Seven Reel2 | Seven Reel3][Green C0| Green C0| Green C0] Sfx0 | |
Late [Bell Reel1 no Gold | Bell Reel2 no Gold | Bell Reel3 no Gold] [Red C0| Red C0| Red C0] -> [Bell Reel1 | Bell Reel2 | Bell Reel3][Green C0| Green C0| Green C0] Sfx0 | |
============== | |
WINCONDITIONS | |
============== | |
======= | |
LEVELS | |
======= | |
message Press action to spin! | |
GRRRG | |
GQWEG | |
GASDG | |
G123G | |
GZXCG | |
PQWEG | |
GQWEG | |
GGGGG |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment