Skip to content

Instantly share code, notes, and snippets.

@MedalKing
Created September 20, 2020 18:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MedalKing/0ba4fc5eb57ac44bc9108051e6b2b18f to your computer and use it in GitHub Desktop.
Save MedalKing/0ba4fc5eb57ac44bc9108051e6b2b18f to your computer and use it in GitHub Desktop.
Kalastuspeli (PuzzleScript Script)
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
title Kalastuspeli
author Kalastuspelitiimi
homepage www.puzzlescript.net
key_repeat_interval 0.1
(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
Aikarajoituksen toteutus, perus done, voi kommentoida helposti pois tarvittaessa
TODO:
)
========
OBJECTS
========
Invisible_Wall
Grey
.....
.....
.....
.....
.....
Invisible_Wall_for_Zombies
Grey
.....
.....
.....
.....
.....
Background
Blue
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.
.....
Box
White
00000
00000
00000
00000
00000
Box_Block
Red
.....
.....
.....
.....
.....
Fish_Creator
black
.....
.....
.....
.....
.....
Dead_Fish
black
.....
0.00.
00000
0.00.
.....
=======
LEGEND
=======
. = Background
# = 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
£ = Box
@ = Fish_Creator
§ = Box_Block
=======
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
Box
Fish_Creator, Box_Block, Dead_Fish
======
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 ]
(Seuraavat rivit kuvastavat kellon toimintaa)
[Box Box_Block] -> [down Box ]
[ STATIONARY Box ] -> [ right Box ]
[Box Fish_Creator] -> [Dead_Fish]
==============
WINCONDITIONS
==============
No Fish_1
No Fish_2
No Fish_3
No Fish_1_Zombie
No Fish_2_Zombie
No Fish_3_Zombie
no Dead_Fish
=======
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