Created
September 20, 2020 15:58
-
-
Save MedalKing/4e8cb2fd17ada8b836e2393ce49afce1 to your computer and use it in GitHub Desktop.
Kalastuspeli (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 Kalastuspeli | |
author Kalastuspelitiimi | |
homepage www.puzzlescript.net | |
key_repeat_interval 0.2 | |
(Tehty: lisätty "zombie"-kalat ja pelaajan tyypin vaihto "saalistajaksi" | |
Zombiekalojen liikkeen rajoitus niin, että pysyvät pelikentällä, should be done, voi siivota jos keksii hyvän keinon | |
TODO: | |
Aikarajoituksen toteutus | |
Jos aikaa, niin pelaajan ja kalojen kontaktimenetelmän hienosäätö, varsinkin zombiekalojen kanssa tapahtuu "epäloogisuuksia" | |
) | |
======== | |
OBJECTS | |
======== | |
Invisible_Wall | |
Grey | |
..... | |
..... | |
..... | |
..... | |
..... | |
Invisible_Wall_for_Zombies | |
Grey | |
..... | |
..... | |
..... | |
..... | |
..... | |
Background1 | |
Blue | |
00000 | |
00000 | |
00000 | |
00000 | |
00000 | |
Background2 (varsinaisen pelialueen ulkopuolista "kelloa" varten) | |
Black | |
00000 | |
00000 | |
00000 | |
00000 | |
00000 | |
Wall | |
BROWN darkbrown | |
00000 | |
00000 | |
00000 | |
00000 | |
00000 | |
Wall_2 | |
BROWN | |
.00.. | |
0000. | |
0000. | |
000.. | |
00... | |
Wall_3 | |
BROWN | |
00... | |
000.. | |
000.. | |
00... | |
0.... | |
Wall_4 | |
BROWN | |
0.... | |
00... | |
000.. | |
0000. | |
0000. | |
Wall_5 | |
BROWN | |
000.. | |
00... | |
000.. | |
0000. | |
000.. | |
Wall_6 | |
BROWN | |
00... | |
000.. | |
000.. | |
0.... | |
..... | |
Wall_7 | |
BROWN | |
..00. | |
.0000 | |
.0000 | |
..000 | |
...00 | |
Wall_8 | |
BROWN | |
...00 | |
..000 | |
..000 | |
...00 | |
....0 | |
Wall_9 | |
BROWN | |
....0 | |
...00 | |
..000 | |
.0000 | |
.0000 | |
Wall_10 | |
BROWN | |
..000 | |
...00 | |
..000 | |
.0000 | |
..000 | |
Wall_11 | |
BROWN | |
...00 | |
..000 | |
..000 | |
....0 | |
..... | |
Ground_1 | |
Brown Green | |
.1.00 | |
1.000 | |
.0000 | |
00000 | |
00000 | |
Ground_2 | |
Brown | |
000.. | |
0000. | |
00000 | |
00000 | |
00000 | |
Ground_3 | |
Brown Green | |
0.1.0 | |
00.00 | |
00000 | |
00000 | |
00000 | |
Plants_1 | |
Green | |
...0. | |
..0.. | |
..0.0 | |
.0..0 | |
.0.0. | |
Player1 | |
Orange | |
..0.. | |
..0.. | |
0.0.0 | |
.000. | |
..0.. | |
Player2 | |
Orange | |
..0.. | |
.000. | |
0.0.0 | |
..0.. | |
..0.. | |
Fish_1 | |
Pink Red | |
.000. | |
00000 | |
1.1.1 | |
1.1.1 | |
1.1.1 | |
Fish_1_Zombie | |
Green | |
.000. | |
00000 | |
0.0.0 | |
0.0.0 | |
0.0.0 | |
Fish_2 | |
Yellow | |
..... | |
.00.0 | |
00000 | |
.00.0 | |
..... | |
Fish_2_Zombie | |
Green | |
..... | |
.00.0 | |
00000 | |
.00.0 | |
..... | |
Fish_3 | |
lightgreen | |
..... | |
0.00. | |
00000 | |
0.00. | |
..... | |
Fish_3_Zombie | |
Green | |
..... | |
0.00. | |
00000 | |
0.00. | |
..... | |
======= | |
LEGEND | |
======= | |
Background = Background1 or Background2 | |
. = Background1 | |
# = Wall | |
Q = Wall_2 and Invisible_Wall_for_Zombies | |
W = Wall_3 and Invisible_Wall_for_Zombies | |
E = Wall_4 and Invisible_Wall_for_Zombies | |
R = Wall_5 and Invisible_Wall_for_Zombies | |
T = Wall_6 and Invisible_Wall_for_Zombies | |
A = Wall_7 and Invisible_Wall_for_Zombies | |
S = Wall_8 and Invisible_Wall_for_Zombies | |
D = Wall_9 and Invisible_Wall_for_Zombies | |
F = Wall_10 and Invisible_Wall_for_Zombies | |
G = Wall_11 and Invisible_Wall_for_Zombies | |
Ä = Ground_1 and Invisible_Wall_for_Zombies | |
Ö = Ground_3 and Invisible_Wall_for_Zombies | |
L = Ground_2 and Invisible_Wall_for_Zombies | |
player = Player1 or Player2 | |
P = Player1 | |
m = Player2 | |
O = Plants_1 | |
1 = Fish_1 | |
2 = Fish_2 | |
3 = Fish_3 | |
i = Invisible_Wall | |
! = Invisible_Wall and Wall_5 and Invisible_Wall_for_Zombies | |
" = Invisible_Wall and Wall_8 and Invisible_Wall_for_Zombies | |
% = Wall_3 and Plants_1 | |
======= | |
SOUNDS | |
======= | |
================ | |
COLLISIONLAYERS | |
================ | |
Background | |
Plants_1 | |
Fish_1_Zombie, Fish_2_Zombie, Fish_3_Zombie, Invisible_Wall_for_Zombies | |
Fish_1, Fish_2, Fish_3, Invisible_Wall | |
Player1, Player2, Wall, Wall_2, Wall_3, Wall_4, Wall_5, Wall_6, Wall_7, Wall_8, Wall_9, Wall_10, Wall_11, Ground_1, Ground_2, Ground_3 | |
====== | |
RULES | |
====== | |
(Onko parempaa metodia? Esim. [ Player2 Fish_1_Zombie ] -> [ Player2 ] | |
toimiiko tuo "loogisesti"?) | |
[Stationary Fish_1 ] -> [ randomDir Fish_1] | |
[ > Player1 | Fish_1 ] -> [ > Player1 | Fish_1_Zombie ] | |
[ > Fish_1 | Player1 ] -> [ > Player1 | Fish_1_Zombie ] | |
( | |
[ > Player2 | Fish_1 ] -> [ > Player2 | ] | |
[ > Fish_1 | Player2 ] -> [ > Player2 | ] | |
) | |
late [ Player2 Fish_1 ] -> [ Player2 ] | |
[ > Player2 | Fish_1 ] -> [ > Player2 | ] | |
[Stationary Fish_1_Zombie ] -> [ randomDir Fish_1_Zombie] | |
late [ Player2 Fish_1_Zombie ] -> [ Player2 ] | |
[ > Player2 | Fish_1_Zombie ] -> [ > Player2 | ] | |
([ > Fish_1_Zombie | Player2 ] -> [ > Player2 | ]) | |
[Stationary Fish_2 ] -> [ randomDir Fish_2] | |
[ > Player1 | Fish_2 ] -> [ > Player1 | Fish_2_Zombie ] | |
[ > Fish_2 | Player1 ] -> [ > Player1 | Fish_2_Zombie ] | |
late [ Player2 Fish_2 ] -> [ Player2 ] | |
[ > Player2 | Fish_2 ] -> [ > Player2 | ] | |
([ > Fish_2 | Player2 ] -> [ > Player2 | ]) | |
[Stationary Fish_2_Zombie ] -> [ randomDir Fish_2_Zombie] | |
late [ Player2 Fish_2_Zombie ] -> [ Player2 ] | |
[ > Player2 | Fish_2_Zombie ] -> [ > Player2 | ] | |
([ > Fish_2_Zombie | Player2 ] -> [ > Player2 | ]) | |
[Stationary Fish_3 ] -> [ randomDir Fish_3] | |
[ > Player1 | Fish_3 ] -> [ > Player1 | Fish_3_Zombie ] | |
[ > Fish_3 | Player1 ] -> [ > Player1 | Fish_3_Zombie ] | |
late [ Player2 Fish_3 ] -> [ Player2 ] | |
[ > Player2 | Fish_3 ] -> [ > Player2 | ] | |
([ > Fish_3 | Player2 ] -> [ > Player2 | ]) | |
[Stationary Fish_3_Zombie ] -> [ randomDir Fish_3_Zombie] | |
late [ Player2 Fish_3_Zombie ] -> [ Player2 ] | |
[ > Player2 | Fish_3_Zombie ] -> [ > Player2 | ] | |
([ > Fish_3_Zombie | Player2 ] -> [ > Player2 | ]) | |
(Muuttaa pelaajan "saalistajaksi". Lore: ne on myrkkykasveja :-) | |
late [ Player1 Plants_1 ] -> [ Player2 Plants_1 ] | |
============== | |
WINCONDITIONS | |
============== | |
No Fish_1 | |
No Fish_2 | |
No Fish_3 | |
No Fish_1_Zombie | |
No Fish_2_Zombie | |
No Fish_3_Zombie | |
======= | |
LEVELS | |
======= | |
#T....P...................D# | |
#Q........................F# | |
#W........................G# | |
#EiiiiiiiiiiiiiiiiiiiiiiiiA# | |
#!.2.........1.....3......"# | |
#TiiiiiiiiiiiiiiiiiiiiiiiiD# | |
#Q........................F# | |
#W........................G# | |
#EiiiiiiiiiiiiiiiiiiiiiiiiA# | |
#!....1.............2....."# | |
#TiiiiiiiiiiiiiiiiiiiiiiiiD# | |
#Q........................F# | |
#W........................G# | |
#EiiiiiiiiiiiiiiiiiiiiiiiiA# | |
#!...3.....2.............."# | |
#TiiiiiiiiiiiiiiiiiiiiiiiiD# | |
#Q........................F# | |
#%OOOOOOOOOOOOOOOOOOOOOOOOG# | |
#ÄÖLÄÖLÄÖLÄÖLÄÖLÄÖLÄÖLÄÖLÄÖ# | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment